存档

2013年1月 的存档

编译器错误信息: CS0016: 未能写入输出文件“c:\Windows\Microsoft.NET\Framework……”–“

2013年1月25日 没有评论

说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。
编译器错误消息: CS0016: 未能写入输出文件“c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\yaming\88832561\f6ecaa7\App_global.asax.noqfk5qp.dll”–“拒绝访问。 ”
源错误:

显示详细的编译器输出:

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\Framework64\v4.0.30319\Temporary ASP.NET Files\root\8f9ce064\7cf21115\App_Code.68xao2ag.dll’ — ‘拒绝访问。 ‘
Source Error:

[No relevant source lines]

Source File: Line: 0
Show Detailed Compiler Output:
c:\windows\system32\inetsrv> “C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\csc.exe” /t:library /utf8output /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.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.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.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.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.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.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_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll” /R:”C:\WINDOWS\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.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\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.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.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.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.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_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.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\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.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.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.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\Framework64\v4.0.30319\mscorlib.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.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll” /out:”C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\8f9ce064\7cf21115\App_Code.68xao2ag.dll” /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 /warnaserror- “C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\8f9ce064\7cf21115\App_Code.68xao2ag.0.cs” “C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\8f9ce064\7cf21115\App_Code.68xao2ag.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\Framework64\v4.0.30319\Temporary ASP.NET Files\root\8f9ce064\7cf21115\App_Code.68xao2ag.dll’ — ‘拒绝访问。 ‘

function OnToggleTOCLevel1(level2ID) { var elemLevel2 = document.getElementById(level2ID); if (elemLevel2.style.display == ‘none’) { elemLevel2.style.display = ”; } else { elemLevel2.style.display = ‘none’; } }
________________________________________
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

The Temporary ASP.NET Files  and C:\Windows\temp folders should have IIS_WPG and NETWORK SERVICE users with the full control permission. I have no idea why C:\Windows\temp folder needs that but I have no effort left to try to find that. Instead, I am writing a blog post about the problem. Maybe latter I will get to that and figure it out, too

分类: C# 标签:

Zend Studio 9 + Xdebug调试配置注意事项

2013年1月6日 没有评论

机器环境:windows8+apache2.2+php5.4.10

以前一直用zend debugger ,但换了php5.4.10后发现zend debugger不支持,所以改用Xdebug。配置好Xdebug后,在 zend Studio调试时出现 launching 57%死循环,从Google上搜索发现很多人遇到这种情况,有的说换端口就解决了,我先用netstat -aon|findstr 9000 查看了一下,发现是zend studio占用该端口,所以只能另想办法,后来查文档发现xdebug.remote_host=IP_ADDRESS,而我配置的是xdebug.remote_host=”localhost”,改成xdebug.remote_host=”127.0.0.1″后就正常了,鼓捣了1个多小时。另外还需要注意xdebug.remote_enable=on这个配置!

我的配置如下:

zend_extension=”d:/php5410/ext/php_xdebug.dll”
[Xdebug]
xdebug.profiler_enable=on
xdebug.trace_output_dir=”d:/php5410/tmp/xdebug”
xdebug.profiler_output_dir=”d:/php5410/tmp/xdebug”
xdebug.profiler_output_name=”script”
xdebug.remote_port = 9000
xdebug.remote_enable=On
xdebug.remote_host=”127.0.0.1″
xdebug.remote_handler=”dbgp”

分类: PHP 标签: