iis-7

Installing Web Deploy on IIS 7+ with Shared Configuration enabled

柔情痞子 提交于 2019-12-22 04:07:49
问题 We have a web farm environment running IIS 7.5 on Windows 2008R2. We use shared configuration and web storage replication. We tried to install Web Deploy (v3.5) on one of the servers but receive an error message saying that Web Deploy is not supported with Shared Configuration. Is it possible to run Web Deploy in a shared configuration environment? If so how? NOTE: We have figured this out so I am posting the answer here. There is little to no documentation that we could find on this topic so

Should I set ASP.NET application pool to auto-recycle?

核能气质少年 提交于 2019-12-22 02:04:15
问题 I have a number of ASP.NET (4.0) web applications that appear to leak (a small amount) of memory during each request. It is such a small amount, that for most use-cases, it will not grow to become a problem for weeks or even months at a time. I generally try to be good with closing any connections managed by the application, avoiding state-variables (or instance variables for my singleton), etc. My question is this - is this normal behavior for ASP.NET applications? I had turned off the

What's the best place for a database-backed, memory-resident global cache in an ASP.NET web server?

戏子无情 提交于 2019-12-22 01:34:59
问题 I have to cache an object hierarchy in-memory for performance reasons, which reflects a simple database table with columns (ObjectID, ParentObjectID, Timestamp) and view CurrentObjectHierarchy. I query the CurrentObjectHierarchy and use a hash table to cache the current parents of each object for quickly looking up the parent object ID, given any object ID. Querying the database table and constructing the cache is a 77ms operation on average, and ideally this refresh occurs only when a method

WebResource.axd giving 403 error in ASP.Net Post backs using IIS7

試著忘記壹切 提交于 2019-12-22 01:29:33
问题 I installed a ASP.Net website on a Windows 2008 server, which is by default using IIS7. The website seems to work fine, but the post backs on my forms do not work. After a few hours of debugging, I realized that when I manually try to hit the WebResource.axd file in my browser (e.g. I type http://www.domain.com/WebResource.axd in the address bar), I get a HTTP 403 error (Access Denied). I'm not quite sure where to look next and my Windows 2008 security knowledge is limited. How do I go about

MySQL ODBC 5.1 Set Names not allowed by driver

倖福魔咒の 提交于 2019-12-21 23:19:11
问题 I've a windows 2008 server and an asp website. I moved site to my server from a windows 2003 server and it was working good. It uses mysql as database and Set Names 'Latin5' was it's odbc driver initial statement. I tried to set same initial statement and I got "Set Names not allowed by driver" error message and db update/insert queries gives error. The site is in Turkish language. Thanks for the help.. 回答1: SET NAMES has been removed in MyODBC version 5.1. http://dev.mysql.com/doc/refman/5.1

Random 401 errors on an auto compiled asp.net site when updated pages are pushed

二次信任 提交于 2019-12-21 21:35:48
问题 We have an asp.net web site that is deployed on several IIS servers. The site is compile-on-demand as opposed to a pre-compiled web application. Normally deployments go fine but every now and again we get a 401 for one of the deployed pages on one of the servers. There is nothing special about which page or which server apart from the fact that it's generally the higher traffic pages that it happens to. The only way to rectify this is to deploy the same page again. The ACLs look fine on the

Give ASPNETDB.MDF SQL DB IIS_IUSRS Permissions

走远了吗. 提交于 2019-12-21 20:56:14
问题 Have been getting pretty bald over this situation! I am using MS VS 2010 C# ASP.NET, and MS SQL EXPRESS 2008, IIS 7 on Windows 7. I have the asp.net login control on a page. It works quite flawlessly in development environment. When I move the site to IIS, the login aspx page is displayed and all seems to be working fine. As soon as I put in my login credentials (which have been tested on the same database in MS VS Dev server) and click login, I am presented with an IIS error that states I do

How to add a server variable in IIS

我们两清 提交于 2019-12-21 20:47:53
问题 I am not very familiar with IIS7 and I need to create a server variable so that I can access it within my PHP code. I can easily accomplish this in Apache by using: SETENV variable_name variable_value in the .htaccess file. However accomplishing this in IIS seems to be a bit of a secret. I have looked online for info and the closest thing I can find states using the URL Rewrite Module using these steps: Clicking on View Server Variables Click the Add link and enter the variable name Go back

Error when deploying ASP.NET MVC NHibernate app to IIS7

最后都变了- 提交于 2019-12-21 20:43:44
问题 I have an Asp.Net MVC application that works in the vs.net development web server. When I publish to IIS7 I get the following error. I have spent many hours and still no solution! [NullReferenceException: Object reference not set to an instance of an object.] System.Web.PipelineStepManager.ResumeSteps(Exception error) +929 System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) +91 System.Web.HttpRuntime.ProcessRequestNotificationPrivate

ASP.NET Authentication with Roles in IIS7 Integrated Mode for Static Content

那年仲夏 提交于 2019-12-21 20:33:02
问题 I am experimenting with the integrated authentication mode for static content in IIS7. I followed the instructions in this article: http://aspnet.4guysfromrolla.com/articles/122408-1.aspx It is working fine if I allow/deny access by login status (like in the article). However I want to allow/deny access based on roles (using the ASP.NET built in Roles Provider). When I put an allow rule for the role "Admin" in the web.config and deny rule for all other users I am not able to access the static