Solved

Problems with <customErrors mode="Off" />

Posted on 2006-07-24
4
1,020 Views
Last Modified: 2008-02-01
Hi!

I have a problem with my webpage. I've created a C#-project using Blinq and Visual Studio 2005.
It runs without problems locally, but when I publish it I get a run time error.

I have the customError mode set to Off, but still I only get a message stating that I have to change my web.config-file to see the errorcode and description.
I've done some searching here on EE and the web, but I can't find anything wrong with my config-file.

Most of the config-file is generated by Blinq. Only the customErrors is added by me.
I don't think it is a problem with my hosting-service. This page is published to a subdomain with asp.net 2 installed, and the other subdomains are working without problems (everything is coded in C#, but this is my first project in 2005 using Blinq).

What am I doing wrong?
Thank you in advance for any help!

.vidar

My web.config-file:
<?xml version="1.0"?>

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <system.codedom>
      <compilers>
        <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharp3CodeProvider, CSharp3CodeDomProvider" />
      </compilers>
    </system.codedom>
    <appSettings />
 
      <connectionStrings>
            <add name="HistoliContentConnectionString" connectionString="Data Source=ip;Initial Catalog=db;User ID=user;Password=pwd" providerName="System.Data.SqlClient"/>         
      </connectionStrings>
      
  <system.web>    
            <compilation debug="true">
                  <assemblies>
                        <add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      </assemblies>
    </compilation>

    <customErrors mode="Off" />    
    <pages styleSheetTheme="Default" />

  </system.web>
</configuration>
0
Comment
Question by:ganzaj
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
DarkXiphoid earned 500 total points
Comment Utility
0
 

Author Comment

by:ganzaj
Comment Utility
Thanks DarkXiphoid!

I've tried to insert a try / catch-phrase in the code, but I still get the runtime error.
None of the files are read only, so that isn't the problem either.

I've also tried to publish the page to the main domain to exclude any problems with path length, but that didn't help.
Do you have any other good ideas?

.vidar
0
 

Author Comment

by:ganzaj
Comment Utility
Added more points

.v
0
 

Author Comment

by:ganzaj
Comment Utility
Accepted DarkXiphoid's answer.
Even though it did not help me, it's quite relevant for everybody that has this problem!

.vidar
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now