简体   繁体   English

在IIS 8上部署asp.net

[英]Deploy asp.net on IIS 8

I'm trying to deploy a asp.net site on iis 8 but i'm getting an error. 我正在尝试在iis 8上部署一个asp.net网站,但出现错误。

Site is working in visual studio, deployment is done without error using a custom profile with file system as publish method. 站点正在Visual Studio中工作,使用带有文件系统的自定义配置文件作为发布方法,可以毫无错误地完成部署。 (Here is actually my first question, should I use file system?) (这实际上是我的第一个问题,我应该使用文件系统吗?)

Build->publish site->(Custom profile, file system, release) 构建->发布站点->(自定义配置文件,文件系统,发行版)

Well, the site is added to selected folder which I've set up in IIS. 好了,该站点已添加到我在IIS中设置的所选文件夹中。 I host several php pages from this folder whithout problem. 我从这个文件夹中托管了几个php页面,没有任何问题。 But when I try to url forward to the new site I get this error: Given URL returns 500 但是,当我尝试使用url转到新站点时,出现此错误:给定URL返回500

I'm using IIS8, .tk adress through a dlinkddns.com adress 我正在通过dlinkddns.com地址使用IIS8,.tk地址

Any ideas? 有任何想法吗?

Edit: added picture 编辑:添加图片 在此处输入图片说明

What should I choose here if i'm hosting the page on the same computer? 如果我将页面托管在同一台计算机上,应该在这里选择什么? (I tried File system for now) (我现在尝试了文件系统)

The error I get when I'm opening default.aspx 打开default.aspx时出现的错误 在此处输入图片说明

  1. To deploy a website into IIS8 from Visual Studio, use 'File System' instead of 'Web Deploy', and put in the directory of where you want to publish your site. 要将网站从Visual Studio部署到IIS8中,请使用“文件系统”而不是“ Web部署”,并将其放置在您要发布站点的目录中。

  2. Right-click your site name on your IIS 8 manager, select 'Add Application', and select the folder where you published your website in your physical path. 右键单击IIS 8管理器上的站点名称,选择“添加应用程序”,然后选择在物理路径中发布网站的文件夹。

  3. Click on the application under the website, then click browse, and you should view the website on your browser. 单击网站下的应用程序,然后单击浏览,然后应在浏览器中查看网站。

You can look at my question on how to create new website under the title, 'New website not showing default page in IIS 8.5' . 您可以在“新网站在IIS 8.5中不显示默认页面”标题下查看有关如何创建新网站的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM