[英]Visual studio web, what file do i upload to server?
I'm a little confused, since a day or 2 i've been programming with visual studio 2013 web express. 我有点困惑,因为我已经在一两天内使用Visual Studio 2013 Web Express进行编程。 i've made a C# web form (.aspx). 我已经制作了一个C#网络表单(.aspx)。 i used to program normal html/css in Adobe Dreamweaver. 我曾经在Adobe Dreamweaver中对普通的html / css进行编程。 But unlike a normal .HTML document i cannot find a file to just click and open in my browser. 但是与普通的.HTML文档不同,我找不到在浏览器中单击并打开的文件。 and so i do not know how to upload my project to my hosting server. 所以我不知道如何将我的项目上传到我的托管服务器。 when i debug it, it shows up in my browser and it tells me it is the file with .aspx extension but when i try to manually open this file it just tells me there's something wrong with my page (incorrect code etc.) Anyone can tell me how i do this? 当我调试它时,它会显示在我的浏览器中,并告诉我它是扩展名为.aspx的文件,但是当我尝试手动打开此文件时,它仅告诉我页面存在问题(代码不正确等),任何人都可以告诉我我该怎么做? could not find a solution in google so i thought i'd give stackoverflow a chance :) 找不到在谷歌的解决方案,所以我想我会给stackoverflow一个机会:)
Thanks! 谢谢! Gr. Gr。
.aspx页,.ascx控件,带有.dll文件的bin文件夹,web.config,App_Themes,App_LocalResources等。然后,您需要在IIS上建立一个新的网站。
First off, a website programmed with ASP.Net requires Internet Information Services (IIS) to run. 首先,使用ASP.Net编程的网站需要运行Internet Information Services(IIS)。
Visual Studio has its own built-in mini version of IIS for development, but to deploy to production you'll need a Windows Server with IIS. Visual Studio具有自己的内置IIS迷你版用于开发,但是要部署到生产环境中,您将需要带有IIS的Windows Server。 You should check that your hosting provider supports IIS before you do anything else. 在执行其他任何操作之前,应检查主机提供商是否支持IIS。
Assuming you have IIS running, and you've configured a website in IIS with an empty directory, ready to host your project there are a couple of different options you have for deployment: 假设您正在运行IIS,并且已在IIS中用空目录配置了一个网站,准备托管您的项目,则可以使用以下两个不同的选项进行部署:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.