iis-7.5

Host WCF service with net.tcp binding through IIS Manager 7.5

大兔子大兔子 提交于 2019-12-05 08:53:24
I am fairly new to hosting web applications and web services. Though I was successful in hosting a web application, I am running into road block after road block when trying to host a WCF service with net.tcp binding. My scenario is as follows, I have a hosted web application that needs to communicate with a hosted WCF service with net.tcp binding through IIS 7.5. As stated the web application is hosted fine and I can browse the web site. However, the web application makes services calls to the WCF service and I am getting the 'TCP error code 10061' message which I believe is due to my hosted

IIS understand static files in MVC as dynamic content

女生的网名这么多〃 提交于 2019-12-05 08:23:26
Playing with the httpCompression I relalized that IIS understand static files in MVC as dynamic content, so even if you tick the " Enable static content compression ", but don't tick " Enable dynamic content compression ", IIS will return the .css and .js files without compression: GET /MVCX/Content/Site.css HTTP/1.1 Host: localhost Connection: keep-alive User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2 Accept: text/css,*/*; Referer: http://localhost/mvcx/ Accept-Encoding: gzip,deflate,sdch Accept-Language: en-GB,en-US;q=0.8

Where does one place the Always Encrypted Certificate on an IIS 7.5 web server?

隐身守侯 提交于 2019-12-05 08:21:34
We have a SQL Server 2016 database that employs Always Encrypted. Our recently published ASP.net web site attempts to pull data from this database, and when it does we get this error: Error: Failed to decrypt column 'EnSSd'. Failed to decrypt a column encryption key using key store provider: 'MSSQL_CERTIFICATE_STORE'. The last 10 bytes of the encrypted column encryption key are: 'B8-48-B3-62-90-0B-1D-A6-7D-80'. Certificate with thumbprint '97B0D3A64CADBE86FE23559AEE2783317655FD0F' not found in certificate store 'My' in certificate location 'CurrentUser'. Verify the certificate path in the

IRegisteredObject not working as expected

杀马特。学长 韩版系。学妹 提交于 2019-12-05 07:00:34
问题 Background I'm working on an ASP.NET 4 web site (not web application). I'm trying to use IRegisteredObject to allow some long-running code to run in a non-request thread. For testing, I've set the IIS 7.5 application pool's recycle interval to low values so that it will try to recycle while the background thread is running. Code public class AspFriendlyBackgroundJob { private readonly object key = new object(); private readonly Task task; public AspFriendlyBackgroundJob(Action work) { lock

IIS 7.5 Application Initialization (Warm-up) and HTTPS

こ雲淡風輕ζ 提交于 2019-12-05 06:04:33
We've been using the Application Initialization module with IIS 7.5 for quite a while now, and it always worked perfectly. However, we've just started implementing SSL, and it seems to create a conflict with the warm-up. I've done quite a bit of research, but no solution worked so far. Basically the issue is that the initialization module doesn't follow redirections. We have to keep http enabled for a certain part of the site, but we do redirect all other HTTP visits to their HTTPS equivalent. I've solved this using a rewrite rule, that throws a 302 to the https page. The initialization

windows server 2008 IIS 7.5 maximum file accept limit

冷暖自知 提交于 2019-12-05 05:56:25
I have deployed my application on IIS 7.5 on windows server 2008 operating system and i want to know what is the maximum file upload limit and how to increase that limit? Im working on asp.net mvc2 This setting configures the upload file size limit: <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="10485760"/> </requestFiltering> </security> </system.webServer> Default size is ~30Mb. Set your web.config with the following where xxx is the max upload size in kilobytes: <configuration> <system.web> <httpRuntime maxRequestLength="xxx" /> </system.web> <

Glimpse.axd 403ing On IIS

若如初见. 提交于 2019-12-05 05:55:43
When trying to access /Glimpse.axd after I've published to IIS (7.5), I'm now receiving a 403 Forbidden response. Is there a setting in IIS that disables access to .axd files? Or is this something else entirely? CrazyCoderz This is usually due to the fact that your source IP Address is not allowed in the web.config section for Glimpse. I just ran in to this issue yesterday. Look for this in your web.config file, it can go anywhere in the web.config file. <glimpse enabled="true"> <ipAddresses> <!-- List of IP addresses allowed to get Glimpse data. Optional. localhost (IPv4 &IPv6) by default -->

maxRequestLength vs. maxAllowedContentLength on IIS 7.5

偶尔善良 提交于 2019-12-05 05:42:01
maxAllowedContentLength is supposed to work on IIS 7+ servers but apparently my server doesn't want to take this value into account when uploading (ASP.NET MVC 3 website). Now that I included maxRequestLength in web.config everything started to work and the value was applied. Yet everywhere everyone is saying that the maxAllowedContentLength is the right one. Does anyone has an explanation for this behaviour? Dave Black Take a look at the link below - it explains the difference between the two. You'll need to set both if you are going to be uploading large files. Note that you can also nest

Window authentication not working in MVC4

你离开我真会死。 提交于 2019-12-05 05:23:57
Scenario User A can access all pages in MVC4 website except one. But user B can access all pages (no restriction). What I had done so far? Deployed website on IIS 7.5. Enabled window authentication and disabled Anonymous authentication for hosted website on IIS. Testing website. Testing Results - (1) When User B is logged on same system (development system) where the website is deployed, he can access the website without prompt dialog. (2) But when same website is published on server (production system) with same settings, website still asks for credentials with pop up. ** Both of the

Application_Start vs serviceAutoStartProviders

不想你离开。 提交于 2019-12-05 04:46:44
I am using IIS7.5 to force my web app to load automatically ( startMode="AlwaysRunning" ), and I now want to preload my cache data. I am a bit confused though because two approaches seem identical: use Application_Start in global.asax use serviceAutoStartProviders in IIS config files They seem rather redundant and doing the same thing. If they are, I guess I would rather use Application_Start than create code dependencies in IIS configuration files. Any advice? The Application_Start in the global.asax is fired when the application receives it's first request (first user or autostart) so it is