如何发布我的Web应用程序?

问题描述:

这是我在asp.net的第一个项目....现在我想学习发布...我的本地计算机连接局域网...我使用的是Windows XP-VS2010 ...



我的项目位置是C:\ WebSites \ First



我改变了我的连接字符串,如下所示[web。 config]



Its my first project in asp.net....Now I wish to learn about publishing...with my local computer connected with LAN... Iam using Windows XP- VS2010...

my project location is "C:\WebSites\First"

I changed my connectionstring as like below [web.config]

<add name="MyLearnProject"

         connectionString="Server=192.128.1.14, 3290; Integrated Security=SSPI;Database=MyTest_Management; User Id=codeproject; Password=xxxxxxx"

         providerName="System.Data.SqlClient" />



然后发布...



发布方法:Webdeploy ...

服务网址:http://localhost/default.aspx ...... ???????这是错误吗? />


网站申请:MyDomainName.com/C:\WebSites\First\MyLearn_publish\MyLearn_publish ........ ??????是不是错了?



另外我是否必须选择在目的地标记为IIS应用程序。 ... ????

谢谢


And then for publish...

Publish method : Webdeploy...
Service url : http://localhost/default.aspx ......??????? Is it mistake?

Site Application : MyDomainName.com/C:\WebSites\First\MyLearn_publish\MyLearn_publish ........?????? Is it mistake?

Also whether I have to select this "Mark as IIS application on destination".... ????
Thanks

如果你想托管网站,只需要在IIS上添加它,您可以提供您选择的任何物理路径。试试这些链接



http://msdn.microsoft.com/en-us/library/zwk103ab.aspx [ ^ ]



http://www.dotnetspider.com/forum/265644- How-deploy-asp.net-websit-local-PC.aspx [ ^ ]
if you want to host a website ,simply you need to add it on the IIS ,you can give any physical path of your choice. Try these links

http://msdn.microsoft.com/en-us/library/zwk103ab.aspx[^]

http://www.dotnetspider.com/forum/265644-How-deploy-asp.net-websit-local-PC.aspx[^]