您无权访问 Plesk 上的此文档 ASP.NET MVC 3
在远程主机上上传我的网站后,出现以下错误:
403 禁止 您无权访问此文档
我的网站是 Plesk 9.5.4 面板上的 ASP.NET MVC 3 Web 应用程序。
[更新]
首先,我很抱歉我的问题不好!
我上传了 bin
、Views
、Content
、Scripts
、web.config
和 < code>Global.asax 文件位于主机上的 httpdocs
目录中,但刷新页面后出现 403 错误。我还在 bin
MicroCatalog.dll 文件旁边上传了 System.Web.Mvc.dll
和 EntityFramework.dll
> 文件夹。
Plesk 上是否有任何类型的配置,或者我应该编写任何代码来解决此问题吗?
我的默认控制器是 Home
,默认操作是 Index
如 global.asax.cs 文件中所述:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
routes.MapRoute("Signout", "Account/LogOff/");
}
[/update]
After i upload my website on remote host i got following error:
403 Forbidden
You do not have permission to access this document
My website is an ASP.NET MVC 3 web application on Plesk 9.5.4 panel.
[update]
First of all, i'm sorry for my bad question!
I uploaded bin
, Views
, Content
, Scripts
, web.config
and Global.asax
file on httpdocs
directory on host, but after refreshing the page i got 403 error. I also upload System.Web.Mvc.dll
and EntityFramework.dll
beside of my MicroCatalog.dll
file in bin
folder.
Is there any kind of configuration on Plesk or should I write any code to fix this problem?
My default controller is Home
and default action is Index
as described on global.asax.cs file:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
routes.MapRoute("Signout", "Account/LogOff/");
}
[/update]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对我来说听起来像是 IIS 配置问题。您是否确定应用程序池已配置为
.NET 4.0
?Sounds to me like an IIS configuration problem. Have you made sure the App Pool is configured to
.NET 4.0
?