首页新闻找找看学习计划

IIS 6.0部署WebService CS0016: Could not write to output 目录名称无效

0
悬赏园豆:200 [已解决问题] 解决于 2015-04-09 09:29

部署环境

   OS:Windows Server 2008

   杀毒软件:Symentec Endpoint Protection

   IIS版本:6.0

   部署项目:Web Service (.net framework 4.0已确认安装)

   IDE:VS2013(C#)

问题描述

    将正式服务器上的Web Service 项目部署到应急备用服务器,进行浏览WebService端口,浏览器提报错误如下(问题详细信息)

 

已参考信息

1.http://www.cnblogs.com/cotton/p/3978515.html

2.http://www.cnblogs.com/newsea/archive/2010/10/19/1855502.html

 

问题详细信息:

Server Error in '/' Application.


 

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\App_global.asax.wpts6thr.dll' -- '目录名称无效。 '

Source Error:

 
[No relevant source lines]


Source File:    Line: 0



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\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.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.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.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_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.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.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\1f166d72\e57895db_bc46d001\MessageCenterManager.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\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\f99e294f\064196de_bc46d001\WeatherTypeManager.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\9e5d5e89\8a0782f7_5410d001\Ceair.Operations.Serialize.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.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\ddeeeb04\001fb03e_fab6cb01\office.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\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\69ac00d7\92dcc3db_bc46d001\Core.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\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\6c4c8be2\1e113adb_bc46d001\DFBingMapBLL.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\68099249\586367db_bc46d001\ADSBManager.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.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\4c822a2c\f2ce3c7c_f849ce01\log4net.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\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\35cab72c\3ffa7ef7_5410d001\Ceair.Operations.Database.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\4145469f\006796ad_39e0c501\iTextAsian.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\178f0018\3c6331de_bc46d001\Model.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.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\e0882976\486b81f7_5410d001\Ceair.Operations.Log.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\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\2d0e5ce5\fdcf93de_bc46d001\WeatherAnalyzeManager.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\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\d23a299e\9057d4db_bc46d001\WeatherMapManager.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\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\e0e03051\271d81f7_5410d001\Ceair.Operations.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\07b28b54\926d3a7c_f849ce01\Newtonsoft.Json.Net35.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\bd3e3abd\83ec33e5_bc46d001\WebService.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\e03935d3\e63b85f7_5410d001\Ceair.Operations.Services.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\67750ac8\000d04be_4ce0c501\iTextAsianCmaps.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\c2eff6f5\01cd18db_bc46d001\METARDecoder.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\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\9364c15e\1cf179f7_5410d001\Ceair.Operations.Caching.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\c6ba3feb\c77274f7_5410d001\Ceair.Operations.BusinessLogic.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\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\a0f134bd\029aeae0_bc46d001\WeatherImgDownloadManager.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\b940485e\001fb03e_fab6cb01\Microsoft.Vbe.Interop.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\6437d5e2\553b527c_f849ce01\Microsoft.Office.Interop.Excel.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\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\2d3266c0\374481f7_5410d001\Ceair.Operations.Caching.Memcached.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\9b09eb74\d7cf89f7_5410d001\Ceair.Operations.Util.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\b5d031c9\f54cf4da_bc46d001\ModelV2.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\9d066c86\00a08e64_9143cd01\itextsharp.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\85350aac\f23177f7_5410d001\Ceair.Operations.Caching.AppFabric.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\assembly\dl3\740d1855\b7fca222_cb6ad001\BusinessLogical.dll" /out:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\App_global.asax.wpts6thr.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 /warnaserror-  "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\App_global.asax.wpts6thr.0.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\App_global.asax.wpts6thr.1.cs"


Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.

error CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\38ad6757\2b815f08\App_global.asax.wpts6thr.dll' -- '目录名称无效。 '




Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Clark Cui的主页 Clark Cui | 初学一级 | 园豆:22
提问于:2015-04-07 14:50
< >
分享
最佳答案
0

windows2008,  iis6?  你确定真的是iis6吗…………

你这种目录名无效的问题, 肯定就是目录名找不到, 或者是权限不够。 

1、C:\Windows\Temp
2、C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
这两目录,Network Service、IIS_IUSERS这两个用户要”完全访问”的权限。 

然后, 重启iis, 或者重启服务器。 

收获园豆:200
问天何必 | 老鸟四级 |园豆:3291 | 2015-04-07 19:35
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册