windows-server

Operating System for first production windows server code?

I'm getting ready to purchase a server for me to deploy my first windows based (C# .NET) application but I'm not familiar with using windows for hosted applications. I have the choice of the following versions of windows: Windows Server 2003 Windows Server 2003 Web Windows Server 2003 Enterprise Windows Server 2008 Windows Server 2008...

WINDOWS/system32/LogFiles in use. How can I discover what program is using it? If it's the server, how can I use it too?

opening a file in WINDOWS/system32/LogFiles with using (StreamReader r = new StreamReader(fileName)) generates exception "because the file is in use by another process". How can I figure out what the other process is? Could it be the server updating the logs? If it is, how can I ensure that my associated scheduled task can also ha...

How to write my own Server Logging script?

I need to log the hits on a sub-domain in Windows IIS 6.0 without designating them as separate websites in the IIS Manager. I have been told this is not possible. How can I write my own script to do this? I'm afraid google analytics is not an option due to the setup, I just need access (i'm guessing) to the file request event and its pr...

Ruby on Rails + Sql Server 2005

This has been addressed some time ago, but I've not had any luck following the steps outlined or advice suggested. Here's my situation: I've installed SQL Server '05 and have another (non-Ruby) application utilizing it successfully. I've got Rails up and running successfully (but only for MySQL.) I've installed the Rails sqlserver adap...

Windows Server Capacity Planning

I've a task to perform to drill out capcity planning for all servers in the enterprise.Web/DB/Linux Servers most.what would be the approach to do this activity and is there any draft checklist or monitors that to be used. ...

Securily deploying applications to Windows Server

How does one deploy an ASP.NET (MVC) application to a Windows Server securely? Visual Studio 2008 seems to only support FTP, which is not secure at all (plain text passwords) and http which I'm not really sure what it is. I've been told it is for FrontPage extensions and that I should use that, but that seems to really be a second class ...

Improve file download performance in Windows 2003

Hello, I have a Watchguard x1250e firewall and a fast network setup at pryme.net in Ashburn, VA. I have Verizon FIOS here at the office (50 mbit) and did a test download from a URL they provided me and I get 5.8 MB/sec from their test file (probably off of Linux). But from my servers running Windows 2003 behind the firewall (x1250e) jus...

.NET Applications performance problem on Windows 2003

Hi, We have a 2 x Quad Core Xeon server with 8GB of RAM and Windows Server 2003 Enterprise installed on it. We installed our application server which is based on .NET Framework 3.5 on it. The server uses SQL Server 2005 as its database server. When we installed the application server, it used to have ultra fast performance and everythi...

Server application have to make pings to N clients. Is there way to make it multithreaded?

I write server application (Windows Server 2003) making upto 1000 ping calls to clients and waiting for receive responses. As ping uses ICMP connection, I've found no way to define from which IP the server receives the responses. Currently I use blocking by Mutex but it practically removes all bonus of multhithreading. Is there another w...

How to check if a exe is accessed from the server

This is a client server application. I'm creating a update program that will replace a list of exe files, run scripts, and anything else that needs to be updated. This will be installed on the server. First I need to check if the executable file is opened via a network share. I can do this manually by going into Computer Management ...

How to completely script the process of importing SSL certificate and binding this certificate to a specific site

I have been looking around for a solution for this problem that works across different versions of Windows Server & IIS, but so far I couldn't find a reasonable solution, what I need is some sort of a script or a command line tool, that takes a certificate file (pfx) for example and then either using the same script or tool find a way to...

Possible to have ampersands ("&") in URL BEFORE the query string?

My client is determined to have a page at /nfm&t so I made a directory named nfm&t with an index.html (to test) and that URL is still throwing a 404. So apparently it's not that easy. Any ideas? Or is there a way to just redirect nfm&t to nfmt, so that the URL at least resolves? This is a Windows server, by the way, which throws a wren...

How to kill process on Remote Desktop Connection?

I am working remotely on a Windows Server via Remote Desktop Connection and some process has hung the server. I looked up how to bring up the Task Manager remote (equivalent of locally doing CTRL+ALT+DEL) and I found CTRL+ALT+END and it doesn't seem to work. I tried logging off and logging back on and the system is still up (tried earl...

Evaluating IIS7 with Virtual PC?

Hi, I wanna do some local developer tests of IIS 7 but I don't have Windows Vista, 7 or 2008 server - I currently run XP SP3. I have Virtual PC installed so I can use Microsoft's IE compatibility images - are there any time-limited images that I can use with Virtual PC so I can check out IIS 7? The IIS 7 "Try it" link points to this p...

How to get a list of IPs for a remote computer in Ruby

I have a app that needs to connect over a socket to a remote computer that now has multiple IP addresses. Is there a way to turn the remote Hostname or IP a list of all the IPs that the system has? Possibly (Hostname | Ip) => (RemoteMAC) => IPs? These will be windows server 2003/2008 machines. ...

Howto synchronize two folders (on different servers) after an (classic) ASP upload.

hi I'm using a customized backend to upload images on a server. The issue is that the client has a load balanced server so I need to synchronize the upload folders on both server. I'm not able to know which server is executing on the backend. I'm just wondering which is the best way to compare and synchronize the folders on two servers...

Encrypt shared files on AD Domain.

Can I encrypt shared files on windows server and allow only authenticated domain users have access to these files? The scenario as follows: I have a software development company, and I would like to protect my source code from being copied by my programmers. One problem is that some programmers use their own laptops to developing the ...

Is it possible to 'talk' to servers in a Windows intranet and pull information? (.Net 4.0)

I am attempting to make a program that will pull data such as OS, IP, Server Name, Websites, Databases, etc. in a server farm. Is there a .Net library that allows you to connect to servers and get information such as this with the proper authentication? I do not really know where to start, thank you. Most of the servers are 2003 stan...

SQL Server temp DB issue

Hello everyone, I am using SQL Server 2008 on Windows Server 2008. I find the temp DB mdf and temp ldf is very big (about 13G), and it is almost the same size of all other real application database files (mdf+ldf). My questions, What temp DB is used for? Is it normal situation that temp DB is so big? If not, any ways to clean-up temp...

Windows server 2003, remote way to bypass windows firewall

I have a windows server 2003, I disabled the firewall with the remote desktop, enable it and I lost the access to my machine (and my sites). I was wondering if there is any backdoor to bypass firewall in situations like this, so if something goes wrong, I could fix it remotely. In linux for example, there is ssh reverse tunneling which ...