Jump to content

Recommended Posts

Posted

Can somebody help me?

I am playing with asp.net. I have created simple asp.net application based on web forms.

It is working on mine local computer but on helio hosting some error is generated. Framework version is 3.5.

Even I cannot see the error stack. I set in the file web.config customErrors mode="Off" but still i gives me the message:

The current custom error settings for this application prevent the details of the application error from being viewed remotely

 

After searching on google it appears that settings in the file machine.config can supress settings in web.config. But I have no access no machine.config file on this server. Or maybe reason of not showing error details is completely different.

I need to see errors.

How can I resolve the problem.

Thanks in advance

Posted

avond and dutchcode

 

Hi, Ice IT Support.

I have one more question:

I like use framework version at least 4.0, better 4.5.

However here in the help it is said that highest version is 3.5. From other side I see somewhere in documentation assemblies with version 4.0 and 4.5.

For me is not clear which highest version can be used.

Posted

Heliohost offers Mono 2.6.7 emulating ASP.NET 3.5. So, no Heliohost doesn't offer version 4.0 or 4.5.(Correct me if I am wrong admins/mods)

Source: http://www.heliohost.org/home/features/languages/aspnet

 

For the error you are getting, Make a file named Web.Config in the public_html folder containing this:

 

<!-- Web.Config Configuration File -->

<configuration>
   <system.web>

       <customErrors mode="Off"/>
   </system.web>
</configuration>

 

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".

Posted (edited)

Hi, yashrs

thanks for the response. I did exactly what you advise me but it doesn't work.

Any other suggestions?

 

<p>here is the system web part:</p>

<p> </p>

<div> <system.web></div>

<div> <customErrors mode="Off" /></div>

<div> </div>

<div> <authentication mode="Forms" /></div>

<div> <compilation debug="true"></div>

<div> <assemblies></div>

<div> <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></div>

<div> <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div> <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></div>

<div> <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></div>

<div> </assemblies></div>

<div> </compilation></div>

<div> <httpRuntime/></div>

<div> <pages></div>

<div> <controls></div>

<div> <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div> <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div> </controls></div>

<div> </pages></div>

<div> <httpHandlers></div>

<div> <remove verb="*" path="*.asmx"/></div>

<div> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div> <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div> <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div> </httpHandlers></div>

<div> <httpModules></div>

<div> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div> </httpModules></div>

<div> </system.web></div>

 

 

Ja, it is not handy see such text

 

how can put xml text to be readable?

Edited by yashrs
Posted

<p>So mine web.config is:</p>

<div><?xml version="1.0"?></div>

<div><!--</div>

<div>  For more information on how to configure your ASP.NET application, please visit</div>

<div>  http://go.microsoft.com/fwlink/?LinkId=169433</div>

<div>  --></div>

<div><configuration></div>

<div>  <configSections></div>

<div>    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></div>

<div>      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></div>

<div>        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/></div>

<div>        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></div>

<div>          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/></div>

<div>          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/></div>

<div>          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/></div>

<div>          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/></div>

<div>        </sectionGroup></div>

<div>      </sectionGroup></div>

<div>    </sectionGroup></div>

<div>  </configSections></div>

<div>  <system.web></div>

<div>    <customErrors mode="Off" /></div>

<div> </div>

<div>    <authentication mode="Forms" /></div>

<div>    <compilation debug="true"></div>

<div>      <assemblies></div>

<div>        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></div>

<div>        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div>        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></div>

<div>        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></div>

<div>      </assemblies></div>

<div>    </compilation></div>

<div>    <httpRuntime/></div>

<div>    <pages></div>

<div>      <controls></div>

<div>        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div>        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div>      </controls></div>

<div>    </pages></div>

<div>    <httpHandlers></div>

<div>      <remove verb="*" path="*.asmx"/></div>

<div>      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div>      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div>      <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div>    </httpHandlers></div>

<div>    <httpModules></div>

<div>      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div>    </httpModules></div>

<div>  </system.web></div>

<div>  <system.codedom></div>

<div>      <compilers></div>

<div>        <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"></div>

<div>          <providerOption name="CompilerVersion" value="v3.5"/></div>

<div>          <providerOption name="WarnAsError" value="false"/></div>

<div>      </compiler></div>

<div>        <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"></div>

<div>          <providerOption name="CompilerVersion" value="v3.5"/></div>

<div>          <providerOption name="OptionInfer" value="true"/></div>

<div>          <providerOption name="WarnAsError" value="false"/></div>

<div>      </compiler></div>

<div>    </compilers></div>

<div>  </system.codedom></div>

<div>  <system.webServer></div>

<div>    <handlers accessPolicy="Read, Execute, Script" /></div>

<div>    <httpErrors errorMode="Detailed" /></div>

<div>    <validation validateIntegratedModeConfiguration="false"/></div>

<div>    <modules></div>

<div>      <remove name="ScriptModule"/></div>

<div>      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div>    </modules></div>

<div>    <handlers></div>

<div>      <remove name="WebServiceHandlerFactory-Integrated"/></div>

<div>      <remove name="ScriptHandlerFactory"/></div>

<div>      <remove name="ScriptHandlerFactoryAppServices"/></div>

<div>      <remove name="ScriptResource"/></div>

<div>      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div>      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div>      <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></div>

<div>    </handlers></div>

<div>  </system.webServer></div>

<div>  <runtime></div>

<div>    <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1"></div>

<div>      <dependentAssembly></div>

<div>        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/></div>

<div>        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></div>

<div>      </dependentAssembly></div>

<div>      <dependentAssembly></div>

<div>        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/></div>

<div>        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></div>

<div>      </dependentAssembly></div>

<div>    </assemblyBinding></div>

<div>  </runtime></div>

<div></configuration></div>

 

 

Ok, anyway the option customErrors mode="Off" doesn't work. It looks like there is other setting which overrules this setting. From Microsoft I see only one in machine.config. Do you know other possibilities when the setting can be overruled?

 

web.config

http://pastebin.com/cXLYUfDK

Posted

I did not change anything and now it is working. If somebody has changed some configuration on helionet, please, tell me. This is most important

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...