编译错误
“/storeimg”应用程序中的服务器错误。
编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。
编译器错误消息: CS0234: 命名空间“Purple”中不存在类型或命名空间名称“Model”(是否缺少程序集引用?)
源错误:
行 51: <pages> 行 52: <namespaces>行 53: <add namespace="Purple.Model" /> 行 54: <add namespace="System.Web.Mvc" /> 行 55: <add namespace="System.Web.Mvc.Ajax" /> |
源文件: c:inetpubwwwroot3storebookWeb.config
行: 53
显示详细的编译器输出:
c:windowssystem32inetsrv> "C:WindowsMicrosoft.NETFrameworkv4.0.30319csc.exe" /t:library /utf8output /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Routingv4.0_4.0.0.0__31bf3856ad364e35System.Web.Routing.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.VisualStudio.Web.PageInspector.Runtimev4.0_1.0.0.0__b03f5f7f11d50a3aMicrosoft.VisualStudio.Web.PageInspector.Runtime.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_32System.Datav4.0_4.0.0.0__b77a5c561934e089System.Data.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.WebPages.Deploymentv4.0_2.0.0.0__31bf3856ad364e35System.Web.WebPages.Deployment.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Activitiesv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Activities.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ComponentModel.DataAnnotationsv4.0_4.0.0.0__31bf3856ad364e35System.ComponentModel.DataAnnotations.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Runtime.Serializationv4.0_4.0.0.0__b77a5c561934e089System.Runtime.Serialization.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Xmlv4.0_4.0.0.0__b77a5c561934e089System.Xml.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Servicesv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.Services.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.IdentityModelv4.0_4.0.0.0__b77a5c561934e089System.IdentityModel.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.DynamicDatav4.0_4.0.0.0__31bf3856ad364e35System.Web.DynamicData.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Drawingv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Data.DataSetExtensionsv4.0_4.0.0.0__b77a5c561934e089System.Data.DataSetExtensions.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Webv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Web.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.VisualStudio.Web.PageInspector.Loaderv4.0_1.0.0.0__b03f5f7f11d50a3aMicrosoft.VisualStudio.Web.PageInspector.Loader.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Activitiesv4.0_4.0.0.0__31bf3856ad364e35System.Activities.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Extensionsv4.0_4.0.0.0__31bf3856ad364e35System.Web.Extensions.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Xml.Linqv4.0_4.0.0.0__b77a5c561934e089System.Xml.Linq.dll" /R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319mscorlib.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModelv4.0_4.0.0.0__b77a5c561934e089System.ServiceModel.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.CSharpv4.0_4.0.0.0__b03f5f7f11d50a3aMicrosoft.CSharp.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.WorkflowServicesv4.0_4.0.0.0__31bf3856ad364e35System.WorkflowServices.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Abstractionsv4.0_4.0.0.0__31bf3856ad364e35System.Web.Abstractions.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_32System.EnterpriseServicesv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.EnterpriseServices.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Activationv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Activation.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.WebPages.Deploymentv4.0_1.0.0.0__31bf3856ad364e35System.Web.WebPages.Deployment.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.ApplicationServicesv4.0_4.0.0.0__31bf3856ad364e35System.Web.ApplicationServices.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_32System.Webv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.dll" /R:"C:WindowsassemblyGAC_MSILSystem.Web.Mvc2.0.0.0__31bf3856ad364e35System.Web.Mvc.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystemv4.0_4.0.0.0__b77a5c561934e089System.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Corev4.0_4.0.0.0__b77a5c561934e089System.Core.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Configurationv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll" /R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesstoreimg10d100b6a4b35b2aassemblydl3d4ed6a10fd3573cb_da36d101Purple.WebImg.dll" /out:"C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesstoreimg10d100b6a4b35b2aApp_global.asax.jnwajpba.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701;612;618 /warnaserror- "C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesstoreimg10d100b6a4b35b2aApp_global.asax.jnwajpba.0.cs" "C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Filesstoreimg10d100b6a4b35b2aApp_global.asax.jnwajpba.1.cs" Microsoft(R) Visual C# 编译器版本 4.0.30319.17929 用于 Microsoft(R) .NET Framework 4.5 版权所有 (C) Microsoft Corporation。保留所有权利。 c:inetpubwwwroot3storebookWeb.config(53,18): error CS0234: 命名空间“Purple”中不存在类型或命名空间名称“Model”(是否缺少程序集引用?) |
显示完整的编译源:
行 1: <?xml version="1.0" encoding="utf-8"?> 行 2: 行 3: <!-- 行 4: 有关如何配置 ASP.NET 应用程序的详细信息,请访问 行 5: http://go.microsoft.com/fwlink/?LinkId=152368 行 6: --> 行 7: 行 8: <configuration> 行 9: <connectionStrings> 行 10: <add name="ConnStr_Storebook" connectionString="Server=.;Database=Storebook;Uid=sa;Pwd=bjhttr" /> 行 11: </connectionStrings> 行 12: <appSettings> 行 13: <add key="WebDAL" value="Purple.SqlServerDAL" /> 行 14: </appSettings> 行 15: 行 16: <system.web> 行 17: <compilation debug="true" targetFramework="4.0"> 行 18: <assemblies> 行 19: <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 行 20: <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 行 21: <add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 行 22: </assemblies> 行 23: </compilation> 行 24: 行 25: <authentication mode="Forms"> 行 26: <forms loginUrl="~/account/login" timeout="2880" /> 行 27: </authentication> 行 28: 行 29: <membership> 行 30: <providers> 行 31: <clear /> 行 32: <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> 行 33: </providers> 行 34: </membership> 行 35: 行 36: <profile> 行 37: <providers> 行 38: <clear /> 行 39: <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" /> 行 40: </providers> 行 41: </profile> 行 42: 行 43: <roleManager enabled="false"> 行 44: <providers> 行 45: <clear /> 行 46: <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /> 行 47: <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /> 行 48: </providers> 行 49: </roleManager> 行 50: 行 51: <pages> 行 52: <namespaces> 行 53: <add namespace="Purple.Model" /> 行 54: <add namespace="System.Web.Mvc" /> 行 55: <add namespace="System.Web.Mvc.Ajax" /> 行 56: <add namespace="System.Web.Mvc.Html" /> 行 57: <add namespace="System.Web.Routing" /> 行 58: </namespaces> 行 59: </pages> 行 60: </system.web> 行 61: 行 62: <system.webServer> 行 63: <validation validateIntegratedModeConfiguration="false" /> 行 64: <modules runAllManagedModulesForAllRequests="true" /> 行 65: </system.webServer> 行 66: 行 67: <runtime> 行 68: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 行 69: <dependentAssembly> 行 70: <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> 行 71: <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" /> 行 72: </dependentAssembly> 行 73: </assemblyBinding> 行 74: </runtime> 行 75: </configuration> 行 76: 行 77: |
版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.18055