iis-10

Publish ASP.Net Core 2.1preview2 website to local IIS MSB3030 *.PrecompiledViews.dll

Deadly 提交于 2020-01-01 12:12:11
问题 Update 1 With @Priyesh Kumar feedback I have used the following command from the websites root folder (the one with *.csproj for the website). This worked. I then copied the "win10-x64" content files into c:\www\sigex.com. dotnet publish -c Release -r win10-x64 --self-contained I am running into a few different issues now but will fix them and then post back the solution. Original Post Hi I am trying to publish my website locally into IIS (a site I have made in IIS manager). I am using the

IIS htaccess rule converter only importing 1 rule

我怕爱的太早我们不能终老 提交于 2019-12-31 06:13:30
问题 I have a example .htaccess file (found here) with bad robots to block. Here's a small sample code block from that file: #bad bots start #programmed by tab-studio.com public version 2017.12 #1 new rule every 500 entries RewriteCond %{HTTP_USER_AGENT} \ 12soso|\ 192\.comagent|\ 1noonbot|\ zuibot|\ zyborg|\ zyte\ [NC] RewriteRule .* - [F] #bad bots end Basically throwing a 403 on a URL match. I checked this post to see how I can convert these .htaccess rules to a web.config rewrite rule via IIS.

IIS application missing Content-Encoding - gzip in Response Header

淺唱寂寞╮ 提交于 2019-12-30 03:18:09
问题 In Firebug the request header has the following entry: Accept-Encoding: gzip, deflate But there's no: Content-Encoding: gzip In the Response Header. Regardless of anything I've tried, following a number of answers on SO and other sites, nothing seems to work! Neither static nor dynamic files are being compressed, or at least if they are there's no content encoding - gzip value coming back in the response header. Here's an example of my web.config settings: <urlCompression doDynamicCompression

How do I map IIS virtual directory to a subdomain?

狂风中的少年 提交于 2019-12-24 21:17:30
问题 Currently, I have a website mapping as following http://subdomain.domain.com/<virtualdir> to http://<IP Address>/<virtualdir> I want the virtual directory to be accessed with just the subdomain: http://subdomain.domain.com/ so that it points to http://<IP Address>/<virtualdir> Im using IIS 10, windows server 2016. What are my possible options? 回答1: If I understand your question correctly you want http://subdomain.domain.com/ to be accessible by the plain URL http://subdomain.domain.com. If

IIS 10.0 AppPool crashing (causing 503 error)

梦想与她 提交于 2019-12-24 12:17:03
问题 Situation After the latest Windows 10 updates (Nov 2017) were installed, the Application Pool required by a local web application keeps stopping/crashing displaying the message below in Event Viewer: The worker process for application pool 'SrvAppPoolv4.0' encountered an error 'Cannot read configuration file ' trying to read configuration data from file '\\?\<EMPTY>', line number '0'. The data field contains the error code. Setup Windows 10 Internet Information Services (Version 10.0.16299.15

Web API 2 CORS IIS Express Debug and No Access-Control-Allow-Origin header

試著忘記壹切 提交于 2019-12-24 08:19:19
问题 Empty web.api project, install Microsoft.aspnet.webapi.cors 5.2.3, add config.EnableCors(); to webapiconfig. make controller and action public class HomeController : ApiController { [EnableCors("*" , "*" , "*")] public async Task<string> Get() { return await Task.FromResult("omg"); } } Debug app and Load up fiddler and do a request to http://localhost:61939/api/Home there are no CORS headers present. web.config contains: <system.webServer> <handlers> <remove name="ExtensionlessUrlHandler

Google Cloud error. 404 The requested URL was not found on this server, but it exists

怎甘沉沦 提交于 2019-12-24 04:27:12
问题 I have created a new instance of vm in google cloud with windows 2016 and IIS 10 where certain requests to files are intercepted by google returning this response: That's an error. (google logo) The requested URL was not found on this server. That's all we know. The problem is that the resource does exist, and pressing F5 is accessed intermittently, and other times that error appears. Can anybody help me. The site is www.deruedas.com.ar 来源: https://stackoverflow.com/questions/51954316/google

MaxWebConfigFileSizeInKB and IIS 10

五迷三道 提交于 2019-12-24 03:39:04
问题 I am using a Web application with a web.config file larger than 250KB on IIS 10. In IIS 8.5 and below the registry key HKLM\SOFTWARE\Wow6432Node\Microsoft\InetStp\Configuration\MaxWebConfigFileSizeInKB (REG_DWORD) could be set to allow web.configs to be larger than 250KB. However it seems that this registry key is not read by IIS 10 any longer. Does anyone know if this key should still work on IIS 10 or how to use config files larger than 250KB in combination with IIS 10? 回答1: I forgot to set

IIS 10 on Windows Server 2016 not running my ASP.NET MVC website

亡梦爱人 提交于 2019-12-23 09:17:00
问题 I just bought a new Cloud based Virtual machine with Windows server 2016 installed. I also make sure IIS 10 has .NET Framework 4.6 and ASP.NET 4.6 installed. My ASP.NET MVC application targets .NET 4.5 and is successfully published to the 'Default Web Site' on this server using Web deploy. (You can see all the asp.net mvc published files here) 'Default Web Site' uses 'DefaultAppPool' which has a v4.0 .NET CLR Version. But when I open the web page in my browser, I received a '403 - Forbidden:

ASPNETCoreModule not installed with .NET Core SDK

落花浮王杯 提交于 2019-12-21 07:15:21
问题 I installed VS enter code here 2017 along with .NET Core SDK on Windows 10. But it did not install ASPNETCoreModule as shown in figure 2 below. I thought .NET Core SDK should have installed it implicitly - and one does not have to install it separately. NOTE : I'm trying to publish my asp.net core app to IIS and the publish process requires ASPNETCoreModule as explained in the above link and also in this official MSDN article. ASPNETCoreModule is missing : 回答1: ASP.NET Core Module is