?
Solved

Server Error in web.config

Posted on 2013-01-28
2
Medium Priority
?
364 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 1500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

809 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