windows-server-2003

How to develop a snap-in for IIS 6.0 manager in MMC 2.0

I have some IIS 6.0 filters and extensions that I need to create a configuration panel for in IIS Manager. I need to create something similar to the ASP.NET tab, for instance. I need to support versions of Windows Server 2003 prior to R2, and can't assume that they will have the MMC 3.0 update installed, so I guess I have to do it with ...

Share resources among multiple CakePHP webroots on Windows / IIS ?

I've got a CakePHP install running six different web sites, each with their own webroot. All of the base code is the same (controllers, models, etc.), just the css, images, js and so forth are split into the separate webroots (app/webroot, app/webroot_second_site, app/webroot_third_site, etc.) My question is: Is there a way to share co...

Does Windows Server 2003 SMTP mail server have a character limit for the subject?

I am using Windows 2003 Server and I'm wondering if the SMTP mail service that is part of IIS (v6.0) has a character limit on the subject line? ...

Control IIS 7 server from Windows 2003 server programmatically

We run various jobs using a Windows 2003 server. Some of these jobs send app pool commands to web servers running IIS 6 (recycle, start, stop). Now we have a Windows 2008 web server running IIS 7, and we want to send the same commands. This is all done using C#. This is the code we use to send commands for IIS 6: var methodToInvoke = ...

web site publishing problem

I have win server 2003 and IIS 6. After publish my web app to IIS and set port 8080 I can't see web site UPDATE: I solve my problem with connect to port 8080, after type http://XXX.XXX.X.XX:8080/ I see this Thursday, August 19, 2010 9:26 AM App_Data Thursday, August 19, 2010 9:26 AM bin Thursday, August 19, 2010 9:26...

How can I debug a dump file for an ASPNET worker process in Visual Studio 2010?

I've run into a particularly nasty bug where an ASP.NET website attempts to make a call to a WCF service method that sends IIS into a death spiral...that ultimately brings down the associated app pool. It never gets to our log4net code that outputs unhandled exceptions. I was watching w3wp.exe processes spin up and die, so I figured I'...

SharePoint 2007 and it's underlying operating systems

We have a MOSS 2007 Standard farm, running on 2 Web Front End (WFE) and 1 Indexing server all running on 64 bit Windows Server 2003 servers. We need to upgrade our servers to Windows Server 2008, and wanted to know if you can run 1 WFE on Windows 2008 and 1 WFE on Windows 2003, while we are in the process of upgrading our individual ser...

Windows Server 2003 64 bit cmd.exe error

I'm having trouble calling the Microsoft Cabinet Maker utility (makecab) from a batch script on a Windows Server 2003 server. The batch script is being run by Hudson (continuous integration service) installed as a windows service on the machine. The hudson.exe (64-bit) process spawns a java.exe (32-bit) process, which spawns a cmd.exe ...

Domain Users logged in details for Windows Server 2003

I want to know all the users logged in for a particular domain by executing a script. Kindly help me giving the script or command. Thanks in advance. ...

Get a report of all shares and user permissions (NTFS and share) on a Server 2003

We want to move all of our file shares and their permissions to an external NAS. We purchased the Synology RS810 and are looking to start moving everything. We want to know all the permissions and shares so we can set them on the target device. We would love to copy the files with permissions but I don't think it will work because the...

Scheduling a task to run at the end of every month. (Winows Server 2003 - Scheduled Tasks)

I need to schedule a task to run on the last night of each month, on a Windows 2003 Server. I see that you can schedule it to run on the "first or last Mon-Fri", or even on the nth day of each month - but, not how to get it to run on the last day (regardless of day of the week or number). Thanks in advance. Note: I did check "How do y...

Install ASP.NET 4.0 alongside ASP.NET 2.0 on IIS6

I've read where you create a new application pool, one for 2.0 sites and one for 4.0 sites. But there is no option I see when creating a pool to configure the framework. My problem is I have several 2.0 sites running as the Default Web Site. I added a WCF 4.0 service under a new virtual directory and set the framework to 4.0. I also ...

Windows 7: Using schtasks to run on a WinServer2003

Hello, I need to run several scheduled tasks remotely on a WinServer2003 machine. When my OS was WinXP-32 it worked quite fine with a command like "schtasks /run /s \\xxx.xxx.xxx.xxx /tn ScheduledTaskName". Now I upgraded my OS to Win7-64 and I always get errors like "Host not found" while with a WinXP system the remote call still work...

C# code that initiates a self reboot?

I want to write a program that will run on a specific web server and periodically browse to a page that is being hosted by that same web server (IIS) to check for certain text. If a certain condition was found to be true, it would initiate a reboot of the server (the one it is residing on). I can handle the checking the webpage part, th...

Using Robocopy to deploy sites

I want to be able to quickly deploy updates to a site that is fairly busy. For smaller sites I would just FTP the new files over the old ones. This one, however, has a few large dll's that regularly get updated and while they are copying the site is effectively down (plus there is the hassle of making backups of them in case something go...

ManagementObjectSearcher Crashes on Win Server 2003?

I have a simple piece of C# 3.5 that does this: SelectQuery allProductsQuery = new SelectQuery("Win32_Product"); ManagementObjectSearcher allProducts = new ManagementObjectSearcher(allProductsQuery); foreach(ManagementObject product in allProducts.Get()) { foreach(PropertyData property in product.Properties) { Console.WriteLine("{0} = {...

Receive HTTP 500 error or blank page on IIS6 ASP.NET website

Hi All, I have three web servers running a number of different websites. All 3 servers are running Win2003 with IIS6. I have one troublesome website however that is an ASP.NET website. Many users at random times through the day receive a blank page when trying to load the site. Looking through the IIS logs for the site I can see that us...

Application as Service Win server 2003

I want to make a service from a .exe file. To do this i can use software like FireDaemon or ExeToServices but i want to do it with sc.exe. But I don't know how to do this, i have to add a paramater afther the specific .exe path like: "C:\Program Files\Server1\example.exe" +set fs_game 1 How can i do this? ...

Performance counter created but not working until windows restart

Hello, I have a strange problem creating new counters in existing group. I have a windows service, which does some work and allow me to monitor its state via performance counter. I have performance counters group and some performance counters. Group is created during service install phase (with administrator privileges), and counters ar...

filesystemwatcher.filter appears to be case sensitive (but only on our 2003 servers)

This is utterly baffling to me. I have a service with an array of file system watchers, the path and filter of each set at runtime. Protected Overrides Sub OnStart(ByVal args() As String) Dim l As String = ConfigurationManager.AppSettings("dirs") Dim x As String = ConfigurationManager.AppSettings("extensions") Dim locs() As...