Pages

Monday, January 10, 2011

Why iis is not working for .net websites?

Question : - I have a static ip address, I did the configuration so the ip can locate to my server IIS, I did a small test, I have created very basic html page page to check that the IIS can view that html page, and the static ip address is routed correctly to my server, and it's succeeded to view the page,

now I have created a website in visual studio .net 2005 (also very simple), and I publish it to binaries and change the iis website directory to that published files. but I am unable to view the site!!

I got this page:

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Please try the following:

    * Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
    * If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
    * Click the Back button to try another link.

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

Technical Information (for support personnel)

    * Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
    * Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.

so any help please?


Environment : Windows 2003 , IIS 6.0

Solution: -  
1) Please publish the project to a local directory from visual studio and then copy this content and OVERWRITE it to the website's home path in IIS.
I believe this problem will be sorted by step 1. Incase no, then
2) As you have already installed asp.net 2 and enabled the web svc extn in IIS for it , Please check if website is using asp.net 2 . Go to iis -> website -> properties -> asp.net -> select .net 2 framework here and apply it.
3) Please see the website -> properties -> atleast Script allowed permissions are given to the website.
If still No, then please suggest  - Do you have website's home path on same server or Shared server?


**** AS IS ***** ; Please apply with your own risk.

No comments:

Post a Comment