Alex Rivera | Logout

Server Error in '/' Application. ASP.NET

Asked 2011-05-04T21:43:55.070
32

Greeting,

I developed a website using ASP.Net 3.5 and C#. It is working good with Visual Stdio 2010. I uploaded my website to my domain under the public folder.

First time I lunched my website for testing (http://wecoders.com/Habib_cuizine/Gallery.aspx) I would revive (Server Error in '/' Application.)

Runtime Error 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.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->
> 
> <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.

> <!-- Web.Config Configuration File -->
> 
> <configuration>
>     <system.web>
>         <customErrors mode="RemoteOnly"
> defaultRedirect="mycustompage.htm"/>
>     </system.web> </configuration>

To fix this error I added to the webConfig file inside tag:

> <customErrors mode="Off"/>

After that when I lunch the website I would receive a new error as listed bellow:

Configuration

Edit
Report

1 Answer

4

Looks like you have <authentication mode="Windows" /> in your web.config file but your hosting provider won't let you use that. Just remove that line.

answered 2011-05-04T21:47:09.093

Your Answer