简体   繁体   中英

Deploying website(asp.net) to IIS Server

I've a website which i want to deploy on IIS 7 Server. I was able to add the website, also i've assigned an ip address (locahost's ip) and port to it as well. For example, if the port number is 8123 and ip address is say 127.0.0.1 and now, when i'm trying to view/browse my website from remote computer by: http://127.0.0.1:8123 it opens a directory page. I'm having 3 forms in my website viz; MainPage, DashBoard and Insert. If i wish to browse to MainPage* (http://127.0.0.1:8123/MainPage.aspx)* it gives an runtime error like this

Server Error in '/' Application.

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

<configuration>
>     <system.web>
>         <customErrors mode="Off"/>
>     </system.web> </configuration>  

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.

<configuration>
>     <system.web>
>         <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
>     </system.web> </configuration>

I made changes as mentioned in the suggestion, however the problem still persists. Help to solve this issue. I'm new to this so i cant say i followed the right procedure, anyway everything seems good to me except the brwosing part.

remove this

< customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

and put this

<compilation debug="true" targetFramework="4.0">

then you can get the Error

http://www.codeproject.com/Articles/28693/Deploying-ASP-NET-Websites-on-IIS-7-0

You need to go through with this link atleast once before deployment

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM