PDA

View Full Version : Problem with IIS


GujuWebMaster
24-01-2005, 01:29/01:29AM
Ever since I installed XP pro service pack 1, I have had some strange behaviour with my IIS 5.1 setup. In short, it doesn't work any more!

http://localhost is producing http 500 error message (ie. Internal Server Error - the page cannot be displayed).

According to the service manager, the world-wide web publishing service is running.

I tried re-installing the IIS, but still the problem is there.

Any help would be appreciated.

srikanthsh
24-01-2005, 03:42/03:42AM
Raj, I had this problem long back. But, not able to remember what i did to get it. If IIS is running, try accessing with http://127.0.0.1/

If it is not retrieving the default page, go to command prompt and ping the local ip as: ping 127.0.0.1

This should show some bytes coming in instead of host unreachable kind of message.

Also see whether the following page is helpful,

http://support.microsoft.com/default.aspx?scid=kb;en-us;251361#kb4

chrishirst
24-01-2005, 09:59/09:59AM
Hi Raj.

Could be many things

to get a better idea of the actual error you need to show the full error message.

In IE click

Tools -> Internet Options -> Advanced -> Uncheck "Show friendly HTTP error messages" in the browsing section.

that should give the line of script that is causing the error .

It could be if you are using parent paths (../) anywhere in a script, they were turned off by the update.

GujuWebMaster
25-01-2005, 00:33/12:33AM
Thanks both of you guys.

Sri :
ping 127.0.0.1
-- Working fine
http://127.0.0.1/
Not retriving the default page.

Chris
I had already unchecked that option.

error message ( while http friendly message is checked):
http 500 error. Internal server error.
error message ( while http friendly message is unchecked):
Server Application error.
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.

thanks

srikanthsh
25-01-2005, 01:41/01:41AM
Raj,

Many times, the internal server error occurs due to the errors on the page.

This should work. Just try this and tell me - Put a folder in wwwroot. and try accessing those pages in folder as,
http://127.0.0.1/foldername/filename.

Or, in IIS, create a website/virtual folder for your another folder(some site folder on another drive). And try accessing it as http://127.0.0.1/virtualfoldername/filename

[Edited]

GujuWebMaster
25-01-2005, 01:54/01:54AM
Hi Sri, Thanks for prompt reply.

Not even a htm file from virtual folder through localhost or ip address working. The problem is with IIS, not a single asp (without any script, empty file ) is also not running on iis.

I tried uninstalling iis and re-install it. also checked for some antivirus, security and firewall kinda softwares who can change the permissions of running IIS. but everything is fine.

Also Mfc42.dll have proper user access and administrative previledges on the system.

i'm using XP and IIS 5.1.
I also tried to search same on web, there are lots of guys who are facing the same problem but didn't find any answer that can help.

srikanthsh
25-01-2005, 02:17/02:17AM
Raj, one more try. Try by restarting IIS(not reinstalling).

Goto command prompt and type - iisreset. After the IIS is restarted, try accessing the page.

GujuWebMaster
25-01-2005, 04:47/04:47AM
Hi Sri,
Got the rid of the problem.
Anyways thanks a lot for taking time.

I'm pasting the solution here....may be helpful to someone in future.




Try these steps to run the asp pages

To Run MSDTC, go to command Prompt and run

1. MSDTC -resetlog

Go to command Prompt and run (it is case sensitive)

2. cd %windir%\system32\inetsrv

3. rundll32 wamreg.dll, CreateIISPackage

4. regsvr32 asptxn.dll

5. IISRESET

Run these steps and after that go to Services and restart the IIS. If still doesn't work, after completing the above steps re-install the IIS.

Thanks

srikanthsh
25-01-2005, 05:27/05:27AM
Nice. And, you are welcome.

Thank you for sharing Raj :cheers:

GujuWebMaster
25-01-2005, 05:59/05:59AM
Thanks Sri,

And the guy who gave me this details says that this problem generally arises with IIS 5.1 on Win XP only. So these are steps to resolve it.

thanks