如何在线运行MVC应用程序 [英] How to run MVC application online

查看:83
本文介绍了如何在线运行MVC应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好你..

我想知道如何在线运行mvc应用程序...



基本上我开发的很少视觉工作室2008中的MVC应用程序..

它运行正常...



但是当我发布并上传它时会出现错误内部服务器错误..资源未建立。



请告诉我会有什么问题。 ...

请不要知道。我还没有MVC工作。



是否....

在本地主机上运行:htttp:// localhost

没有路径显示...

但在线可能是文件路径没有得到......会是什么有问题我不知道请告诉我。

解决方案

如何在线运行MVC应用程序

托管与其他ASP.NET Web应用程序的方式相同。看看这些链接:

MSDN :如何:部署ASP.NET MVC应用程序 [ ^ ]

将ASP.NET MVC部署到IIS 6 [ ^ ]







如果您遇到错误: HRESULT说明您要查找的资源存在问题,因此无法显示。

发生此问题是因为请求的资源的处理程序映射指向无法处理请求的.dll文件。



要解决此问题,请编辑所请求资源的处理程序映射,使其指向可处理请求的.dll文件。为此,请按照下列步骤操作:



1.单击开始,单击运行,键入inetmgr.exe,然后单击确定。

2.在IIS管理器中,展开服务器名称,展开网站,然后单击要修改的网站。

3.在功能视图中,双击处理程序映射。

4.右键单击要编辑的脚本映射,然后单击编辑。

5.在编辑脚本映射对话框的可执行文件框中,键入相应的可执行文件,然后单击确定。



例如,.asp文件应映射到%windir%\system32 \inetsrv \ asp.dll文件。 />


在此处查看详细信息: Microsoft支持:访问网站时出现错误消息在IIS 7.0上托管:HTTP错误500.0 - 内部服务器错误 [ ^ ]

Hello All of u..
I wants to know how to run mvc application online...

Basically I develop little MVC Application in visual studio 2008..
Its running properly...

But when I publish it and upload it gives error "Internal server Error"..Resource not founded.

please tell me what would be problem. ...
Please I dont know .I haven't work on MVC.

whether....
In local host its run by: htttp://localhost
no path are showing...
but online may be file path not getting..what will be problem i dont know please tell me.

解决方案

How to run MVC application online
It is hosted in the same way as other ASP.NET web application are. Have a look at these links:
MSDN: How to: Deploy an ASP.NET MVC Application[^]
Deploying ASP.NET MVC to IIS 6[^]



If you are facing an error: Description of HRESULT There is a problem with the resource you are looking for, so it cannot be displayed.
This problem occurs because the handler mapping for the requested resource points to a .dll file that cannot process the request.

To resolve this problem, Edit the handler mapping for the requested resource to point to the .dll file that can process the request. To do this, follow these steps:

1. Click Start, click Run, type inetmgr.exe, and then click OK.
2. In IIS Manager, expand server name, expand Web sites, and then click the Web site that you want to modify.
3. In Features view, double-click Handler Mappings.
4. Right-click the script mapping that you want to edit, and then click Edit.
5. In the Edit Script Map dialog box, type the appropriate executable file in the Executable box, and then click OK.

For example, .asp files should map to the %windir%\system32\inetsrv\asp.dll file.

See details here: Microsoft Support: Error message when you visit a Web site that is hosted on IIS 7.0: "HTTP Error 500.0 – Internal Server Error"[^]


这篇关于如何在线运行MVC应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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