re:
I wonder why they put that in by default when it eliminates
intellisense?
It's not a default.
I have a feeling your web.config was created with Beta 1 or Beta 2,
and you didn't recollect that it wasn't created from scratch.
With the release version, when you create a web.config in an
application which doesn't have one, what VS includes is this :
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configuration
xmlns="
http://schemas.microsoft.com/.NetConfiguration/v2.0">
is not included when a new web.config is created in the release version
of VS.
message Thanks guys!
I didn't realize the config section shouldn't have the xmlns in it.
Well, I shouldn't say "shouldn't have". But I wonder why they put that
in by default when it eliminates intellisense? That would have been
easy to fix I for a release version I would think...
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
Great pointer, Joerg!
I just confirmed the behavior, by replacing the <configuration>
tag in my *good* web.config with :
<configuration
xmlns="
http://schemas.microsoft.com/.NetConfiguration/v2.0">
And immediately, the same symptoms Justin descibed begin,
i.e. I get intellisense, but it only displays the choices:
<!--
<![CDATA[
<?
Just changing it back to <configuration> "fixes" it.
It's not actually a "fix" but the replacement of a misconfiguration,
right ?
S. Justin Gengo wrote:
Juan,
Yes, that's what I was getting in the beta. Now, I only get the
three
choices I mentioned in my previous post.
It's slightly annoying. If I figure out the fix I'll post it in case
anyone else has the same problem.
You can either create a new web.config and copy the contents of your
Beta 2 file over to new file (use a merge tool like WinMerge), or you
try to remove the xmlns attribute from the configuration node as a
quick fix:
<configuration
xmlns="
http://schemas.microsoft.com/.NetConfiguration/v2.0">
should be
<configuration>
Cheers,