0

我在本地计算机上的 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”(您是否缺少 using 指令或程序集引用?)

源错误:

第 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 行:7

显示详细的编译器输出:

C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\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 文件\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\临时 ASP.NET 文件\root\aa2af9fb\80cee35a\App_Web_wycatr4n.1.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\临时 ASP.NET 文件\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"NET 文件\root\aa2af9fb\80cee35a\App_Web_wycatr4n.2.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\临时 ASP.NET 文件\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 文件\root\aa2af9fb\80cee35a\App_Web_wycatr4n.5.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\临时 ASP.NET 文件\root\aa2af9fb\80cee35a\App_Web_wycatr4n.6.cs "NET 文件\root\aa2af9fb\80cee35a\App_Web_wycatr4n.2.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\临时 ASP.NET 文件\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 文件\root\aa2af9fb\80cee35a\App_Web_wycatr4n.5.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\临时 ASP.NET 文件\root\aa2af9fb\80cee35a\App_Web_wycatr4n.6.cs "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\临时 ASP.NET 文件\root\aa2af9fb\80cee35a\App_Web_wycatr4n.6.cs"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\临时 ASP.NET 文件\root\aa2af9fb\80cee35a\App_Web_wycatr4n.6.cs"

Microsoft (R) Visual C# 编译器版本 4.0.30319.17929

Microsoft (R) .NET Framework 4.5 版权所有 (C) Microsoft Corporation。版权所有。

c:\HostingSpaces\theitfor\projects.theitfort.com\wwwroot\HamaraPakistan\Default.aspx.cs(7,7):错误 CS0246:找不到类型或命名空间名称“ASPSnippets”(您是否缺少 using 指令或程序集引用?) c:\HostingSpaces\theitfor\projects.theitfort.com\wwwroot\HamaraPakistan\RegistrationStep2.aspx.cs(8,7):错误 CS0246:找不到类型或命名空间名称“ASPSnippets”(您是否缺少 using 指令或程序集引用?)

版本信息:Microsoft .NET Framework 版本:4.0.30319;ASP.NET 版本:4.0.30319.18044

有什么好的想法吗??

4

0 回答 0