windows-server-2003

Relative path not working when website is deployed

梦想的初衷 提交于 2019-12-22 08:57:26
问题 I have a website that has a relative path to a stylesheet that looks like this "/stylesheets/main.css". Now this works fine when I run the site in Visual Studio. But when I deploy the site to our Windows Server 2003 the path stops working. If I go back into code and change the path from "/stylesheets/main.css" to "stylesheets/main.css", the site works fine on the server. I have another website on a different server that uses the same path style ("/stylesheets/main.css") and stylesheet and

How can I run sqlcmd.exe from an ASP page?

偶尔善良 提交于 2019-12-22 08:06:22
问题 As part of our database revision control (and auto-installation) procedures we need to be able run sqlcmd.exe on various .sql files from within an ASP page. The code I'm using to do this is: Dim cmd : cmd = "sqlcmd -S " & DATABASE_SERVER & " -U " & DATABASE_UID & " -P " & DATABASE_PWD & " -d " & DATABASE_NAME & " -i """ & scriptPath & """ -b" Dim wshShell : Set wshShell = Server.CreateObject("WScript.Shell") Dim return : return = wshShell.Run(cmd, 0, True) I have the code working on my

When does a Windows process run out of memory?

大憨熊 提交于 2019-12-21 06:04:06
问题 Under Windows Server 2003, Enterprise Edition, SP2 (/3GB switch not enabled) As I understand it, and I may be wrong, the maximum addressable memory for a process is 4GB. Is that 2GB of private bytes and 2GB of virtual bytes? Do you get "out of memory" errors when the private byte limit or virtual byte limit is reached? 回答1: It is correct that the maximum address space of a process is 4GB, in a sense. Half of the address space is, for each process, taken up by the operating system. This can be

When does a Windows process run out of memory?

这一生的挚爱 提交于 2019-12-21 06:03:38
问题 Under Windows Server 2003, Enterprise Edition, SP2 (/3GB switch not enabled) As I understand it, and I may be wrong, the maximum addressable memory for a process is 4GB. Is that 2GB of private bytes and 2GB of virtual bytes? Do you get "out of memory" errors when the private byte limit or virtual byte limit is reached? 回答1: It is correct that the maximum address space of a process is 4GB, in a sense. Half of the address space is, for each process, taken up by the operating system. This can be

The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems

 ̄綄美尐妖づ 提交于 2019-12-21 03:56:10
问题 I have hosted my Webapp on server 1 and my database on server 2 But i m getting following error "Communication with the underlying transaction manager has failed." I googled and found a post which mentioned that it is the issue of DTC(Distributed Transaction) I enabled DTC on server2(DB server) and made an exception of it in Firewall. But still same error. Here is the full stack trace Message: System.Transactions.TransactionManagerCommunicationException: Communication with the underlying

How do you tell IIS 6 to set the .NET version to 2.0 (not 1.1) When New sites are created?

烈酒焚心 提交于 2019-12-20 12:05:16
问题 We create new sites in IIS 6 (Windows Server 2003) using IIS Manager. When these sites are created in IIS 6, the ASP.NET version defaults to ASP.NET 1.1. We would like it to default to ASP.NET 2.0. The reason this is a problem for us is that when you take any site on the server and switch the ASP.NET version from ASP.NET 1.1 to ASP.NET 2.0, all web sites recycle. Is there a setting in the IIS metabase that controls this or a way to create a site via script that sets the ASP.Net version

How do you tell IIS 6 to set the .NET version to 2.0 (not 1.1) When New sites are created?

Deadly 提交于 2019-12-20 12:05:10
问题 We create new sites in IIS 6 (Windows Server 2003) using IIS Manager. When these sites are created in IIS 6, the ASP.NET version defaults to ASP.NET 1.1. We would like it to default to ASP.NET 2.0. The reason this is a problem for us is that when you take any site on the server and switch the ASP.NET version from ASP.NET 1.1 to ASP.NET 2.0, all web sites recycle. Is there a setting in the IIS metabase that controls this or a way to create a site via script that sets the ASP.Net version

Access to the registry key 'Global' is denied

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 11:56:41
问题 While giving permissions to the 'defaultAppPool' user I am getting the message 'There is no such global user or group: DefaultAppPool.' Can anyone help me here! However, using command 'net localgroup "Performance Monitor Users" DefaultAppPool /add' I am able to resolve the error but i am facing this problem in Windows Server 2003/IIS 6.0. Here, I am always prompted as 'There is no such global user or group: DefaultAppPool.' I have also added the 'Network Service' but no avail. 回答1: You have

Visual Studio Web Deploy to IIS 6

ⅰ亾dé卋堺 提交于 2019-12-20 09:59:42
问题 Has anyone successfully used the new Web Deploy feature of VS2010 to deploy a web site to IIS 6 running on Windows Server 2003? When I try I get the following error: Web deployment task failed. Could not complete the request to remote agent URL 'https://myserver:8172/msdeploy.axd?site=mysite'. Unable to connect to the remote server. No connection could be made because the target machine actively refused it. I can deploy locally (from VS installed on the server to IIS on the server) and the

Windows command to get service status?

て烟熏妆下的殇ゞ 提交于 2019-12-20 09:35:36
问题 I need to know the status of a service at the end of my batch script which restarts services using "net stop thingie" and "net start thingie". In my most favorite ideal world, I would like to e-mail the state to myself, to read on cold winter nights, to reassure myself with the warmth and comfort of a server that I know is running right. Just for you to know, I'm using a Windows server 2003 platform, and a batch file seemed the best choice. I don't mind using something else, and would be very