调整了下服务器,net的网站出现这样的错误,脚本出现错误怎么解决决

调整了下服务器,.net的网站出现这样的错误,怎么解决?
你好,游客
点击:7906
> 查看帖子
调整了下服务器,.net的网站出现这样的错误,怎么解决?
Server Error in '/' Application.
to the temp directory is denied. &Identity 'NT AUTHORITY\NETWORK
SERVICE' under which XmlSerializer is running does not have sufficient
permission to access the temp directory. &CodeDom will use the user
account the process is using to do the compilation, so if the user
doesnt have access to system temp directory, you will not be able to
compile. &Use Path.GetTempPath() API to find out the temp directory
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.UnauthorizedAccessException:
Access to the temp directory is denied. &Identity 'NT AUTHORITY\NETWORK
SERVICE' under which XmlSerializer is running does not have sufficient
permission to access the temp directory. &CodeDom will use the user
account the process is using to do the compilation, so if the user
doesnt have access to system temp directory, you will not be able to
compile. &Use Path.GetTempPath() API to find out the temp directory
ASP.NET is not authorized to access the requested resource.
Consider granting access rights to the resource to the ASP.NET request
identity. ASP.NET has a base process identity (typically
{MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if
the application is not impersonating. If the application is
impersonating via &identity impersonate="true"/&, the identity
will be the anonymous user (typically IUSR_MACHINENAME) or the
authenticated request user.
To grant ASP.NET access to a file, right-click the file in
Explorer, choose "Properties" and select the Security tab. Click "Add"
to add the appropriate user or group. Highlight the ASP.NET account,
and check the boxes for the desired access.
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.
Stack Trace:
[UnauthorizedAccessException: Access to the temp directory is denied.
Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the temp directory.
CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access to system temp directory, you will not be able to compile.
Use Path.GetTempPath() API to find out the temp directory location.]
System.pile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) +1208
System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) +2024
System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) +74
System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace) +99
System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) +348
System.Xml.Serialization.XmlSerializer..ctor(Type type) +6
IWMS.URLRewriter.Config.RewriterConfiguration.GetConfig() +125
IWMS.URLRewriter.ModuleRewriter.Rewrite(String requestedPath, HttpApplication app) +29
IWMS.URLRewriter.BaseModuleRewriter.BaseModuleRewriter_AuthorizeRequest(Object sender, EventArgs e) +61
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
Version Information:&Microsoft .NET Framework Version:2.0.; ASP.NET Version:2.0.
re:调整了下服务器,.net的网站出现这样的错误,怎么解决?
临时目录少写权限
一周热门回复
& 暂时没有相应新闻调整了下服务器,net的网站出现这样的错误,怎么解决_百度知道
调整了下服务器,net的网站出现这样的错误,怎么解决
我有更好的答案
(⊙o⊙)…,这样的错误?什么样的!
其他类似问题
为您推荐:
服务器的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁扫描体验微信营销
||服务专线:400-
& & & &今天北斗小编在升级公司旗下网站时发现一个奇怪的问题,在域名不变的情况下,将原来数据区全部拷贝到新的VPS服务器,发现根目录的ASP文件都可以访问,例如:/about.asp,但是字目录的动态ASP文件(/zhaopin/zp?asp=68482)即提示500错误,根据网络的资源一一检查均发现正确,如果你没有检查请按照以下方法先检查一篇:
一、win7 IIS调试asp.net网站出现&500 & 内部服务器错误。 您查找的资源存在问题&
用IIS7.5调试asp.net网站的时候出现。&500 & 内部服务器错误。 您查找的资源存在问题,因而无法显示。&
这是WIN7为保护站点代码的默认设置来的,改改设置就OK了。
解决方法:
1、打开IIS,在功能视图中找到&错误页&,双击进去。
2、看最右边的&操作&下的&编辑功能设置...&,将&错误响应&下的&详细错误&勾上。
不过记得,当网站发布以后,切记要改回来!
二、win7 IIS调试ASP网站出现&http 500内部服务器错误&错误提示
http 500内部服务器错误说明IIS服务器无法解析ASP代码。
下面为大家介绍下Win7 IIS7.5运行ASP时出现500错误的解决办法
在iis7里面的iis设置要开启启用父路径这个选项,之后就可以了。
请确保在你的电脑上IIS配置完成了,静态页面能打开了,但是打开ASP就会出现500错误。再进行下面配置
具体如下:
1、进入&C:\Windows\ServiceProfiles\NetworkService\AppData\Local&(如果进入C:\Windows\ServiceProfiles\NetworkService里面没有AppData就直接再地址栏输入)。
2、在&Temp&文件夹上点右键--&属性--&安全--&选择Authenticated Users这个用户(没有的话依次点:编辑--&添加--&高级--&立即查找--&选中Authenticated Users这个用户--&确定--&确定)--&把&完全控制&勾上--&确定--&确定。
3、进入Internet信息服务(IIS)管理器【开始菜单中搜索IIS就出来了】--&双击ASP
4、展开&行为&这项,把&启用父路径&改为&Ture&,右侧点&应用&就OK了。
& & & 好,如果你已近解决,那么恭喜你,如果好没解决的朋友请检查下你网站所在目录的读写权限问题,好,小编我给EveryOne一个读写权限后完美解决该问题。
下一篇:没有了
客服热线:
体验微信营销“/”应用程序中的服务器错误及解决方法
解决方法:增加站点所在目录的ntfs权限,增加service用户对站点目录的完全控制权 出错信息如下: 运行时错误 说明: 服务器上出现应用程序错误。此应用程序的当前自定义错误设置禁止远程查看应用程序错误的详细信息(出于安全原因)。但可以通过在本地服务器计算机上运行的浏览器查看。 详细信息: 若要使他人能够在远程计算机上查看此特定错误信息的详细信息,请在位于当前 Web 应用程序根目录下的&web.config&配置文件中创建一个 &customErrors& 标记。然后应将此 &customErrors& 标记的&mode&属性设置为&Off&。 &!-- Web.Config 配置文件 --& &configuration& &system.web& &customErrors mode=&Off&/& &/system.web& &/configuration& 注释: 通过修改应用程序的 &customErrors& 配置标记的&defaultRedirect&属性,使之指向自定义错误页的 URL,可以用自定义错误页替换所看到的当前错误页。 &!-- Web.Config 配置文件 --& &configuration& &system.web& &customErrors mode=&RemoteOnly& defaultRedirect=&mycustompage.htm&/& &/system.web& &/configuration& &/&应用程序中的服务器错误。 配置错误 说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。 分析器错误信息: 无法识别的配置节&connectionStrings& 源错误: 行 12: &add key=&Dsn& value=&server=(local);database=al_uid=pwd=&/& 行 13: &/appSettings& 行 14: &connectionStrings& 行 15: &add name=&al_bysjConnectionString& connectionString=&Data Source=(local);Initial Catalog=al_User ID=Password=& providerName=&System.Data.SqlClient&/& 行 16: &/connectionStrings& 源文件: D:\PrecompiledWeb\MaterialManage\web.config 行: 14 版本信息: Microsoft .NET Framework 版本:1.1.; ASP.NET 版本:1.1. 从版本信息中可以捕捉到, 确认你的Microsoft .NET Framework 版本,我是用的是Microsoft .NET Framework 2.0。 解决方法一: 在cmd 命令行中运行 C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_regiis.exe -i 解决方法二: 在IIS中选中该网站,单击右键&属性&,选择 Asp.net 标签栏。将 Asp.net 版本改成2.0 即可。 Microsoft .NET Framework 版本:1.1., 看看
如果您喜欢本文请分享给您的好友,谢谢!如想浏览更多更好的内容,请登录:
评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)调整了下服务器,net的网站出现这样的错误,怎么解决_百度知道
调整了下服务器,net的网站出现这样的错误,怎么解决
什么错误?
其他类似问题
为您推荐:
其他1条回答
net网站出现啥错误了,你具体说下,要不然我们也不知道该如何回答
服务器的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁}

我要回帖

更多关于 解决刷机出现1041错误 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信