如何在文件系统上发布我的ASP.Net项目 [英] How do I Publish My ASP.Net Project On File System

查看:56
本文介绍了如何在文件系统上发布我的ASP.Net项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想发布我的asp应用程序,但我不能。

请帮我在我的文件系统上发布它,之后将它们上传到我的主机并进行网站设计。

I want to publish my asp application but I can't.
Please help me to publish it on my File System and after that upload them to my host and have a site design.

推荐答案

ASP.NET站点无法在文件系统上发布,它们需要一个支持ASP.NET的HTTP服务器,从SLR(.NET或其他实现)开始。对于那些甚至对Web做什么都有基本想法的人来说,这应该是显而易见的。使用Visual Studio进行开发时,它可以运行随附的开发服务器。你不需要做任何特别的事情来使用它,只需从你的任何页面开始运行项目。



对于生产服务,通常使用IIS,但它也可能是带有mod_mono的Apache(基于CLR的多平台Mono实现),但也存在一些其他解决方案:

http://www.aprelium.com/abyssws/features.html [ ^ ],

http://ultidev.com / products / cassini [ ^ ],

https://github.com/aspnet/Home/wiki/Servers [ ^ ],

http://blogs.msdn.com/b/dotnet/archive/2014/05/12/the-next-generation-of-net -asp-net-vnext.aspx #_。NET_vNext [ ^ ]。



另请参阅:

https://en.wikipedia.org/wiki/ASP.NET [ ^ ],

https://msdn.microsoft.com/en-us/library/58wxa9w5.aspx [ ^ ]。



-SA
ASP.NET sites cannot be published "on file system", they require an HTTP server with ASP.NET support, starting with SLR (.NET or other implementation). This is should be obvious for everyone who has even the basic idea on what Web does. When you do development with Visual Studio, it can run a development server which comes with it. You don't need to do anything special to use it, just run the project starting from any of your pages.

For production service, usually, IIS is used, but it could also be Apache with mod_mono (based on multi-platform Mono implementation of CLR), but some other solutions also exist:
http://www.aprelium.com/abyssws/features.html[^],
http://ultidev.com/products/cassini[^],
https://github.com/aspnet/Home/wiki/Servers[^],
http://blogs.msdn.com/b/dotnet/archive/2014/05/12/the-next-generation-of-net-asp-net-vnext.aspx#_.NET_vNext[^].

See also:
https://en.wikipedia.org/wiki/ASP.NET[^],
https://msdn.microsoft.com/en-us/library/58wxa9w5.aspx[^].

—SA


谢谢。但是如何让HTTP服务器发布它。

请指导我使用HTTP Server。
Thanks. But How can I have a HTTP Server To Publishing it.
Please guide me to have HTTP Server.


选择VisualStudio中的Build菜单,在菜单中选择发布MyProjectName选项,或在解决方案资源管理器中右键单击项目,然后选择从中发布。



选择新配置文件,给它起个名字。选择文件系统作为发布方法,在目标位置输入文件夹,然后单击下一步。选择要构建的配置(可能是Release),单击Next然后发布。



确切的步骤可能会因您的VS版本而异,因此谷歌如何使用发布网站如果你的版本与上面的版本不匹配,那么这就是你真正应该做的第一个。



发布后,你选择的文件夹因为目标位置将包含运行您的站点所需的所有文件,所以将这些文件上传到您的webhost上的相关文件夹(我们无法告诉您该文件夹是什么,或者如何上传它们,作为您的Web主机)。您还需要更改任何配置条目,如连接字符串等。
Select the "Build" menu in VisualStudio and there will be a "Publish MyProjectName" option in the menu, or right-click the project in the Solution Explorer and select Publish from that.

Select a "New profile" and give it a name. Select "File System" as the publish method, enter a folder in the target location, and click Next. Select the configuration to build (probably Release), click Next then Publish.

Exact steps may vary depending on your version of VS, so google how to publish a website using your version if it doesn't match the above, however that is what you really should have done in the first place.

After you have published, the folder you selected as the target location will contain all the files needed to run your site, so upload these files to the relevant folder on your webhost (we can't tell you what that folder is, or how to upload them, as your web host). You will also need to change any config entries like connection strings etc.


这篇关于如何在文件系统上发布我的ASP.Net项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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