iis-8.5

Force locale with Asp.Net Core

一个人想着一个人 提交于 2019-12-03 17:22:46
I'm having some odd issues with a web application written using Asp.Net Core 1.1, using the full .Net Framework v4.6.2. I want to force the application to use a swedish locale (sv-SE). This is working just fine on the development machine (of course...) but not on the server where it's supposed to run (running Windows Server 2012r2). I've tried the following: 1) Putting "SiteLocale": "sv-SE" in the appsettings.json file. 2) Putting the following in the web.config <configuration> <system.web> <globalization culture="sv-SE" uiCulture="sv-SE" /> </system.web> ... </configuration 3) In program.cs

Deploying WCF on IIS 8.5

折月煮酒 提交于 2019-12-03 12:57:34
问题 I am attempting to deploy a IIS service application on IIS 8.5 but each time I attemp to connect to the service via http://localhost/test/WCFService.svc I get the following screen: When I go to turn Windows features On or OFF I have the following: My web.config looks as follows: <?xml version="1.0"?> <configuration> <appSettings> <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /> </appSettings> <system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime

Deploying WCF on IIS 8.5

久未见 提交于 2019-12-03 03:58:10
I am attempting to deploy a IIS service application on IIS 8.5 but each time I attemp to connect to the service via http://localhost/test/WCFService.svc I get the following screen: When I go to turn Windows features On or OFF I have the following: My web.config looks as follows: <?xml version="1.0"?> <configuration> <appSettings> <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /> </appSettings> <system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime targetFramework="4.5"/> </system.web> <system.serviceModel> <behaviors> <serviceBehaviors> <behavior

Access to path denied on IIS

喜你入骨 提交于 2019-12-02 16:06:01
问题 I'm trying to get my MVC app to write a simple text file to another server using System.IO.File.WriteAllText . (A separate process is looking in that folder for text files to grab.) It works fine when debugging on my local machine, but when deployed to IIS on a test server, I always get this error when trying to write the file: Access to the path '\\server\C$\folder\subfolder\file.txt' is denied. The answer to at least half a dozen similar questions here on SO was to give the application pool

IIS Sites Node Won't Expand

爷,独闯天下 提交于 2019-12-02 14:26:05
问题 I added in a new website on my local IIS yesterday, IIS 8.5 on Win 8.1. After I added it IIS hung indefinitely with the loading circle and I ended up having to kill it through Task Manager. That was late last night and I gave in and turned my computer off. This morning none of my sites work, all of them return Not Found. HTTP Error 404. The requested resource is not found. . When I open IIS and try to expand the Sites node underneath my local IIS I get the spinning circle that indicates

IIS Sites Node Won't Expand

左心房为你撑大大i 提交于 2019-12-02 11:22:47
I added in a new website on my local IIS yesterday, IIS 8.5 on Win 8.1. After I added it IIS hung indefinitely with the loading circle and I ended up having to kill it through Task Manager. That was late last night and I gave in and turned my computer off. This morning none of my sites work, all of them return Not Found. HTTP Error 404. The requested resource is not found. . When I open IIS and try to expand the Sites node underneath my local IIS I get the spinning circle that indicates loading but it never completes. Is there some way to fix this without losing all of the sites I have set up?

Access to path denied on IIS

*爱你&永不变心* 提交于 2019-12-02 08:25:24
I'm trying to get my MVC app to write a simple text file to another server using System.IO.File.WriteAllText . (A separate process is looking in that folder for text files to grab.) It works fine when debugging on my local machine, but when deployed to IIS on a test server, I always get this error when trying to write the file: Access to the path '\\server\C$\folder\subfolder\file.txt' is denied. The answer to at least half a dozen similar questions here on SO was to give the application pool identity account access to that folder. However, the app pool on IIS was already running under a

Setting MaxWebConfigFileSizeInKB in IIS8.5

情到浓时终转凉″ 提交于 2019-12-01 16:22:10
I have a web.config file that references a rewrites.config file that is used by the inbuilt IIS Rewrite module. However my rewrites.config file is larger than 250kb, so i have followed the advise on this post . However it appears that in IIS 8.5 (Windows Server 2012) these keys are ignored. I've search the interwebs and haven't been able to find much on IIS 8.5, anyone got any advice on how to increased the maximum.config size? Or alternatively split rewrites.config into smaller files? Aaron Newton You can just create the key . Right click on the parent node in REGEDIT - add a new Key called

Inno Setup CreateOleObject('IISNamespace') throws exception on Windows Server 2012

喜欢而已 提交于 2019-12-01 09:29:20
I am trying to create IISSetup in the Windows Server 2012 (IIS version 8.5) through the below install script but throws error "Invalid class string". code: var IIS, WebSite, WebServer, WebRoot, VDir: Variant; ErrorCode: Integer; begin { Create the main IIS COM Automation object } try IIS := CreateOleObject('IISNamespace'); except RaiseException( 'Please install Microsoft IIS first.'#13#13'(Error ''' + GetExceptionMessage + ''' occurred)'); end; end; complete_stranger I had the same issue on a Windows Server 2008 R2 Enterprise with Service Pack 1. procedure TForm1.Button1Click(Sender: TObject);

IIS8.5 is automatically changing Physical Path property

青春壹個敷衍的年華 提交于 2019-12-01 06:10:19
I have a couple of Applications added under my Default Website in IIS8.5 (simply http on port 80 IP=*) They point to different physical paths (which are not nested) and this works fine after adding such an application. But after a while the Physical Path of one of the applications automagically changes to the physical path of another Application. Why? I have flushed my DNSCache and removed and added the Application once again, but something is changing the physical path of my configuration. What could be doing this? Could something be overriding my Application settings? I have 2 sites in 1