我正在Visual Studio 2013上开发Web应用程序,我遇到了下一个问题: The type ‘AddressMaintenance.App_Code.DAL.DataSetTableAdapters.VALUESTableAdapter’ is ambiguous: it could come from assembly ‘C:\Windows\Microsoft.NET\
The type ‘AddressMaintenance.App_Code.DAL.DataSetTableAdapters.VALUESTableAdapter’ is ambiguous: it could come from assembly ‘C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\47bb176a\b43c95ba\App_Code.xtamkrzu.DLL’ or from assembly ‘C:\inetpub\wwwroot\AddressMaintenance\bin\AddressMaintenance.DLL’. Please specify the assembly explicitly in the type name.
我已经阅读了互联网和其他用户的问题,我没有找到错误.
我也尝试在IIS7上运行应用程序(不是在我正在开发Web的计算机上),我得到了同样的错误.
使应用程序崩溃的代码是:
<asp:ObjectDataSource ID="ODS_GetUsers" runat="server" SelectMethod="getUsers" TypeName="AddressMaintenance.App_Code.DAL.DataSetTableAdapters.USERSTableAdapter"> <SelectParameters> <asp:Parameter DefaultValue="Active" Name="value_type" Type="String" /> </SelectParameters> </asp:ObjectDataSource>
先感谢您.
我在这里找到了解决方案 http://vishaljoshi.blogspot.co.uk/2009/07/appcode-folder-doesnt-work-with-web.html我将App_Code文件夹重命名为其他文件夹.
谢谢.