我在本地计算机上的ASP.NET中创建了几个简单页面,并且它们在localhost上运行正常。我使用外部Facebook Connect API进行Facebook Connect与我的网站集成。但是当我将项目部署到实时服务器时,它会出现以下错误:
Compiler Error Message: CS0246: The type or namespace name 'ASPSnippets' could not be found (are you missing a using directive or an assembly reference?)
引用DLL位于Bin目录中,它应该可以正常工作。不知道出了什么问题! :'(
Here is the complete error Details:
编译错误
描述:编译服务此请求所需的资源时发生错误。请查看以下特定错误详细信息并相应地修改源代码。
编译器错误消息:CS0246:类型或命名空间名称' ASPSnippets'找不到(你错过了使用指令或汇编引用吗?)
来源错误:
第5行:使用System.Web.UI; 第6行:使用System.Web.UI.WebControls; 第7行:使用ASPSnippets.FaceBookAPI; 第8行:使用System.Web.Script.Serialization; 第9行:
源文件:c:\ HostingSpaces \ theitfor \ projects.theitfort.com \ wwwroot \ HamaraPakistan \ Default.aspx.cs Line:7
显示详细的编译器输出:
C:\的Windows \ Syswow64资料\ INETSRV> " C:\的Windows \ Microsoft.NET \框架\ v4.0.30319 \ CSC.EXE" / t:library / utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Web.Entity.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /out:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files \ root \ aa2af9fb \ 80cee35a \ App_Web_wycatr4n.dll" / debug- / optimize + / w:4 / nowarn:1659; 1699; 1701; 612; 618 / warnaserror-" C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files \ root \ aa2af9fb \ 80cee35a \ App_Web_wycatr4n.0.cs" " C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files \ root \ aa2af9fb \ 80cee35a \ App_Web_wycatr4n.1.cs" " C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files \ root \ aa2af9fb \ 80cee35a \ App_Web_wycatr4n.2.cs" " C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files \ root \ aa2af9fb \ 80cee35a \ App_Web_wycatr4n.3.cs" " C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files \ root \ aa2af9fb \ 80cee35a \ App_Web_wycatr4n.4.cs" " C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files \ root \ aa2af9fb \ 80cee35a \ App_Web_wycatr4n.5.cs" " C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files \ root \ aa2af9fb \ 80cee35a \ App_Web_wycatr4n.6.cs"
Microsoft(R)Visual C#编译器版本4.0.30319.17929
for Microsoft(R).NET Framework 4.5 版权所有(C)Microsoft Corporation。保留所有权利。
c:\ HostingSpaces \ theitfor \ projects.theitfort.com \ wwwroot \ HamaraPakistan \ Default.aspx.cs(7,7):错误CS0246:类型或命名空间名称' ASPSnippets'找不到(你错过了使用指令或程序集引用吗?) c:\ HostingSpaces \ theitfor \ projects.theitfort.com \ wwwroot \ HamaraPakistan \ RegistrationStep2.aspx.cs(8,7):错误CS0246:类型或命名空间名称' ASPSnippets'找不到(你错过了使用指令或汇编引用吗?)
版本信息:Microsoft .NET Framework版本:4.0.30319; ASP.NET版本:4.0.30319.18044
有什么好主意吗?