The Temple of Fu

code, systems and games

Archive for the ‘Windows’ Category

IIS 7 – Change Port for Default Web Site

leave a comment »

I installed Team Foundation Server (TFS) 2012 yesterday to do some integration testing for a client. I installed it on my 2008 R2 Windows Server which runs IIS 7.5.

When you install TFS it also installs SharePoint, SharePoint happily installed itself and took over port 80 on my server. Now I did go for a very straightforward wizard installation so there may have been a way to instruct the installer to not use port 80.

The quickest way for me to do what I want to do is simply assign a new port to Default you will also need to remove Default from listening on port 80. I decided I wanted to have Default listen on port 81.

  1. Open IIS Manager
  2. Select Default Web Site
  3. Right Click
  4. Select Edit Bindings
  5. Remove Entry for http 80 binding
  6. Add New Entry for http 81 binding
  7. Restart/Start Default Web Site

Capture

Done, hope this helps.

Advertisements

Written by lordfu

September 22, 2013 at 11:34 am

VirtualBox – VERR_NOT_SUPPORTED

leave a comment »

I am currently using version 4.28.r838376 of VirtualBox from Oracle. Today was spring cleaning on my main desktop. I updated loads of drivers, updated my bios for my Asus P8Z68 V-Pro motherboard, fixed registry errors, uninstalled programs, the whole shebang really. Everything went awesome, that is until I decided to start a virtual machine.

I tried starting a Slackware Linux guest I have and promptly received the error message VD:VERR_NOT_SUPPORTED. FIrst thing I thought was “I hope I have a backup, cause this looks like disk failure”. I then decided to boot a Windows guest I have to see if it was in the same shape. It gave a different message but one that directly referenced VTX and a CPU.

This made the light bulb in my head turn on! Knowing that I had updated my BIOS I wondered if I forgot to reset everything. So I rebooted, hopped into the BIOS and looked at Intel Virtualization Technology and it was disabled. Once this was turned back on all of my virtual machines are working fine again.

Hope this helps.

Written by lordfu

June 30, 2013 at 1:26 am

Visual Studio – Method Auto Comment (XML Documentation) Not Working

with one comment

Opened up a project that was started by a fellow developer at work, I got_set_to_write_code and wanted to do what all good developers do, they comment their code! 🙂
I needed to add a method comment which can be triggered by typing three ticks ”’. It stubs out

But it didn’t work, grrr. The fix:
1. Go into project properties
2. Select the Compile tab.
3. Check ‘Generate XML documentation file’

Now the auto comment shortcut should work.

Written by lordfu

July 31, 2012 at 10:33 am

Browsing, DNS and duplicate IPs Oh My!

leave a comment »

I recently upgraded to current and also more recently have built a new Windows server to use for work and development with my Slackware box being a virtual desktop running on a Windows 7 host . The last few weeks since I built my new server and upgraded my desktop to current have been a mixture of either being away for work or being without power for a little over 6 days due to massive Midwest storms. Both of these have left me without a chance to really configure everything fully to my liking.

So the last couple days I have been home and able to spend more time on my desktop and I noticed something any application which required network access was painful to work with. Everyone of them would ‘sputter’, sometimes work great for a few minutes and then freeze for a few then work great again etc but my host had no networking problems at all. I ran ping tests and noticed the same thing there, so I began troubleshooting and did the following
1. Check resolv.conf for valid nameservers
2. Disabled loading of IPV6 module.
3. Disabled IPV6 in Moz
4. Checked interface settings, then it hit me.

What’s the interface settings look like on my new Windows Server? Whammo, duplicate IP addresses. Once I adjusted the IP address on the server everything began working perfectly. This was an easily avoidable configuration error and took a couple hours to fix because I was certain it was due to the Upgrade to current or this being a weird issue with 64b Slack and so time was wasted researching that instead which I never should have assumed.

Hope this helps!

Written by lordfu

July 15, 2012 at 10:32 am

Posted in Linux, Other, Slackware, Windows

Dell Inspirion 6000 – ATI Mobility Raedon x300 (M24) – Windows Server 2008

with 2 comments

So I received a laptop from work that they were tossing around a year ago. It came with Windows 7 and was all setup and good to go, so it remained that way for a year. I went to install SQL Server 2005 the other day to do some development and wham, can’t install onto Windows 7, it must be a server class OS. I have Windows Server 2008 so I began the re-install. That went well picked up 99.9% of my hardware and Windows happily installed a Standard VGA Adapter driver for my ATI card which is an ATI Mobility Raedon x300. The problem with that is that it is a terrible driver and offers no good resolutions, 1024×768 was my best bet at 32bit. So off I went to find drivers. Did Dell offer any? NO!

As far as I know Dell has a deal worked out where they force customers to use their drivers, you know the CD that comes with your laptops? Well I have Windows 2008 on here and they are not to be found anywhere. This is how I made this work using legacy drivers and Mobility Modder. Mobility Modder is an application which will ‘mod’ your inf files to work with an updated and ‘unsupported’ OS (you know that deal between ATI and Dell).

1. Go download the legacy ATI drivers from http://support.amd.com/us/gpudownload/windows/Legacy/Pages/radeonaiw_xp.aspx

2. Download Mobility Modder from http://www.hardwareheaven.com/modtool.php.

3. Extract the legacy drivers. This is done by double clicking the installation executable and once it gets past the extraction point, cancel the installation. The legacy drivers are extracted to C:\ATI\Support\10-02_legacy_xp32-64_dd_ccc

4. You then install Mobility Modder and it’s requirements XML 6.0, .Net Framework (which on most modern systems are already installed). Also select turn off UAC, this does require a reboot.

5. Once MM is installed run the program and Browse to C:\ATI\Support\10-02_legacy_xp32-64_dd_ccc and click Modify (this can take a few minutes)

6. Once that is done you need to update your driver manually. This is done by

  • Device Manager
  • Select your Display Adapter
  • Right Click ‘Update Driver Software’
  • Browse My Computer for driver Software
  • Let me pick from a list of device drivers on my computer
  • Have Disk
  • Browse to C:\ATI\Support\10-02_legacy_xp32-64_dd_ccc\Driver\XP_INF
  • Select CX_95952.inf
  • Say Ok all the way out.
  • Say Yes if it complains that this driver is not digitally signed.
  • Reboot

Once you are rebooted you can verify you are using the ATI drivers and set your resolution,Voila!

Notes:

Once Mobility Modder has modified your .inf file you can search the file and verify your hardware is found. If you do not know how to find the hardware id. You go to the details section of your card properties, found under device manager and select from the dropdown Hardware Id’s. The following screenshot shows mine.

Image

Hope this helps!

Edit:

I also had to update the sound card which is a SigmaTel – Sound – SigmaTel C-Major Audio.

1. Download the cab file http://catalog.update.microsoft.com/v7/site/Search.aspx?q=VEN_8086%26DEV_266E%26SUBSYS_01881028

2. Extract cab

3. Update the driver in the same manner as above by browsing to the folder that contains the extracted files.

Resources:

http://www.hardwareheaven.com/modtool.php

http://support.amd.com/us/gpudownload/windows/Legacy/Pages/radeonaiw_xp.aspx

http://www.sevenforums.com/graphic-cards/31442-ati-radeon-drivers-install-but-fail-initialize.html

Written by lordfu

July 4, 2012 at 6:11 pm

SQL Server 2005 – No Management Studio

leave a comment »

This happens to me all the time. The order usually goes along the lines of.

1. Install Windows
2. Get updates including .Net framework
3. Install Visual Studio
4. Install SQL Server
x. Check for SSMS and it is not there.

What happens is at some point SQL Server Express or some_other_installation causes SQL Server 2005 to not install the Client Components. Even re-running the installation and selecting Client Tools will not get them installed.

There are two ways that I know of to get them installed.
1. Install SQL Server 2005 before all updates and installing Visual Studio.

2. Run it in maintenance mode. To do this go to “Add or Remove Programs”, find the entry for “SQL Server 2005”, select it and hit the Change button. Under the section for “SQL Server 2005 Common Components” you’ll see an entry for “Workstation Components”, select it and hit the next button. Keep following the dialogs until you come to one called “Change or Remove Instance”, be sure to select “Change Installed Components”. The Feature Selection dialog will appear. Expand the “Client Components” node, select “Management Tools” and click next. Follow the remaining dialogs. After setup runs you should find “SQL Server Management Studio” in the Start menu.

Written by lordfu

July 4, 2012 at 1:57 pm

Posted in Database, MSSQL, Windows

Move IIS Data Directory script

leave a comment »

I can’t remember how I got this script or from where but I have used it twice now so I am posting it here for others. If you are the original script author please let me know and i would be glad to tag it as such!

'------------------------------------------------------- '
' FILE: moveIISDataDirectory.vbs
' Used to migrate Web Data (FTP, WWW, SMTP) from drive C:\INETPUB to drive D:\INETPUB.
' This script can be modified to meet the need of any customers.
' Please do not remove this header info though.
'--------------------------------------------------------

'Stop IIS services before continuing

Set WSHShell = Wscript.CreateObject("Wscript.Shell")
WSHShell.PopUp "Stopping all Internet Services..."
ret = WshShell.Run ("net stop iisadmin /y", 1, TRUE)

If ret = 0 then
WSHShell.PopUp "IISADMIN service was stopped successfully, continuing"
'restart()
else
WSHShell.PopUp "IISADMIN failed to stop successfully. The error code is " & ret Wscript.Quit 1
end if

' Modify IIS Metabase Properties for new data location
Dim params(7)
Dim x, ret
Dim params2(3) Params(0) = "w3svc/1/root/path d:\inetpub\wwwroot"
Params(1) = "w3svc/1/root/scripts/path d:\inetpub\scripts "
Params(2) = "w3svc/1/root/iissamples/path d:\inetpub\iissamples"
Params(3) = "msftpsvc/1/root/path d:\inetpub\ftproot"
Params(4) = "smtpsvc/1/BadMailDirectory d:\inetpub\mailroot\BadMail"
Params(5) = "smtpsvc/1/PickupDirectory d:\inetpub\mailroot\Pickup"
Params(6) = "smtpsvc/1/QueueDirectory d:\inetpub\mailroot\Queue"
Params(7) = "smtpsvc/1/DropDirectory d:\inetpub\mailroot\Drop"

Set WshSysEnv = WshShell.Environment("PROCESS")

For Each x In Params
ret = WSHShell.Run ("cscript.exe " & "c:\inetpub\adminscripts\adsutil.vbs SET " & x, 1, TRUE)
Next

' Verify Settings were successfully applied
If ret = 0 then
WSHShell.PopUp "The new metabase settings have been successfully updated. The new Web Data path is D:\inetpub"
else
WSHShell.PopUp "The Configuration changes failed. The error code is " & ret Wscript.Quit 1
end if

wscript.Sleep 5000

' Move Data to new location (D:\inetpub) using xcopy.exe (this can be changed from xcopy to move so the data is actually moved from current locale)
ret = WSHShell.Run ("xcopy c:\inetpub d:\inetpub\ /s /e /q" , 1, TRUE)

If ret = 0 then
WSHShell.PopUp "The data has been successfully moved to d:\inetpub"
else
WSHShell.PopUp "The data move failed. The error code is " & ret Wscript.Quit 1
end if

' Update Web Catalog to be for d:\inetpub 'Stop Content Index Service
Set WSHShell = Wscript.CreateObject("Wscript.Shell")
WSHShell.PopUp "Stopping Index Service..."
ret = WshShell.Run ("net stop cisvc", 1, TRUE)

If ret = 0 then
chgeCat()
else
WSHShell.PopUp "Content Index service failed to stop successfully. The error code is " & ret Wscript.Quit 1
end if

Function chgeCat()
Set WshShell = WScript.CreateObject("WScript.Shell")

'Delete Catalogs '
WshShell.RegDelete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex\Catalogs\Web\"

' Delete Web Catalog. '
WshShell.RegDelete "HKLM\SYSTEM\CurrentControlSet\Control\ContentIndex\Catalogs\System\"

' Delete System Catalog. 'Modify existing Web catalog entry
WshShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\ContentIndex\Catalogs\Web\Location", "d:\inetpub"
WshShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\ContentIndex\Catalogs\Web\IsIndexingW3Svc", 1, "REG_DWORD"
end function

'Start Services (WWW, FTP, SMTP, CISVC)
Set WSHShell = Wscript.CreateObject("Wscript.Shell")
WSHShell.PopUp "Attempting to restart stopped Services..."
Params2(0) = "w3svc"
Params2(1) = "msftpsvc"
Params2(2) = "cisvc"
Params2(3) = "smtpsvc"

For Each x In Params2
ret = WshShell.Run ("net start " & x, 1, TRUE)
wscript.Sleep 5000
Next

If ret = 0 then
WSHShell.PopUp "Services were started successfully, modifications complete"
else
WSHShell.PopUp "One or more services fail to start successfully. The error code is " & ret Wscript.Quit 1
end if

Written by lordfu

March 25, 2010 at 3:54 pm