我正在使用 Visual Studio 2010 并用 C# 创建 Windows 窗体。昨天,开发进展顺利,我正在努力将访问数据库连接到我的数据网格。它工作了几次,但是当我建立一个新连接并尝试再次运行它(F5)时,我遇到了大量错误,因此通过删除(和撤消)我的数据源来缩小范围,但错误仍然存在。就是这个...
警告 1 “C:\Users\Wilson Kao\documents\visual studio 2010\Projects\Wincent Warehouse Management Studios\Wincent Warehouse Management Studios\Form1.Designer.cs”中的类型“Wincent_Warehouse_Management_Studios.Form1”与导入的冲突输入“Wincent_Warehouse_Management_Studios.Form1”
警告 7 两个或多个程序集具有相同的标识“Wincent Warehouse Management Studios,Version=1.0.0.0,Culture=neutral,ProcessorArchitecture=x86”。 Wincent仓库管理工作室
警告 8 两个或多个文件具有相同的目标路径“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仓库管理工作室
发出警告后,它给了我这个错误......
没有可用的来源
没有为任何堆栈帧加载任何符号。无法显示源代码
我可以看到问题,但我不太确定如何解决它...我知道在我的程序中的某个地方(而不是我自己的代码)我包含了一些导致我的程序冲突。所以我尝试的是进入 bin/debug 文件夹并删除其中的所有内容......并且它有效。然而,当该目录中的文件被补充后,我又遇到了同样的问题。我迫切需要帮助,任何类型的线索都将不胜感激!谢谢! :)
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, 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! :)
发布评论
评论(1)
这对我有用,但我在 VS 2010 Pro 中使用VB。
我收到了类似的警告“两个或多个文件具有相同的目标路径...”以及“两个或多个程序集具有相同的标识...”,这是在发布我的项目并启用 ClickOnce 安全性后发生的。
对我有用的修复是:
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: