Wierd Warnings: mailSettings modification results in many web.config messages

V

VB Programmer

When I change my "from" and "host" I get a slew of web.config messages...

Here's the mailsettings...
<system.net>
<mailSettings>
<smtp from="(e-mail address removed)">
<network host="mail.mydomain.com" />
</smtp>
</mailSettings>
</system.net>

The 101 web.config messages are: "Could not find schema information for the
element...."

I even changed the settings back and these warnings persist.

Any ideas why????
 
G

Guest

Programmer,

Looks exactly like mine without the password and userName in the network
element. Here's my tip works on my vs2005 standard and enables intellisence
in the web.config file.
Find the following in your config file
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
and change it to this
<configuration>
Remember to change it back when your done.

Good Luck
DWS
 
V

VB Programmer

Changing it simply to <configuration> worked!

Is it necessary to have the xmlns link? What is it used for? Necssary?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top