iis-7

Allow browser to hit a .cshtml file and display the content

不羁岁月 提交于 2019-12-12 15:27:56
问题 I know this is a very odd request but to cut a long story short a developer have the wrong URL that has now been printed on material. The url was a .cshtml file which obviously is not allowed to be hit through IIS. I need to allow this particular cshtml or all of them to be rendered as plain html in the browser. Help will be appreciated. 回答1: This might not NOT the best solution, but it is the one I know of the top of my head. Go to your Global.asax file. From there go inside of or create the

PHP Fatal error: Class 'COM' not found

浪子不回头ぞ 提交于 2019-12-12 14:58:51
问题 I'm getting this error after upgrading PHP to v. 5.5.1: Fatal error: Class 'COM' not found in C:\inetpub\wwwroot\ndsystems\database_engine\mssql_engine.php on line 184 Line 184 in mssql_engine.php file: $this->COMConnection = new COM('ADODB.Connection'); //line 184 try { $this->COMConnection->Open($connectionString); $this->RetrieveServerVersion(); } catch (com_exception $e) { $this->lastError = $e->getMessage(); $result = false; } return $result; Environment is Windows 2008 R2 SP1, IIS 7

Recyling apppool using msbuild script

﹥>﹥吖頭↗ 提交于 2019-12-12 13:43:38
问题 I'm using MSBuild to build and deploy the website, Before deploying i need to recycle the Application Pool, How can i do this from msbuild script? (I do not want to restart the IIS just recycle the application pool) 回答1: Why don't you use the extension pack: http://www.msbuildextensionpack.com/help/4.0.4.0/index.html It has a task: <MSBuild.ExtensionPack.Web.Iis7AppPool TaskAction="Recycle" Name="MyAppP"/> That should do what you ask. 回答2: The command is c:\Windows\system32\inetsrv\appcmd.exe

Parser Error Message: The file '/Site.master' does not exist

我的未来我决定 提交于 2019-12-12 13:42:21
问题 Evening folks!! Stuck with this rather dull problem. I have deployed my website on my localhost (i.e. C:\inetpub\wwwroot\MyWebSite) but when i access it in the browser, I get this error message: Parser Error Message: The file '/Site.master' does not exist. It's weird coz the Site.Master is right there in the root folder. I have got 2 more folders in my website that have got a web.config each and i have converted these folders to applications from within the IIS. This error occurs when i

Extensionless URLs with Mime Mapping

与世无争的帅哥 提交于 2019-12-12 13:24:36
问题 I'm trying to resurrect an old site on a new host. It originally used MovebleType, so all of the template files are extensionless HTML files. I'm trying to get IIS7 to serve all requests to files without an extension as text/html but not having much luck. A post on the IIS forum suggested a rewrite rule, which to me doesn't make sense and doesn't seem to work. I've also tried several mimeMaps, all of which resulted in HTTP errors. This is my web.config so far: <?xml version="1.0" encoding=

Rewriting URLs in IIS7

て烟熏妆下的殇ゞ 提交于 2019-12-12 13:24:33
问题 I have been following http://learn.iis.net/page.aspx/806/seo-rule-templates/, which is a nearly perfect guide to creating SEO friendly URLs in IIS7. I have one problem though: If I create a rule to rewrite www.domain.com/contact/ I get in web.config: <rule name="RewriteUserFriendlyURL1" stopProcessing="true"> <match url="^([^/]+)/?$" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> <

timeout and auto logout in asp.net 2.0 with IIS 7 even after doing all the possible settings

折月煮酒 提交于 2019-12-12 12:15:00
问题 I have an ASP.NET 2.0 web site hosted on Windows Server 2008 with IIS 7. I am using InProc session mode (specified in web.config). My client wants the timeout to be of 3 hours, meaning if the web site is idle, session should remain alive for 3 hours. Currently, what is happening is that if the web site is idle for 20-30 min. and if the user to tries to access any link, it redirects to login page. I searched on internet and did all the possible settings (as follows): In web config, session

HTTP Error 500 Internal server error on high load ASP.NET application

大城市里の小女人 提交于 2019-12-12 11:50:21
问题 I get HTTP Error 500 Internal server error on a one simple page asp.net application. There are enough resources on the server. This page is frequently requested by a large number of clients. Is there any IIS related settings I have missed ? 回答1: The first stop here would be to enable Failed Request Tracing: Troubleshooting Failed Requests Using Tracing in IIS 7 Troubleshoot with Failed Request Tracing If doesn't produce anything that narrows things down then have a trawl through the System

HttpRuntime CacheInternal NULL reference exception while reading user sessions (Reflection)

一世执手 提交于 2019-12-12 11:18:52
问题 After some updates on our windows servers(2008R2 ,2012) Asp.net application throwing error: var obj_1 = typeof(HttpRuntime).GetProperty("CacheInternal", BindingFlags.NonPublic | BindingFlags.Static); CacheInternal is coming null, dont know why ? following solution is not working :( Solution 回答1: I have find the solution. Now HTTPRuntime class doesnt have CacheInternal Property.So to achive the above task I have created a global list adding sessions in that list in Session_Start and removing

Run SVN repositories under IIS

狂风中的少年 提交于 2019-12-12 11:06:42
问题 How to setup IIS 7.0 to serve SVN repositories? First of all I need to make possible remote users to checkout and web-based viewing isn't really necessary. I tried to setup WebSVN but got no success: can't set parent folder for a number of repositories, can't switch off anonymous access, can't link non-anonymous access and access list. Are there others products for SVN under IIS? Or it's better to learn how to setup WebSVN properly? 回答1: There are no server modules for IIS, you can't serve an