Solved

Problems with <customErrors mode="Off" />

Posted on 2006-07-24
4
1,026 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
DarkXiphoid earned 500 total points
ID: 17166463
0
 

Author Comment

by:ganzaj
ID: 17173946
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
ID: 17191379
Added more points

.v
0
 

Author Comment

by:ganzaj
ID: 17211726
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

735 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