iis-7.5

Precompilation related error from an ASP.NET website that is NOT precomplied

百般思念 提交于 2019-12-07 08:10:48
问题 I have an ASP.NET website that is XCOPIED to production. I do not publish this website using Visual Studio. I just copy all the aspx and code behind pages to production. There is no publish config file. My production server is running IIS 7.5, integrated pipeline. If I add an App_Code directory to the root directory of the website I get the following error: The directory /App_Code is not allowed because the application is precompile Another issue I noticed is that my global.asax file's

IIS understand static files in MVC as dynamic content

只谈情不闲聊 提交于 2019-12-07 04:49:54
问题 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,*/*

windows server 2008 IIS 7.5 maximum file accept limit

微笑、不失礼 提交于 2019-12-07 04:11:13
问题 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 回答1: This setting configures the upload file size limit: <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="10485760"/> </requestFiltering> </security> </system.webServer> Default size is ~30Mb. 回答2: Set your web.config with the following where xxx is the max

IIS redirect mangling URL parameter value occasionally

大兔子大兔子 提交于 2019-12-07 04:02:26
We have a multi-tenant application with a Web server in the following environment: Windows 2008 R2 Datacenter IIS 7.5 ASP.NET 4.5 All traffic forced into HTTPS Forms authentication We have some convenience redirects in place in the site's Web.config file. For one of the redirects, the URL parameter value is being mangled occassionally (< 1%) on the request immediately following the 301 redirect . The rule is intended to redirect URLs such as https://www.myapp.com/some_client_id/notifications to https://www.myapp.com/lms/profile/notifications.aspx?cid=some_client_id Here is its definition:

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

爱⌒轻易说出口 提交于 2019-12-07 03:58:44
问题 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

3 requests for every resource (2 x 401.2 and 1 x 200) in a windows authenticated asp.net mvc app

自古美人都是妖i 提交于 2019-12-07 03:56:27
I was trying to track down why my site was so painfully slow in IE9 when I pulled out Fiddler and realised that every request is being sent 3 times (twice I get 401.2 and then a success). I verified this happens on all browsers, its just that Chrome's speed was masking this (or it could be that this has nothing to do with my sites performance issues in IE). I've set up break points in my begin/end request handlers and the request comes in for say a css file. It is not authenticated and the response goes out with a 401.2, I doubled checked that I'm not setting the response status anywhere

Glimpse.axd 403ing On IIS

大城市里の小女人 提交于 2019-12-07 03:06:19
问题 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? 回答1: 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> <!--

PHP on IIS7 - Receiving “Object Moved” html page instead of actually redirecting

若如初见. 提交于 2019-12-07 02:56:49
问题 I'm learning PHP on my computer with IIS7.5 as the web server and am having a problem completing a 301 redirect correctly. The tutorials and forums all say to use the following: Header('Location: ' . $url, true, 301); OR Header('Location: ' . $url); In both cases, instead of actually redirecting, the browser (Chrome and Firefox) display this: Object Moved This document may be found here Using the FireFox web developer toolbar, I retrieved the page headers, which were: Content-Type: text/html;

How can I check whether with ASP.NET 4 is registered to run in IIS 7.5?

China☆狼群 提交于 2019-12-07 01:50:30
问题 How can I check whether with ASP.NET 4 is registered to run in IIS 7.5? There must be some way to determine this for sure, other than running aspnet_regiis -i from within the framework's folder. I don't need to check this programmatically, just via IIS Manager or the commend line. I have an .NET page that is returing a 500 error, which I have determined could be due to ASP.NET 4 not being registered with IIS. However, I want to be certain before I make changes to the server configuration. 回答1

MsDeploy fails for webdeploy

*爱你&永不变心* 提交于 2019-12-07 01:40:32
问题 I am trying web-deploy. Because I wanted to be able to reproduce this, i used a test system Windows 2008 RC, IIs 7.5 + Deployment package I configured deployment using http://learn.iis.net/page.aspx/516/configure-the-web-deployment-handler/ Enabled tracing http://technet.microsoft.com/en-us/library/ff729439(v=ws.10).aspx I created a new WCF Service Application, (changed nothing) compiled it and tried to deploy I get the following response(after a few min) ------ Build started: Project: