Click here to Skip to main content
15,900,906 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
Dear Friends !!

I have Created a Web application using Asp.net,c#,sqlserver 2005. and finally hosted this into IIS Webserver.....and

Am facing problem with this error !! Please can anybody can show me how to solve this solution.

When I click the Menu link its shows an error like this.

XML
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>



So, Please advice me a good solution.

Waiting for your Solution..


Thanks in ADVANCE.
Posted
Comments
Sandeep Mewara 8-Jul-12 2:42am    
We cannot work out what you are trying to do from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.

You are accessing the page from a machine other than that hosted by the application.

If you are in a development environment you could turn remote errors on, which would give more details including stack trace as to why the error is occurring.

You could alternately use the browser on the machine running the application and you will get a detail error output in the browser as you are now 'local'.

And finally you could set up remote debugging on the IIS box.
 
Share this answer
 
Comments
Ubaid ur Rahman IT 8-Jul-12 1:52am    
Please can you tell me in detail, am unable to understand about this problem.
DaveAuld 8-Jul-12 2:01am    
You need to tell us more about what you are doing to be able to tell you in detail! What I have told you is the basics to help you get to the next step of understanding the problem.
Ubaid ur Rahman IT 8-Jul-12 1:53am    
and the other links are Working Perfectly, Only one link, when i click this link.. it shows the above error.
DaveAuld 8-Jul-12 2:02am    
Am I a mind reader? What links? Are you showing us any code?
web.config
<customerrors mode="On" defaultredirect="~/40X-ErrorFound.aspx">
<error statuscode="403" redirect="~/403-new.aspx" />
<error statuscode="404" redirect="~/404-new.aspx" />
</customerrors>

---
this is code in default.aspx

<a target="_self" href="abc.pdf">click here</a>


above code is working in local, but after published in IIS it wont

do you have any suggestion
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900