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>

Community
  • 1
  • 1
mikrimouse
  • 277
  • 1
  • 6
  • 24

1 Answers1

2

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

JoJa
  • 612
  • 5
  • 8
  • I leave only those lines and now i get "Could not load file or assembly 'Antlr3.Runtime' or one of its dependencies." – mikrimouse Apr 26 '13 at 14:08
  • Ok, this means you are missing a dll reference in your site or missing an add assembly entry in your web.config. – JoJa Apr 26 '13 at 14:09
  • how will i know what i am missing ? – mikrimouse Apr 26 '13 at 14:15
  • 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: http://stackoverflow.com/questions/4682536/how-to-reference-assembly-from-web-config – JoJa Apr 26 '13 at 14:18
  • could it be problem from hosting side ?? – mikrimouse Apr 26 '13 at 15:09
  • yes it was hosting asp.net hosting problem, i solved that , now i have this... Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) – mikrimouse Apr 26 '13 at 15:26
  • ooo... Please kindly ask your hosting provider to give full permission for you and I believe that you wont face this issue again. Please make sure that your hosting provider that support full trust hosting. :) –  Apr 27 '13 at 14:13