PDA

View Full Version : IIS Not working - help



Oli
Jan 28th, 2009, 09:01 PM
So I've got this little asp.net website that I want to run at my home network.

This brother decided to use IIS, so I installed that stuff using the windows cd. So far so good. As I remember it, I just had to paste the folder with the website under the wwwroot folder, and I was done.

I'm wrong.

At first I couldn't even access localhost, until I did some tinkering with the rights (don't really know what made it work).

I'm now at the phase where he asks a password when I want to browse to localhost.

One note, at one point I could go to localhost/website but saw the directory, when I clicked on the site (the file itself) it only gave me the option to download.

Don't let me down TMH, help me and reps will be your share !

El Capitan
Jan 29th, 2009, 12:05 AM
What operating system (+ ideally version of IIS) are you using?

Guy Montag
Jan 29th, 2009, 12:25 AM
Check under

'Website name' Right-click -> Properties -> Directory Security -> Authentication and Access Control edit ->

That 'anonymous access' is enabled, and that whatever account(normally IUSR_servername) is listed there has directory permissions to the folder.

Oli
Jan 29th, 2009, 07:32 AM
It's enabled.

I'm running windows xp sp3 and IIS version 5.1.

Guy Montag
Jan 29th, 2009, 07:40 AM
Under 'home directory' is Read enabled? And you checked that whatever user is listed under anonymous access has read permissions to the directory?

Oli
Jan 29th, 2009, 10:32 AM
To rule out permission problems I actually gave all users full control. I'm assuming that's not safe security-wise, but it should solve the acces problems, which it doesn't.

El Capitan
Jan 29th, 2009, 01:58 PM
Make sure only anonymous access is enabled, and the others aren't and then see if it works.

Also, disable your firewall temporarily if you have one (may be windows firewall).

Try accessing via the IP (127.0.0.1 or Network IP address) - do any of these methods work?

Oli
Jan 29th, 2009, 02:04 PM
I'll check once I'm at home.

Oli
Jan 29th, 2009, 04:24 PM
You are not authorized to view this page
You do not have permission to view this directory or page using the credentials you supplied.

Please try the following:

* Click the Refresh button to try again with different credentials.
* If you believe you should be able to view this directory or page, please contact the Web site administrator by using the e-mail address or phone number listed on the 127.0.0.1 home page.

HTTP 401.1 - Unauthorized: Logon Failed
Internet Information Services

Technical Information (for support personnel)

* More information:
Microsoft Support


http://img514.imageshack.us/img514/8056/testad9.jpg (http://imageshack.us)

El Capitan
Jan 29th, 2009, 04:34 PM
Are you sure everyone has full permissions on the wwwroot folder (including files/sub-directories), check the IUSR_OLIVIER user in permissions seperately as well just to double check it isn't with it's own permissions.

El Capitan
Jan 29th, 2009, 04:36 PM
From Microsoft:

Method 1: Disable the loopback check

Follow these steps:

Click Start, click Run, type regedit, and then click OK.
In Registry Editor, locate and then click the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Lsa
Right-click Lsa, point to New, and then click DWORD Value.
Type DisableLoopbackCheck, and then press ENTER.
Right-click DisableLoopbackCheck, and then click Modify.
In the Value data box, type 1, and then click OK.
Quit Registry Editor, and then restart your computer.

Method 2: Specify host names

To specify the host names that are mapped to the loopback address and can connect to Web sites on your computer, follow these steps:

Click Start, click Run, type regedit, and then click OK.
In Registry Editor, locate and then click the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Lsa\MSV1_0
Right-click MSV1_0, point to New, and then click Multi-String Value.
Type BackConnectionHostNames, and then press ENTER.
Right-click BackConnectionHostNames, and then click Modify.
In the Value data box, type the host name or the host names for the sites that are on the local computer, and then click OK.
Quit Registry Editor, and then restart the IISAdmin service.

El Capitan
Jan 29th, 2009, 04:37 PM
...something else just occured to me, are you going through a proxy server? Also, double check the firewall is off again - it can quite often cause problems (maybe temporarily disable anti-virus too if you have it)

Oli
Jan 29th, 2009, 06:05 PM
Hang on, going to test that.

Oli
Jan 30th, 2009, 07:32 AM
No proxy, firewall off and the registry settings didn't work.

Guy Montag
Jan 30th, 2009, 07:34 AM
You've probably checked it, but the password for IUSR_OLIVIER in that box matches the one in Computer Management? Or just tick that check box.

Might want to check eventvwr for any errors too.

El Capitan
Jan 30th, 2009, 01:27 PM
Have you tried simply just reinstalling IIS?

Also, tried checking your hosts file for any custom entries that may be screwing it up?

%windir%\system32\drivers\etc\hosts

Oli
Jan 30th, 2009, 01:53 PM
That's my next plan, installing IIS.

If I'm sober tonight that's what I'm going to do. And no, the hosts file wasn't messed up.

Thanks for the help so far, I'll keep you updated.

El Capitan
Jan 30th, 2009, 01:59 PM
ASP sucks anyway, use PHP!

Guy Montag
Jan 30th, 2009, 04:58 PM
Well, for a 401.1 error I don't think a reinstall of IIS is necessary. 401.1 means that IIS couldn't find a user which could authenticate properly, so it really seems to be a permissions issue still.

I would try making a brand new user, give it permission to the wwwroot or whatever folder IIS is pointed at, and put the same user and password into the anonymous access box.

El Capitan
Jan 31st, 2009, 01:41 PM
Well, for a 401.1 error I don't think a reinstall of IIS is necessary. 401.1 means that IIS couldn't find a user which could authenticate properly, so it really seems to be a permissions issue still.

I would try making a brand new user, give it permission to the wwwroot or whatever folder IIS is pointed at, and put the same user and password into the anonymous access box.

Reinstalling will just put everything, including permissions back to standard...just make sure you delete the directory as well after uninstall so directory permissions get recreated too.

Oli
Feb 3rd, 2009, 11:55 AM
Yeah, if all goes well I should be doing it tonight. I'll keep you guys posted.

If it still doesn't work, I'm buying an imac.

Guy Montag
Feb 3rd, 2009, 03:42 PM
If you have no luck and you are interested, I can send a VNC singleclick file to you and remote onto your machine. I'm almost certain I could fix it that way.

Oli
Feb 3rd, 2009, 05:06 PM
Just reinstalled it, it's still asking for a user/login.

What the fuck is going on, this used to be so easy...

Oli
Feb 3rd, 2009, 06:21 PM
It's getting weirder by the minute, with firefox and inet explorer I have to provide a username, with google chrome I can log in. What the fuck.

El Capitan
Feb 4th, 2009, 10:58 AM
OK, try this...

REMOVE IIS

Install WAMP:

http://www.wampserver.com/en/

Follow instructions to get ASP working on WAMP:

http://guides.jlbn.net/setasp/setasp1.html

Oli
Feb 4th, 2009, 11:44 AM
I'll give it a spin. The irony of it all is that IIS HAS worked before on the exact same setup.