Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Problem with Web.config fileProblem with Web.config file
Previous
 
Next
New Post
12/6/2007 2:35 PM
 

Hello everyone... I'm experiencing a problem here with my attempt to install DNN 4.7.


 Parser Error Message: Unrecognized attribute 'name'. Note that attribute names are case-sensitive.

Source Error:


Line 28:  <appSettings>
Line 29:  
Line 30:   <add name="SiteSqlServer"
Line 31:       connectionString="Data Source=.;Database=prueba-dnn;uid=prueba-dnn;pwd=pepe.griyo"
Line 32:       providerName="System.Data.SqlClient" />
 

Source File: c:\inetpub\wwwroot\prueba-dnn\web.config    Line: 30 


I cannot seem to find any answer to this problem on google, and I'm out of ideas... any advice, idea or tip?

Environment: Virtual Machine (VirtualPC) with W2K3 R2 SPed Developer Edition, SQL Server 2005 Developer Edition SP2

Cheers!

 
New Post
12/6/2007 2:46 PM
 

Data Source=.; needs to be filled with your SQL server name or IP address.

e.g.

<add name="SiteSqlServer" connectionString="Data Source=MyServer;Database=prueba-dnn;uid=prueba-dnn;pwd=pepe.griyo" providerName="System.Data.SqlClient" />

Please note that if that's the username & password to your database, you should change it since you posted it to a public forum.

 
New Post
12/6/2007 2:54 PM
 

Thanks for the ultra-fast reply! anyway, this did not help fix the problem :( and about the password, it was justa  place holder, a silly word in spanish, not the real password, but thanks for takng care anyway ;)

 
New Post
12/6/2007 4:25 PM
 

I found the problem! The connection string was not wrong, the problem was that the ASP.NET application was running under .NET framework version 1.1, and the web.config file (and framework infrastructure) changed in 2.0. The framework that was trying to run the application (1.1) did not know aboyut the changes in the configuration sections in the new version, so it prompted the syntax errors.

In the end, what i did to solve the problem, was to register again the script maps in all ASP.NET applications under the path of DDN like this:

aspnet_regiis.exe -s W3SVC/1/ROOT/DNN (in my case..)

And now it reads correctly the configuration file.

 

 
New Post
12/6/2007 5:21 PM
 

Your welcome. I am glad you got it working!

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Problem with Web.config fileProblem with Web.config file


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out