网站在我本机上运行正常,怎么发布到上海某空间就不正常呢?
Server Error in '/' Application.
--------------------------------------------------------------------------------Could not load file or assembly 'App_Licenses' or one of its dependencies. 拒绝访问。 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileLoadException: Could not load file or assembly 'App_Licenses' or one of its dependencies. 拒绝访问。Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Assembly Load Trace: The following information can be helpful to determine why the assembly 'App_Licenses' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. Stack Trace: 
[FileLoadException: Could not load file or assembly 'App_Licenses' or one of its dependencies. 拒绝访问。][FileLoadException: Could not load file or assembly 'App_Licenses, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. 拒绝访问。]
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Compilation.BuildManager.LoadLicensesAssemblyIfExists() +8902544
   System.Web.Compilation.BuildManager.Initialize() +495
   System.Web.Compilation.BuildManager.InitializeBuildManager() +267
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +224[HttpException (0x80004005): Could not load file or assembly 'App_Licenses, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. 拒绝访问。]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890735
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 

解决方案 »

  1.   

    不能加载文件或程序集“App_Licenses”或它的某一个依赖项。
    权限问题
      

  2.   

    去IIS和配置文件都检查一下。
      

  3.   

    App_Licenses文件夹没有权限访问,如果你自己的文件的权限设置没问题的话,估计要和空间的管理员联系下。
      

  4.   

    得让服务器管理员添加对App_Licenses文件夹的读写权限
      

  5.   

    在IIS中对目录右键,权限,填加IUSER_......帐号.并加上写入,修改权限.
      

  6.   

    App_Licenses权限没设好。在用户和组管理里面给IUSER_......帐号提升权限,或者直接在你的网站文件夹上右键里设置该文件夹的权限,比如允许远程读写,一般添加Network service组权限就好了,要是为安全考虑你再更改
      

  7.   

    1.检查App_Licenses文件是否存在。
    2.查看文件是否是只读,或者没有足够的权限。
    3.右击其父目录,选择"安全"->高级,选中权限下"重置所有子对象的权限并允许传播可继承权限",点确定
      

  8.   

    检查App_Licenses文件是否存在
    联系空间的管理员,增加App_Licenses所在文件夹的访问权限