Solved

Server Error in web.config

Posted on 2013-01-28
2
359 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
ID: 38826001
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
ID: 38850168
Thanks, it is the issue with authentication
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

696 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