0

I searched here same problem Asp.net - <customErrors mode="Off"/> error when trying to access working webpage, but when i do like it was told, i dont get any reaction same runtimeerror;

Here is my web.config

<system.web>
<customErrors mode="Off"/>
<compilation debug="true" strict="false" explicit="true" />
<authentication mode="None"/>
<compilation targetFramework="4.5" />
<httpRuntime requestValidationMode="2.0" />
<authentication mode="Forms">
  <forms loginUrl="~/Account/Login" timeout="2880" />
</authentication>
<pages validateRequest="false">
  <namespaces>
    <add namespace="System.Web.Helpers" />
    <add namespace="System.Web.Mvc" />
    <add namespace="System.Web.Mvc.Ajax" />
    <add namespace="System.Web.Mvc.Html" />
    <add namespace="System.Web.Optimization" />
    <add namespace="System.Web.Routing" />
    <add namespace="System.Web.WebPages" />
  </namespaces>
</pages>

1 Answer 1

2

Seems you have the compilation and authentication tag in there 2 times. Remove the duplicates.

Sign up to request clarification or add additional context in comments.

7 Comments

I leave only those lines <system.web> <customErrors mode="Off"/> <compilation debug="true"/> <pages validateRequest="false"> </pages> </system.web> and now i get "Could not load file or assembly 'Antlr3.Runtime' or one of its dependencies."
Ok, this means you are missing a dll reference in your site or missing an add assembly entry in your web.config.
how will i know what i am missing ?
Well, obviously you are missing this assembly reference "Antlr3.Runtime". I would check your project references for this dll and check if the copy local property is set to true. Alternatively you also need to check if you are adding the missing assembly in the web.config. Maybe this link can help you: stackoverflow.com/questions/4682536/…
could it be problem from hosting side ??
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.