如何在系统中运行dotnet文件。 [英] How to run dotnet files in system.
问题描述
大家好,
我在VS201o中停止了一个简单的HTML和ASPX页面。
我想要一个名为test的新网站,并在该测试文件夹中创建index.html和Home.aspxpages.In索引页面,当我点击该链接时,我放置了一个名为test的链接我将重定向到home.aspx页面。
在我的系统中测试工作正常。但它在其他系统中无效。
错误:
当我点击测试index.html页面中的链接按钮,它重定向到home.aspx页面,但它在aspx页面显示代码。
<%@ Page Language =C#AutoEventWireup =trueCodeFile =Default.aspx.csInherits =_ Default%>
<!DOCTYPE html PUBLIC - // W3C // DTD XHTML 1.0 Transitional // ENhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
< html xmlns =http://www.w3.org/1999/xhtml>
< head runat =server>
< title>< / title>
< / head>
< body>
< form id =form1runat =server>
< div>
Hellow world ... !
< / div>
< / form>
< / body>
< / html>
我已经安装了
microsoft dot net framework 4.5
在那个系统中。
我的总体目标是我想在VS2010中创建一个网站,并希望在没有安装vs2010的情况下在正常系统中进行测试。
如何在没有安装VS2010的情况下在普通系统中运行这些文件。
感谢您的光临。
我尝试过:
<%@ Page Language = C#AutoEventWireup =trueCodeFile =Default.aspx.csInherits =_ Default%>
<!DOCTYPE html PUBLIC - / / W3C // DTD XHTML 1.0 Transitional // ENhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
G. Mahendra [ ^ ]写道:在我的系统中测试工作正常。但是它在其他系统中不起作用
为了能够在其他系统上运行asp.net应用程序,你必须部署它。请参阅:
演练:部署Web应用程序项目使用Web部署包(第1部分,共4部分) [ ^ ]
Visual Studio和ASP.NET的Web部署概述 [ ^ ]
如何:在Visual Studio中使用一键式发布部署Web项目 [ ^ ]
如何:使用One-Click Publish Witho部署Web应用程序项目ut Web Deploy [ ^ ]
Hi all, I ceated an simple "HTML and ASPX"pages in VS201o. I craete a new website named as "test" and in that test folder i creat "index.html and "Home.aspx" pages.In index page i placed a link called "test" when i click on that link i will redirect to "home.aspx"page. Test working fine in my system. But it is not working in other system. Error: When i click on "test"link button in index.html page it redirects to home.aspx page but it displays the code in aspx page.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> Hellow world...! </div> </form> </body> </html>
Already i installed "
microsoft dot net framework 4.5
" in that system.
My overall goal "i want to create a website in VS2010"and want to test in normal system without instaling vs2010."
How can i run these files in normal system without instatling VS2010.
Thanks in adveance.
What I have tried:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
G.Mahendra[^] wrote:Test working fine in my system. But it is not working in other system
To be able to run asp.net application on other systems, you have to deploy it. See:
Walkthrough: Deploying a Web Application Project Using a Web Deployment Package (Part 1 of 4)[^]
Web Deployment Overview for Visual Studio and ASP.NET[^]
How to: Deploy a Web Project Using One-Click Publish in Visual Studio[^]
How to: Deploy a Web Application Project Using One-Click Publish Without Web Deploy[^]
这篇关于如何在系统中运行dotnet文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!