iis-6

Classic ASP: Multiple ASPSESSIONID in cookies

橙三吉。 提交于 2019-11-27 09:26:55
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 Software: Microsoft-IIS/6.0 HTTP_COOKIE: ASPSESSIONIDQCBATRAD=MBHHDGCBGGBJBMAEGLDAJLGF;

ASP.NET-MVC2 Preview 1: Are There Any Breaking Changes?

浪尽此生 提交于 2019-11-27 08:52:36
问题 I was following Steven Sanderson's 'Pro ASP.NET MVC Framework' book. On page 132, in accordance with the author's recommendation, I downloaded the ASP.NET MVC Futures assembly, and added it to my MVC project. Then, without encouragement from the author , I downloaded, installed, and incorporated the ASP.NET MVC2 Preview 1 dlls into my project. Now, I can no longer load the website. That is, when I hit F5 in Visual Studio, I get this error. In retrospect, I think it was a really bad idea to

User ASP.NET runs under

雨燕双飞 提交于 2019-11-27 08:37:24
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. 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 under an ephemeral thing called ApplicationPoolIdentity which maps to an account IIS APPPOOL\ApplicationPool

DOS command to list all virtual directories in IIS 6

∥☆過路亽.° 提交于 2019-11-27 08:32:42
问题 I'm looking for a DOS command to list all sites and virtual directories in IIS 6 under Windows 2003. I know there are ways to do this using Powershell / WMI, VBS, C#, etc. But all I want is a quick and dirty, no-fuss way to do it from DOS, without the need to create any new files on the Webserver. EDIT: While researching for this question I managed to come up with a one-liner that does it, but please do suggest an alternative if you have a more elegant solution that fits the criteria above.

sqlsrv_fetch_array() expects parameter 1 to be resource, boolean given in

▼魔方 西西 提交于 2019-11-27 08:23:38
问题 It is not dublicated question. im trying print records from my db (IIS, MSSQL PHP) but i have this error... Warning: sqlsrv_fetch_array() expects parameter 1 to be resource, boolean given in <?php $serverName ="name\SQLEXPRESS"; $usr="sa"; $pwd="pasw"; $db="dbname"; $connectionInfo = array("UID" => $usr, "PWD" => $pwd, "Database" => $db); $conn = sqlsrv_connect($serverName, $connectionInfo); $sql = "SELECT first_col, s_col, t_col, FROM names "; $res = sqlsrv_query($conn,$sql); while ($row =

IIS: web applications warmup

本秂侑毒 提交于 2019-11-27 08:05:10
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?) Some tips on warm up scripts: http://www.andrewconnell.com/blog/archive/2006/08/21/3882.aspx More info on the IIS site: http://blogs.iis.net/steveschofield/archive/2009/05/30

Increase file upload size limit in iis6

て烟熏妆下的殇ゞ 提交于 2019-11-27 07:40:50
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 files around 2mb so it is definitely allowing file sizes larger then the standard 200kb default size.

IIS 404 Custom Error not working as expected

空扰寡人 提交于 2019-11-27 07:40:48
问题 I'm working on IIS6, ASP.NET, VS2008. The web site uses a custom error handler to catch 404 errors and serve an alternate page. When presented with an url of the form: http://srv/crimson/articles/index Everything works perfectly. But an url of the form: http://srv/crimson/blog.aspx Where blog.aspx does not exist, fails with the following message: Server Error in '/Crimson' Application. Description: HTTP 404... When I try and debug, none of the breakpoints in my 404 handler are hit. So it

What Causes “Internal connection fatal errors”

痴心易碎 提交于 2019-11-27 04:30:26
问题 I've got a number of ASP.Net websites (.Net v3.5) running on a server with a SQL 2000 database backend. For several months, I've been receiving seemingly random InvalidOperationExceptions with the message "Internal connection fatal error". Sometimes there's a few days in between, while other times there are multiple errors per day. The exception is not limited to one site in particular, though they share business and data access assemblies. The error seems to always be thrown from SqlClient

Web App getting Login failed for user 'NT AUTHORITY\\ANONYMOUS LOGON'

倾然丶 夕夏残阳落幕 提交于 2019-11-27 04:14:46
I see that many people get this error, but their situations all appear a little different from mine. I have a ASP.NET 4.0 web app that runs in IIS 6.0 on a Windows 2003 Server. When I Remote to the web server box and log on there and access the site as localhost rather than by machine name, the web app works fine. However, when I access the web site from another client machine, I get the following error: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' The web site has Anonymous access turned Windows Authentication turned on. The web app contains the following: <authentication mode=