Re: web.config
From: Dan (dan_at_dsully.com)
Date: 02/19/05
- Next message: Eduardo78: "Would like to know how to set the default botton on a msgbox to no"
- Previous message: Playa: "Checking for Characters"
- In reply to: Pete Wright: "Re: web.config"
- Next in thread: Nick Malik [Microsoft]: "Re: web.config"
- Reply: Nick Malik [Microsoft]: "Re: web.config"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 19 Feb 2005 07:43:25 -0800
I don't have NET 2 on the machine. I haven't used the "file" attribute in
the appsettings code so why would it think that I am referring to an
external file? The error comes up before the appsetting is accessed by vb
code. when I try to debug start---There are no compile errors.
The KB article says that this error arises from a syntax error in the
web.config file. If I remove the three lines from the web.config file, the
problem goes away.
It doesn't matter what I use as the key name or the value. If those lines
are present the rror is tripped.
"Pete Wright" <peterjwright@gmail.com> wrote in message
news:e42PZymFFHA.1396@tk2msftngp13.phx.gbl...
> This error doesn't actually have anything to do with web.config. There are
> number of reasons why this could happen, but the most common I see on my
> machines is that I have betas of Web Developer Express or Visual
> Studio.NEt 2005 on the machine. These cause the app to run as a .NET 2.0
> app. *IF* this is the case, download Denis Bauer's excellent ASP.NET
> version switcher from
> http://www.denisbauer.com/NETTools/ASPNETVersionSwitcher.aspx&e=9901. Then
> run it, point it at your application and switch it back into .NET 1.1
> instead of .NET 2.
>
> If you aren't use a .NET 2.0 beta anywhere on the machine take a look at
> http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B306172. This
> describes common error messages and how to resolve them with .NET.
>
> Finally, the settings you posted for your web.config indicate that you
> want your application to access a local file at runtime. SInce this is a
> web application, make sure that the web application user has access rights
> to that file or you will find that you will next get a security violation
> error thrown when you do resolve the problem.
>
> Hope that helps,
>
>
> --
> Pete Wright
> Author of ADO.NET Novice to Pro for Apress
> www.petewright.org
>
>
>
>
> "Dan" <dan@dsully.com> wrote in message
> news:OR7E4LiFFHA.2736@TK2MSFTNGP09.phx.gbl...
>>I am trying to add a definition for ConnString to web.config as follows
>>(VB.NET STD 2003)
>>
>> <configuration>
>> <system.web>
>> .........
>> <appsettings>
>> <add key="ConnString" value="C:\test\test.mdb" />
>> </appsettings>
>>
>> </system.web>
>> </configuration>
>>
>> When I try to run it, I get "Error while trying to run project: Unable to
>> start debugging on web server. Server side error occurred on sending
>> debug HTTP request."
>>
>> I have tried relocating the entry inside the <system.web> tags with the
>> same result.
>>
>> What am I doing wrong? Thanks.
>>
>
>
- Next message: Eduardo78: "Would like to know how to set the default botton on a msgbox to no"
- Previous message: Playa: "Checking for Characters"
- In reply to: Pete Wright: "Re: web.config"
- Next in thread: Nick Malik [Microsoft]: "Re: web.config"
- Reply: Nick Malik [Microsoft]: "Re: web.config"
- Messages sorted by: [ date ] [ thread ]