【发布时间】:2018-12-19 15:31:19
【问题描述】:
我收到了这个错误
"The type 'ReportViewerForMvc.ReportViewerWebForm' is ambiguous: it could come from assembly
'G:\Visual Studio\Projects\SantaMaria\Facturacion\bin\Facturacion.DLL' or from assembly
'G:\Visual Studio\Projects\SantaMaria\Facturacion\bin\ReportViewerForMvc.DLL'. Please
specify the assembly explicitly in the type name."
这来自这行代码,特别是继承部分
<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="ReportViewerWebForm.aspx.cs" Inherits="ReportViewerForMvc.ReportViewerWebForm" %>
问题是,在搜索时,所有答案都倾向于删除其中一个程序集,或者类似的东西,我需要它们。
需要一种指定程序集的方法,例如(我知道这不起作用)ReportViewerForMvc.ReportViewerWebFor[Facturacion.DLL] 或 ReportViewerForMvc.ReportViewerWebFor[ReportViewerForMvc.DLL]
我怎样才能指定两个程序集之一,同时保留我的解决方案?
【问题讨论】:
-
ReportViewerForMvc.ReportViewerWebFor, Facturacion应该可以。
标签: c# asp.net .net-assembly