惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
MyScale Blog
MyScale Blog
博客园 - 【当耐特】
I
InfoQ
腾讯CDC
aimingoo的专栏
aimingoo的专栏
L
LangChain Blog
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Vercel News
Vercel News
C
Check Point Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
Y
Y Combinator Blog
D
Docker
MongoDB | Blog
MongoDB | Blog
量子位
博客园_首页

博客园 - 漂泊者

开源客户关系管理系统SplendidCRM下的二次开发 SplendidCRM的个性化配置 开源CRM软件SplendidCrm的中文语言包 开源CRM的选择 开发模式的思考 双击打不开程序而是打开属性的解决方法 关闭移动硬盘或光盘的自动扫描 查询条件组件 日程排序 内嵌的主表明细显示 调试dnn4.0时出现的问题及解决办法 对NDoc支持.net2.0的异常分析及解决 《Visual Studio.NET Tips and Tricks》一书翻译下载 《Visual Studio.NET Tips and Tricks》第五章的翻译 《Visual Studio.NET Tips and Tricks》第四章的翻译 《Visual Studio.NET Tips and Tricks》第三章的翻译 《Visual Studio.NET Tips and Tricks》第二章的翻译 《Visual Studio.NET Tips and Tricks》第一章的翻译 《Visual Studio.NET Tips and Tricks》目录
编译错误BC30318的解决方法
漂泊者 · 2007-03-14 · via 博客园 - 漂泊者

        用VS2005打开DNN4.4的解决方案,可以正常编译。但调试时会出现编译错误BC30318。下面是编译时的出错信息:
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: BC30138: 无法在路径“C:\WINDOWS\TEMP\”中创建临时文件: 拒绝访问。

Source Error:

[No relevant source lines]


Source File: vbc :    Line: 0
Show Detailed Compiler Output:


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
        奇怪的是,在VS2005中可以正常编译。为什么调试时编译就不行了呢。仔细看一下错误描述。猜想调试时可能会在临时目录下创建一些临时用的中间文件。这问题可能又是B/S模式下常见的安全性问题了。
打开资源管理器,导航到c:\windows下,右击temp目录从弹出的菜单上选择“共享与安全...”(见下图),可以看到并没有与asp.net相关的用户。


        点击添加按钮添加network service用户(2003下,如是XP应该是asp_net),并赋上写入的权限。然后再重新调试,正常。能暂时解决BC30318的编译错误,但不知这样解决后会不会造成安全性的隐患呢?