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 Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 35: ASP.NET to identify an incoming user.
Line 36: --> Line 37: <authentication mode="Windows" /> Line 38: <!--
Line 39: The section enables configuration
Source File: \10.0.40.35\wecoders.com\public\habib_cuizine\web.config Line: 37
Please advice how to fix this error and how configure my website which developed using Visual Stdio 2010 to be published in the internet.
Regards,
"Server error in '/' application" issue is an application error on the server that prevents the website from running. And this error is usually related to IIS and ASP.NET. IIS (Internet Information Services): It is an extensible web server service created by Microsoft for use with the Windows NT family.
Restart IIS The “Server error in '/' application” can happen if IIS needs to be restarted. You can restart IIS from the IIS Manager. From your Remote Desktop connection, click the “Start” button in the lower left-hand corner and select “Administrative Tools”. Windows panel “Administrative Tools”.
The server error in '/' application can occur when your programs and file types are not compatible with your . NET Version. This prevents your website from running on the Server. Fortunately, the IIS Manager lets you check the version of .
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.
About "Server Error in '/' Application" "Server error in '/' application" issue is an application error on the server that prevents the website from running. And this error is usually related to IIS and ASP.NET. IIS (Internet Information Services): It is an extensible web server service created by Microsoft for use with the Windows NT family.
How to Handle Application_error in ASP.NET App’s Global.asax. ASP.NET provides developers with an easy way to handle errors using the Global.asax and the easy-to-use Application_Error event. You can easily begin handling errors with the following code: protected void Application_Error (Object sender, EventArgs e) {.
And this error is usually related to IIS and ASP.NET. IIS (Internet Information Services): It is an extensible web server service created by Microsoft for use with the Windows NT family. It is a kind of web server. Once a website is created, it must have a web server.
To fix the "server error in '/' application", you can use the following methods. Fix 1. Restart IIS Click Internet Information Services (IIS) Manager to launch it. In the IIS manager, select the server in the left-hand window pane and then click Restart on the left-hand side. Fix 2.
The key information in this error is this line:
This error can be caused by a virtual directory not being configured as an application in IIS.
In IIS, you can have several applications, but they must be configured as an application. Generally, when you create a web project it maps directly to an IIS application.
Check with your hosting service on how to create an IIS application for your web app.
Edit - added If this is on your server, you can set this up yourself following the instructions in @Frazell Thomas's answer. He beat me to finding that link. To save yourself some reading, you should be able to focus in on the Creating Virtual Directories and Local Web Sites section.
right-click virtual directory (e.g. MyVirtualDirectory)
click convert to application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With