"/"应用程序中的服务器错误. -网络访问被拒绝 [英] Server Error in '/' Application. - Network Access Denied

查看:67
本文介绍了"/"应用程序中的服务器错误. -网络访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用许多使用服务器的应用程序.

现在,我已更改并迁移了我的域.以前是"ABCO".

现在,当前域为"ABCONET".

更改域后,我无法打开链接文件.我可以打开应用程序行中的第一个链接文件,但其余文件我无法打开.

它将引发如下错误.

I have been using many application using server.

Now i have changed and migrated my domain. previously it was "ABCO".

Now, Current domain is "ABCONET".

After changing the domain, i am unable to open the link file. very first link file in the row of the application i am able to open, but the rest of the files i am not able to open.

It will throw the error as below.

Server Error in '/' Application.

--------------------------------------------------------------------------------

Network access is denied.

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.IOException: Network access is denied.


Source Error: 
Line 93:             Response.AddHeader("ContentDisposition", "attachment;filename=path")
Line 94: 
Line 95: Response.TransmitFile(path) Line 96:             Response.End()
Line 97:         Else 



在更改域之前,同样的方法正在起作用.

问题是什么.



The samething was working before changing the domain.

What is the problem. and how we can solve this...?

推荐答案

这是一篇了解ASp.NET安全配置的好文章:
This is a good article to understand ASp.NET security configuration: Understanding ASP.NET Impersonation Security[^]

Check what happens, after setting the permission to the folder for ASPNET User and NETWROK Service.


这肯定听起来像是权限问题.检查您要访问的文件夹的文件夹选项中的安全性"选项卡,并确保有必要的用户可用,并且正在引用正确的域.

我希望这会有所帮助.
It definitely sounds like a permissions issue. Check the security tab in the folder options of the folder you are trying to access and ensure that the necessary users are available and are referencing the correct domain.

I hope this helps in some way.


这篇关于"/"应用程序中的服务器错误. -网络访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆