How to call .aspx page from a web web service(service.svc?

Web.config file help?

  • I get the following error when trying to access my website: Server Error in '/' Application 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> and I have tried to edit the web.config file so that it is the same as what ity says above but it still comes up with the same error message whenever i try and go to my site again :/ <?xml version="1.0"?> <configuration> <system.web> <compilation debug="false" strict="false" explicit="true" targetFramework="4.0" /> <authentication mode="Forms"> <forms loginUrl="~/Account/Login.aspx" timeout="2880" /> </authentication> <membership> <providers> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipP… connectionStringName="ApplicationService… enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> </providers> </membership> <anonymousIdentification enabled="true" /> <roleManager enabled="true"> <providers> <add connectionStringName="ApplicationService… applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvide… /> <add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRo… /> </providers> </roleManager> </system.web> </configuration> thats my web.config file (well the system.web part of it anyway) does anyone have any idea what so ever as to what I am doing wrong? I'm a bit of a noob when it comes to ASP.NET so dont be too horrid :D

  • Answer:

    First off, the error message that you are getting is appropriate for a remote machine. You don't want to provide any information in your error messages that malicious users could use against you. Take a look at the link provided in my sources for a Technet article on it. You could run this locally on the server in debug mode. This should include all the error text in the page when you try to load it locally. I would take it a bit further and write error handlers that would return the error on the page if certain conditions are met. You can see some examples in the link below. This will at least tell you what the error is so you can fix it. In my experience when you get Server Error in '/' Application it is normally an object instantiation issue.

Timothy at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.