Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

runtime error: 'name' is a duplicate attribute name

Status
Not open for further replies.

mrkan

Programmer
Oct 30, 2006
39
US
Every time I try to compile I get this error:
ASP.NET runtime error: 'name' is a duplicate attribute name. Line 19, position 132. (C:\dev\myfolder\staging\web.config line 19)

In web.config (line 19), there is nothing, no name tags, that could produce this error....

I tried to remove web.config and to let VS to create own. I got same error. So obviously this is not web.config problem, even though VS is reporting it that way. Does anybody have idea what I am doing wrong.

I have VS2005 (c#)
And also, I am novice, so please take that into account....

Thanks.
 
search the web.config for "name" if it shows up twice within a tag that's the problem.

also, when the app is compiled the machine.config and web.config are merged. so maybe you added a tag with the same identifier to the web.config, which already exsits in the app.config.
I dont' think this is the case however.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top