iis

Host asp.net core app in IIS to access from other PC's inside the network

烈酒焚心 提交于 2020-12-01 12:22:34
问题 How can i host my Asp.Net Core (1, 2 or 2.1) web app in Windows IIS to be able to access it from other PC's in our local network (or my Virtual OS)? My PC is a Desktop Windows 10 Pro (not Win Server). I have followed the Host ASP.NET Core on Windows with IIS article, but i can't get it to work. What i did based on that article is as following: Ensure Prequisites: Visual Studio 2017, Install Asp.Net Core 2.1 SDK, Add Internet Information Services (IIS) from Turn Windows features on or off ,

Win7 IIS7 HTTP 错误 404.2

限于喜欢 提交于 2020-12-01 02:20:41
Win7 IIS7 HTTP 错误 404.2 - Not Found解决方法 参考文章: (1)Win7 IIS7 HTTP 错误 404.2 - Not Found解决方法 (2)https://www.cnblogs.com/hakuci/archive/2012/04/13/2445834.html 备忘一下。 来源: oschina 链接: https://my.oschina.net/stackoom/blog/4766021

SSL Certificate missing from dropdown in SQL Server Configuration Manager

*爱你&永不变心* 提交于 2020-11-30 04:58:23
问题 I am trying to configure SQL Server 2014 so that I can connect to it remotely using SSL. A valid, wildcard cert is installed on the server, and the cert's domain name (example.com) matches the server's FQDN (test.windows-server-test.example.com). The problem is that in SQL Server Configuration Manager, the certificate is not listed, so I cannot select it. That is, I am stuck on step 2.e.2 from this MS tutorial. 回答1: After communication in comments I can suppose that your main problem is the

Can't start site in IIS (use by another process)

浪子不回头ぞ 提交于 2020-11-30 02:29:02
问题 When I try to start a site in IIS it says: the process can't access the file because it used by another process I searched in Google and found that another site may have been using Port 80 but in MyIIS I see that only this site is using Port 80. What else could be using Port 80 or is there another issue involved? 回答1: Check using netstat -aon or netstat -aon | findstr 0.0:80 in a command prompt to see which Process Id is LISTENING to port :80 and then watch for that Process Id (PID) in Task

Can't start site in IIS (use by another process)

情到浓时终转凉″ 提交于 2020-11-30 02:25:11
问题 When I try to start a site in IIS it says: the process can't access the file because it used by another process I searched in Google and found that another site may have been using Port 80 but in MyIIS I see that only this site is using Port 80. What else could be using Port 80 or is there another issue involved? 回答1: Check using netstat -aon or netstat -aon | findstr 0.0:80 in a command prompt to see which Process Id is LISTENING to port :80 and then watch for that Process Id (PID) in Task

Running multiple apps under same host and port

会有一股神秘感。 提交于 2020-11-29 02:53:18
问题 I am developing multiple asp.net core applications within one solution and when I run the solution in Visual Studio using IIS Express, would like to have them under the same url and port. For example: App1: https://localhost:44369 App2: https://localhost:44369/App2 App3: https://localhost:44369/App3 I've tried to change the lauchSettings.json file to use the same host and url but then an error comes up that the server can't run. Is there a way to configure it? { "iisSettings": {

(10)ASP.NET Core 中的环境(Environments:dev, stage, prod)

|▌冷眼眸甩不掉的悲伤 提交于 2020-11-28 09:51:09
1.环境变量配置 ASP.NET Core在应用程序启动时读取环境变量(Properties\launchSettings.json)ASPNETCORE_ENVIRONMENT,并将该值存储在IHostingEnvironment.EnvironmentName中。ASPNETCORE_ENVIRONMENT可设置为任意值,但框架只支持三个值:Development(开发)、Staging (分阶段)和 Production(生产)。如果未设置ASPNETCORE_ENVIRONMENT,则默认为 Production。 public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } if (env.IsProduction() || env.IsStaging() || env.IsEnvironment( " Staging_2 " )) { app.UseExceptionHandler( " /Error " ); } } Properties/launchSettings.json里面的配置如下: ●当ASPNETCORE

Java Web——Web概述

…衆ロ難τιáo~ 提交于 2020-11-26 08:41:47
已经很久没有更新博客了,过年忙着吃喝玩乐,就怠惰了一小下下?幸好这学期新开的课程都比较有趣——Java Web和Android。至少对于我自己来说,既充满挑战,又富有趣味。 ——【1.Web概述】—— 什么是Web? Web在计算机网页开发设计中就是网页的意思。网页是网站中的一个页面,我们平常浏览网站时,看到的都是一个一个的页面,通常它们都是 HTML 格式的。网页可以展示文字、图片、媒体等内容,而这些都是需要通过浏览器来阅读。 Web应用程序的工作原理? Web应用程序大体上可以分为两种, 静态网站 和 动态网站 。 早期的Web应用主要是静态页面的浏览,即静态网站。这些网站使用 HTML 描写,通常来说随着html代码的生成,页面的内容和显示效果就基本上不会发生变化了——除非你修改页面代码。这些代码放在Web服务器上,用户使用浏览器通过 HTTP协议 请求服务器上的Web页面,服务器上的Web服务器接受到用户的请求处理后,再发送给客户端浏览器,显示给用户。整个过程就像下图: 而动态网页则不然,页面代码虽然没有变,但是显示的内容却是可以随着时间、环境或者数据库操作的结果而发生改变的。这些网站通常使用 HTML 和 动态脚本语言(入JSP、ASP或者是PHP等) 编写,并将编写后的程序部署到Web服务器上,由Web服务器堆动态脚本代码进行处理,并转化成浏览器可以解析的 HTML

一键发布部署vs插件[AntDeploy]开源了

一个人想着一个人 提交于 2020-11-25 05:57:59
deploy to remote server by one button click 功能 支持docker一键部署(支持netcore) 支持iis一键部署(支持netcore和framework)(支持增量发布)(支持一键回滚)(支持点火) 支持windows服务一键部署(支持netcore和framework)(支持增量发布)(支持一键回滚) 使用插件前 我要发布一个netcore的项目到阿里云的windows服务器的话我一般需要如下的步骤: 1. vs中发布网站到c:/temp/website 目录下 2. 远程桌面连接上远程服务器WIN2012或者以上版本 3. 在远程服务器上打开iis 4. IIS里点应用程序池,停掉对应网站的程序池 5. IIS里点网站,再停掉对应网站 6. 服务器上打开网站目录,把本地c:/temp/website中的除appsetting.json外的所有文件都上传到服务器上覆盖 7. IIS上再启动网站和对应的应用程序池 8. 本地浏览器上输入网址测试网址是否通了 在使用插件后 我只需要点一个按钮。。。 1.iis deploy support (support increment deploy and rollback) | iis一键发布自动部署 支持增量和回滚 support deploy netcore project and