SyntaxHighlighter

Monday, June 30, 2008

The infamous "\\computer is not accessible. You might not have permission to use this network" error

I must have come across this stupid error a dosen times and it is often solved by simply changing the Windows machine's Network ID or by running the Network Connection Wizard thingy in the Control Panel -> Connections page.

This time though, we had a computer playing hardball and was only solved by doing the following (from PChuck's Network):

Download and install the Windows 2003 Server Resource Kit Tools.

Click Start | All Programs | Windows Resource Kit Tools | Command Shell.

Type these three lines, one at a time, at the command prompt. The ntrights
commands are case-sensitive, so type them exactly as shown. Note the "+r" in
the second one and the "-r" in the third one:

net user guest /active:yes
ntrights +r SeNetworkLogonRight -u Guest
ntrights -r SeDenyNetworkLogonRight -u Guest

And that solved our problems. Well for most guys. For some reason my Vista still did not want to connect. I changed my Network ID to be same, and whala! It worked! This is a bit peculiar considering that I was able to connect across different Network ID's on my previous XP machine. I don't have time to double check and validate that now though.

Sunday, June 29, 2008

More issues moving over to new system

Ok so I don't have this dll on my system.

Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Just download and install the ASP.NET 2.0 AJAX Extensions package. Problems solved!

Vista administrator woes

Ok if you're a Vista user you're undoubtely also sick and tired of being bombarded with security pop-ups, which are aimed at keeping the average user from destroying the system with malware.

So you want to be a real administor? Follow these steps:
First, turn off UAC warnings.
1. Go into Control Panel.
2. Open up User Accounts (in classic view) and User Accounts and Family Safety -> User Accounts (in standard view).
3. Click Turn User Account Control on or off and follow the rest of the instructions.

Ok now you got rid of most of the issues, but Vista still with give you a hard time with Services and applications such as SQL Server and Visual Studio. It still won't think you are a full blown administrator and prompt you with the odd warning. Quite annoying.

Finally, Turn off "Run all administrators in Admin Approval Mode"
1. Open a run window, and type in secpol.msc and hit enter.
2. Expans Local Policies -> Security Options.
3. Scroll down to User Account Control: Run all administrators in Admin Approval Mode and disable the damned thing.
4. Restart and all should be well.

Visual Studio 2005 and IIS 7: Unable to open the Web

I recently upgraded to a new workstation, which came with Vista Ultra SP1. I tried to open my previous web apps and got this message:

"Unable to open the Web 'http://localhost/...'. The Web server does not appear to have the FrontPage server extensions installed."

A quick google search came up with this article on the MS Knoweldge Base:
http://support.microsoft.com/kb/936857

I followed the instructions and enabled the IIS Metabase and IIS 6 configuration compatibility component. I went back into VS Studio, clicked Reload Project, but no luck.

Next I went into IIS 7's management console. I noticed that the web apps were not added to an application pool yet. Just right-click the folder and choose Convert to Application. Reloaded the project again, and nothing...

Trying to solve the issue, I got a bit side-tracked and sorted out some annoying administrator issues.

I rebooted my system and my web app is working!! Whoop whoop!