Duplicate 'AssemblyXXX' attribute

Posts   
 
    
Wylie
User
Posts: 8
Joined: 17-Apr-2006
# Posted on: 18-Apr-2006 18:30:27   

I'm creating a LLBL DAL for a DotNetNuke project in VS 2005 on .NET 2.0.

I've read the getting started sections of the documentation and have followed the tutorial videos.

The videos are slightly different from the latest pro version, but I think I'm doing things OK.

  • I output the generated code into the App_Code/MyProject directory
  • I have moved the app.config setting to my web.config
  • I've added two projects: MyProject.LLBL.csproj and MyProject.LLBLDBSpecific.csproj
  • I've made references to both of these projects
  • I have noticed that references to SD.LLBLGen.Pro.DQESqlServer.NET20 and SD.LLBLGen.Pro.ORMSupportClasses.NET20 were both automatically added to my references section.

All this goes well until I try to compile. ( I have not added any utilization in the .cs code at this time).

I get a dozen of these errors. One from each Assembly property in the Database/Specific/AssemblyInfo.cs class.


Error 181 Duplicate 'AssemblyKeyName' attribute  :\Inetpub\Dev\Net2\DNN4_Dev\WebRoot\App_Code\WidgetDAL\LLBL\DatabaseSpecific\AssemblyInfo.cs   58 12 C:\...\WebRoot\

Any ideas or guidance would be greatly appreciated.

Thanks, Wylie

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 18-Apr-2006 19:26:03   

Very strange, are there two assemblyinfo files or something?

Frans Bouma | Lead developer LLBLGen Pro
Wylie
User
Posts: 8
Joined: 17-Apr-2006
# Posted on: 18-Apr-2006 20:14:16   

Hi Otis,

My mistake was to place the generated code under the App_Code directory.

I've set the generated code outside of the webroot directory tree and things compile fine now. Next step will be to utilize some of the entities.

Thanks, Chris