Solved

Server Error in web.config

Posted on 2013-01-28
2
355 Views
Last Modified: 2013-02-04
Hi,

My web.config contains the following settings
 

 <customErrors mode="RemoteOnly" defaultRedirect="~/Errors/Default.htm">
      <error statusCode="404" redirect="~/Errors/Http404.htm"/>
    </customErrors>


Now i deployed my site in the server and the url is going to be used by Remote machine

but i am getting the following error.

============================================================================

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 <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> 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 <customErrors> 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>
 
======================================================================================

but if i run this url on server machine it is working fine,

So, Please suggest me what are the changes should I need to do more.
0
Comment
Question by:praveen1981
2 Comments
 
LVL 7

Accepted Solution

by:
Scobber earned 500 total points
Comment Utility
Check your authentication schemes, on the local machine you might find that its automatically logging you on as a local user.

You might have to add the appropriate permissions (iusr and the application pool user) are a good place to start to the NTFS folder structure. you should also enable anonymous access if your expecting users to browse without logging on.

If you modify that line in web.config you will get the stack trace, if you can paste it here,if you cant work it out with those tips.
0
 

Author Closing Comment

by:praveen1981
Comment Utility
Thanks, it is the issue with authentication
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now