windows-server-2003

Relative path not working when website is deployed

戏子无情 提交于 2019-12-05 18:58:03
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 works with no problems. I really don't want to change all the paths, and am not even sure if this is a

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

醉酒当歌 提交于 2019-12-05 13:18:42
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 development machine (running XP) but now that I've deployed it to our Windows 2003 server it's having

How can I kill a process, using VBScript, started by a particular user

天大地大妈咪最大 提交于 2019-12-05 09:06:17
I have multiple users running attachemate on a Windows 2003 server. I want to kill attachemate.exe started by user_1 without killing attachemate.exe started by user_2. I want to use VBScript. You could use this to find out who the process owner is, then once you have that you can use Win32_Process to kill the process by the process ID. MSDN Win32_Process class details MSDN Terminating a process with Win32_Process There is surely a cleaner way to do this, but here's what I came up with. NOTE: This doesn't deal with multiple processes of the same name of course, but I figure you can work that

iis: Integrated Windows authentication still pops up account info login

梦想的初衷 提交于 2019-12-05 05:53:56
I have a website running on a Windows 2003 server on IIS 6, serving pages for a LAN where everybody is working with a domain account. On other machines this works fine, no-one has to login to the website, the dynamic scripts pick-up the account-name from the HTTP request. Only, when browsing from the server itself (via remote desktop e.g.), Internet Explorer still pops up the domain-login-dialog when navigating to this site. (both the usual URL and http://localhost/ ). This was no problem on the Windows 2000 server we recently migrated the website from. I had this problem or similar and solved

Are GUIDs generated on Windows 2003 safe to use as session IDs?

元气小坏坏 提交于 2019-12-05 04:38:45
My web application operates only over SSL and sets a time limited cookie for each user after they successfully login with a username and password. The biggest weaknesses in the system are one compromising an existing user's cookie. And two guessing a session ID GUID. I know of mechanisms for the first weakness but I'm wondering how much I need to worry about the chance of an attacker guessing a session ID GUID based on a GUID they have previously obtained by logging into an account they have set up? The web server in this case is Windows 2003 and the GUIDs are being generated with .Net 3.5.

How do you run jvisualvm.exe under the local system account under Windows Server 2003?

ぃ、小莉子 提交于 2019-12-05 04:23:53
问题 I am running GlassFish 3.0.1 as a windows service under Windows Server 2003 with Java 1.6 u 20, and am generally happy. I would like to be able to use VisualVM on this JVM and used Unable to use JConsole with Tomcat running as windows service as a starting point, but starting with PsTools\PsExec.exe -i -s "C:\Program Files\Java\jdk1.6.0_20\bin\jvisualvm.exe" results in a jvisualvm.exe and a nbexec.exe process showing up in Task Manager with SYSTEM as the user but I do not see any GUI from the

NT Eventlog single message size

随声附和 提交于 2019-12-05 01:12:41
Can anybody tell me what is maximum size of a windows NT log message? I know that it is possible to reset the maximum log size of event log from 32 MB. I am interested about the memory a single message can hold in NT event log. Thanks in advance In Windows Server 2008 the maximum size of a single Event Log entry is: 31,839 characters http://msdn.microsoft.com/EN-US/library/windows/desktop/aa363679.aspx The answer is 32766 characters ~ 32 KB See a example below: Error: Log entry string is too long. A string written to the event log cannot exceed 32766 characters. 来源: https://stackoverflow.com

Integrated Windows Authentication for Multiple Domains

谁说我不能喝 提交于 2019-12-05 00:44:48
I have Asp.net website for domain A users with the Integrated Windows Authentication. Now users from domain B need to access the website. But Domain B users receive pop-up window to input the authenticated information when they access the website My question is: How to configure the IIS or Windows Server to allow Domain B users to access the website without the pop-up windows for authentication, just like the users from Domain A. Check that you have a trust configured Verify this by trying to add domains users from domain B to the file system where your IIS site is located. Verify that the

how to allow files starting with period and no extension in windows 2003 server? [closed]

岁酱吖の 提交于 2019-12-04 22:26:55
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . How can I create this file in a directory in windows 2003 SP2: .hgignore I get error: You must type a file name. That's a "feature" of Windows Explorer. Try to create your files from a command line (or from a batch/program you wrote) and it should work fine. Try this from a dos prompt: echo Hello there! > .hgignore By the way Raymond Chen had a blog post about this topic a while back: Why doesn't Explorer let

ODBC Administrator Can't Find Oracle TNS Names File

半城伤御伤魂 提交于 2019-12-04 18:43:27
问题 With a new Oracle Installation when I go to Configuration Management Tools > Microsoft ODBC Administrator > System DSN > Add > [new installation] it does not have the TNSNAMES.ora connection name in the drop down. With the old installation, this had worked. I've tried updating Environment Paths and Registry keys but still can't find a way to get ODBC to see it in the drop down. There was a previous installation of Oracle Client on the Windows Server. I tried to remove most of the files but