iis-6

How can I programmatically stop or start a website in IIS (6.0 and 7.0) using MsBuild?

♀尐吖头ヾ 提交于 2019-11-26 15:32:16
问题 I have Windows Server 2003 (IIS 6.0) and Windows Server 2008 (IIS 7.0) servers, and I use MSBuild for deploying web applications. I need to do a safe deploy, and do this: Stop a website in IIS 6 (or an Application in IIS 7), not stop AppPool. Check if the website is stopped; not running. If the website is stopped, do another task for deploy. Start the website IIS 6 (or Application in IIS 7), How can I achieve this? Update: Key for me: IIS6WebSite and IIS6AppPool (and for IIS7), do wait for

ASP.NET MVC on IIS6

房东的猫 提交于 2019-11-26 15:26:14
问题 Where can I find some good pointers on best practices for running ASP.NET MVC on IIS6? I haven't seen any realistic options for web-hosts who provide IIS7-hosting yet. Mostly because I don't live in the U.S. So I was wondering on how you best build applications in ASP.NET MVC and make it easily available to deploy on both IIS6 and IIS7. Keep in mind that this is for standard web-hosts, so there is no access to ISAPI-filters or special settings inside IIS6. Are there anything else one should

What does an IISReset do?

邮差的信 提交于 2019-11-26 15:12:16
问题 On IIS 6, what does an IIS Reset do? Please compare to recycling an app pool and stopping and starting an ASP.NET web site. If you replace a DLL or edit/replace the web.config on an ASP.NET web site is that the same as stopping and starting that web site? 回答1: IISReset stops and restarts the entire web server (including non-ASP.NET apps) Recycling an app pool will only affect applications running in that app pool. Editing the web.config in a web application only affects that web application

IIS Request Timeout on long ASP.NET operation

杀马特。学长 韩版系。学妹 提交于 2019-11-26 15:07:25
I am experiencing a request timeout from IIS when I run a long operation. Behind the scene my ASP.NET application is processing data, but the number of records being processed is large, and thus the operation is taking a long time. However, I think IIS times out the session. Is this a problem with IIS or ASP.NET session? Thanks in advance Kev If you want to extend the amount of time permitted for an ASP.NET script to execute then increase the Server.ScriptTimeout value. The default is 90 seconds for .NET 1.x and 110 seconds for .NET 2.0 and later. For example: // Increase script timeout for

Login failed for user 'DOMAIN\\MACHINENAME$'

空扰寡人 提交于 2019-11-26 15:01:10
I know this is almost a duplicate of : The error "Login failed for user 'NT AUTHORITY\IUSR'" in ASP.NET and SQL Server 2008 and Login failed for user 'username' - System.Data.SqlClient.SqlException with LINQ in external project / class library but some things don't add up compared to other appliations on my server and I am not sure why. Boxes being used: Web Box SQL Box SQL Test Box My Application: I have an ASP.NET Web Application, which references a class library that uses LINQ-to-SQL. Connection string set up properly in the class library. As per Login failed for user 'username' - System

Classic ASP: Multiple ASPSESSIONID in cookies

☆樱花仙子☆ 提交于 2019-11-26 14:45:21
问题 I have a problem with a classic asp page and I just cannot solve it since 3 days. The page is working with Sessions - sometimes it happens that the ASPSESSIONID cookie is set twice in the Request.ServerVariables("HTTP_COOKIE"). This causes the ASP-Page to jump between the two Sessions when the page is refreshed. I have written an Test page which outputs the current SessionId, the Server Software and the HTTP_COOKIE value. Sample Output: Session ID: 308542840 Session Timeout: 20 minutes Server

User ASP.NET runs under

跟風遠走 提交于 2019-11-26 14:12:47
问题 I'm a bit confused about how ASP.NET, what user it runs under? On iis 7.5 and on 6.0 A few of the user accounts that I'm not clear on are Network Service IUSR AppPool Any clarification on the different users would be appreciated and security considerations/etc. 回答1: In summary: IIS 5.1 (Windows XP) - it's a local ASPNET account IIS 6 - by default, application pools run under the Network Service account which is a member of IIS_WPG group IIS 7.0 - still Network Service IIS 7 SP2 / 7.5 - runs

IIS: web applications warmup

北战南征 提交于 2019-11-26 14:03:14
问题 After IIS reset, first hit taking a long time because AppPool is starting and other .NET components, DB connections are initializing. What would be the best way to warm up IIS applications and preload required components (e.g. GAC Assemblies, WCF, WWF libraries) I'm working on IIS 6, Windows 2003 server x64 (I know there is warmup module for IIS 7, but I'm on IIS 6.how that warmup module in IIS 7 works internally?) 回答1: Some tips on warm up scripts: http://www.andrewconnell.com/blog/archive

Increase file upload size limit in iis6

懵懂的女人 提交于 2019-11-26 13:45:36
问题 Is there any other place besides the metabase.xml file where the file upload size can be modified? I am currently running a staging server with IIS6 and it is setup to allow uploading of files up to 20mb. This works perfectly fine. I have a new production server where I am trying to setup this same available size limit. So I edited the metabase.xml file and set it to 20971520. Then I restarted IIS and that didn't work. So I then restarted the entire server, that also didn't work. I can upload

What causes an HTTP 405 “invalid method (HTTP verb)” error when POSTing a form to PHP on IIS?

為{幸葍}努か 提交于 2019-11-26 09:58:14
问题 I have one form in a PHP (5.2.9-1) application that causes IIS (Microsoft-IIS/6.0) to throw the following error when POSTed: The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access. It\'s an HTTP 405 status code. All other forms in the application work, so I believe that the IIS \'verbs\' setting for PHP pages is correct. This is a customer\'s server, which I have no access to for verifying settings or testing code. All I can do is