iis-7.5

How to specify the AppPool Identity in a WiX Permission Element?

安稳与你 提交于 2019-12-19 09:49:12
问题 I'm updating one of our installers for .NET 4.0 and IIS 7.5, and one of the tasks is to switch the AppPool over to use its own identity. I have found this fairly trivial in WiX using the IIS Extension, but I'm struggling with two extra sets of permissions that we define, specifically to grant write permissions to the AppPool Identity: <Directory Id="LOGS_LOCATION" Name="logs"> <!-- SourceDir\logs --> <Component Id="LogsFolder" Guid="{3A7C38C7-6604-4063-A425-D62427B21AEE}" KeyPath="yes" DiskId

Adding serverRuntime tag in webconfig cause 500.19 error

拜拜、爱过 提交于 2019-12-19 09:47:08
问题 Hi Guys after spending nearly one day i thought it is time to ask the community. I have just downloaded asp.net project from TFS on my another laptop and couldn't get it to run. I have narrowed down the issue and it is something to do with my webconfig setting and setting is <serverRuntime uploadReadAheadSize="128000000" /> If I comment this setting error goes away but I am just wondering why I have to comment this out when it is working on my other laptop for same project. Error i get upon

MVC3 Application Inside Webforms Application Routing is throwing a HttpContext.SetSessionStateBehavior Error in IIS7.5

旧城冷巷雨未停 提交于 2019-12-19 07:54:30
问题 I'm running a mixed MVC Application inside a sub folder of a web forms application. Everything worked great in VS 2010 debug (Cassini) but when I deployed to IIS7.5 I got the following error: 'HttpContext.SetSessionStateBehavior' can only be invoked before 'HttpApplication.AcquireRequestState' event is raised. It errors on the last line ( httpHandler.ProcessRequest(HttpContext.Current); ) in the default.aspx file of the MVC application sub folder. public void Page_Load(object sender, System

My ASP.NET MVC2 application with Forms Authentication is blocking access even to Images, Styles and Scripts

心已入冬 提交于 2019-12-19 03:22:55
问题 I'm developing a MVC2 application and using Forms Authentication on it. The scripts, images and styles are all blocked to unlogged users and, consequently, the login page looks awful. It works well local, the problem is when I publish to the server. Does anyone has any idea WHY???? PS: The server IIS is version 7.5 My Web.config : <configuration> <system.web> <globalization culture="pt-BR" uiCulture="pt-BR" /> <httpRuntime requestValidationMode="2.0"/> <customErrors mode="Off" /> <compilation

Use web.config to allow server-side includes in HTML files (IIS)

白昼怎懂夜的黑 提交于 2019-12-19 02:54:32
问题 In IIS 7.5, is it possible to use web.config alone to enable SSI processing for files that have the .html extension? Specifically, I don't want to use the default SSI extension, .shtml . Reason: I don't want to change the extensions. Doing so would lead to broken links in search engine results. Also, my motivation for doing this in web.config is because this is a shared server . 回答1: Presuming that your hoster has enabled SSI's and delegated Read/Write permissions for handler mappings then

Cannot get user IP address (proxy/firewall/load balancer)

江枫思渺然 提交于 2019-12-19 02:49:08
问题 I used code below to get client ip with asp.net before but after I moved to VDS this function begin returning only my subnet mask which is 178.18.198.1 or 178.18.198.2. Can anyone help me with this problem? Private Function GetIPAddress() As String Dim sIPAddress As String = Nothing sIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR") If String.IsNullOrEmpty(sIPAddress) Then sIPAddress = Request.ServerVariables("REMOTE_ADDR") End If Return sIPAddress End Function EDIT Found similar

IIS 7.5 Static Content Compression (not consistent )

☆樱花仙子☆ 提交于 2019-12-19 00:09:32
问题 I have the following web.config: <urlCompression doStaticCompression="true" /> <httpCompression> <dynamicTypes> <add mimeType="text/*" enabled="true" /> <add mimeType="message/*" enabled="true" /> <add mimeType="application/javascript" enabled="true" /> <add mimeType="*/*" enabled="false" /> </dynamicTypes> <staticTypes> <add mimeType="text/*" enabled="true" /> <add mimeType="message/*" enabled="true" /> <add mimeType="application/javascript" enabled="true" /> <add mimeType="*/*" enabled=

IIS7.5 Gives 500 Internal Server Error when trying to use DELETE verb

余生颓废 提交于 2019-12-18 20:50:02
问题 I am trying to issue a DELETE to an IIS7.5 resource: DELETE http://198.252.206.16:48251/Test/foo.ashx HTTP/1.1 Accept: */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E) Host: 198.252.206.16:48251 Content-Length: 0 Connection: Keep-Alive Pragma: no-cache And the server responds with: HTTP/1.1 500

Web service Parser Error Message: Could not create type 'xxx'

岁酱吖の 提交于 2019-12-18 19:02:27
问题 I am getting a parser error when i try to browse my web service. Already found so many answers, but none helped me. If anybody can guide me to a helpful link that i might have overlooked, it will be of great help. Here is the scenario : I have web service built in VS-2010 (framework 4.0) hosted on IIS 7.5 which uses "ASP.NET v4.0 Classic" app pool. This used to work fine until i reinstalled it. It started showing the Error below Parser Error Description: An error occurred during the parsing

Event message: An unhandled access exception has occurred (IIS 7.5, cannot load website)

♀尐吖头ヾ 提交于 2019-12-18 15:47:56
问题 I deployed the Nuget source code to my company's web server, but when navigate to the URL, I get the following error (pulled from Event Viewer on the server): Event code: 4011 Event message: An unhandled access exception has occurred. Event time: 11/6/2013 9:02:54 AM Event time (UTC): 11/6/2013 3:02:54 PM Event ID: 2f5d6f7e594e47259b6dc050f82fc57d Event sequence: 2 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/W3SVC/2/ROOT/Nuget-3-130282237713215393