2 or more assemblies have the same identity
I'm using Visual Studio 2010 and creating a Windows Form in C#. Yesterday, development was going fine, i was working on connecting an access database to my datagrid. it worked several times, however when i made a new connection and tried to run it again (F5), i got a ton of errors, so a narrowed it down by deleting (and undoing) my data sources and the error still exists. This is it...
Warning 1 The type 'Wincent_Warehouse_Management_Studios.Form1' in 'C:\Users\Wilson Kao\documents\visual studio 2010\Projects\Wincent Warehouse Management Studios\Wincent Warehouse Management Studios\Form1.Designer.cs' conflicts with the imported type 'Wincent_Warehouse_Management_Studios.Form1'
Warning 7 Two or more assemblies have the same identity 'Wincent Warehouse Management Studios, Version=1.0.0.0, Culture=neutral, ProcessorArchitecture=x86'. Wincent Warehouse Management Studios
Warning 8 Two or more files have the same target path 'C:\Users\Wilson Kao\documents\visual studio 2010\Projects\Wincent Warehouse Management Studios\Wincent Warehouse Management Studios\bin\Debug\Wincent Warehouse Management Studios.exe'. Wincent Warehouse Management Studios
After the warnings, it gave me this error...
No Source Available No Symbols are loaded for any stackframe. The source code could not be displayed
I can sort of see the problem but I'm not too sure how to solve it... I know in my program somewhere (and not my own code) I am including something that causes my program to conflict. So what I tried was I went to the bin/debug folder and deleted everything in it... and it worked. However,开发者_C百科 after the files in that directory were replenished, I got the same problem again. I'm in some desperate need for help and any sort of clue where to go will be greatly appreciated! Thanks! :)
This worked for me but I'm using VB in VS 2010 Pro.
I have had a similar warning "Two or more files have the same target path ..." along with "Two or more assemblies have the same identity....." this has occurred after publishing my project, with the ClickOnce Security enabled.
The fix that worked for me was:
- Open the project properties dialog, Properties > "projectname" Properties
- Open the "publish" tab. Select "Application Files"
- I had two entries for my projects "exe" file EG:- Accounts.exe. Pick one of the duplicates select the "Publish Status" drop down select "Exclude"
- Then click "Publish Now"
精彩评论