Click here to Skip to main content
16,005,222 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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.
Posted

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.
 
Share this answer
 
Thanks. But How can I have a HTTP Server To Publishing it.
Please guide me to have HTTP Server.
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900