windows-server-2008

How to do excel interop on windows 2008?

Recently deployed my web app on Windows Server2008, IIS7 (with Office installed). After chasing (& catching) various other errors, I'm facing one I'm not sure even where to begin. On Cassini (visual studio dev server) everything worked flawlessly (reading excel through excel interop). On w2008 IIS it throws vague error: Value cann...

How to install Hudson on windows server 2008?

I'm calm... Everyone loves windows... 1,2,3,4,5...10 Ok How to install Hudson on windows 2008? More specifically - what exactly is 'Windows filtering platform' thingy and how to kick it so it would allow Hudson pass through? This is what i get in event log when i hit java -jar hudson.war and try to open web page: The Windows F...

Securing Solr/Tomcat on Windows

I need to secure a Solr/Tomcat instance running on Windows 2008. All read/write clients are within the LAN, so I have followed the Tomcat instructions here and the Solr instructions here. I am unsure that is enough, could you offer me any additional suggestions? or share how you go about securing Solr/Tomcat+Windows. I also would appr...

WatiN Timeouts in Windows Server 2008 IE8

I've created some automated tests using WatiN and MBunit and they run fine on my machine (running Windows 7 and VS 2010). However, when I try running them on a virtual machine which is running Windows Server R2 2008 and IE8 my tests consistently timeout unless I am clicking into the window periodically. IE is not in protected mode. A...

Error printing from 16-bit applications in Windows 2008 Server

I'm having problems trying to run a bunch of old 16-bit applications in Windows 2008 Server. The applications ran fine up to Windows 2003 Server, but when I try to print from any of them, all show printing errors (Unable to create printer driver / TERM error / etc) The LPT1 port is redirected to a shared printer via NET USE LPT1 \Serve...

Empty Content returned from Web Server (Big/IP+IIS7)

Occasionally, individual users will receive "blank pages" from our web server on login. It only happens to individual users, not all users at a given time. Using the same account from a different machine may or may not reproduce the problem. Using a different account from the same machine usually works. The problem will often go away o...

System.IO.Directory.Exists in web application

Hello, I am faced with this strange problem: In an .net web application, there is some code equivalent to this: if (Directory.Exists("config")) { ... } It basically checks to see if C:\Windows\system32\inetsrv\config directory exists, why the code is written like this is beyond me and this question. What confuses me is the above co...

Unexpected behaviour on deploying MVC app.

Hi there, today I have deployed my first MVC 2 application on Windows Server 2008, and something strange happen. Authentication was requested on almost every pages, even to access 'scripts' and 'contents' folders. This was strange because this behavior doesn't occur on my development environment. Then I have setup IIS in my Win7, to t...

Is there any API for creating custom server roles in Windows Server 2008?

Subject is self-explaining ...

Find out total number of cores on a Win Server 2008 cluster system

Is there a way to find out the total number of cores available on Server 2008 cluster system? i.e. total number of cores on all compute nodes? Is there an environment variable that has this information? Thanks, AG ...

Classic ASP Session Variables Lost on Windows Server 2008 R2 / IIS 7

We transferred our existing website which is running on a Server 2003 machine using iis6 and coded with classic asp to a Server 2008 64 bit machine using iis7 and classic asp. The only changes to the pages were for our calls to a Universe db, which need a new connection string . We tested all the pages within the department running 4-5...

'Encountered an improper argument' Only on Windows Server 2008 with CFileDialog

I have the following code to get a valid file name CFileDialog *MyDlg(new CFileDialog(FALSE,NULL,0,OFN_HIDEREADONLY|OFN_FILEMUSTEXIST,"CSV (*.csv)|*.csv||",NULL)); bool done = false; CString sFileName = ""; while ( !done ) { /* (Keep looping until we get a "good" filename) */ if ( MyDlg->DoModal() != IDOK ) return; ...

Storing private "octet string" in Active Directory; what is secure by default?

I am essentially storing a private key (Hash) in any of the OctetString attributes within Active Directory. My question is, what attribute is secure by default and makes sense to keep private data there? This value should be considered similar to a password, where even administrators shouldn't have access (if possible), just like the c...

What controls the image quality in IIS based on the following example?

I had this question before "Resize image on the fly make the image lose quality online but locally works nice" And what i got now is that it's not a problem of local or online, i ran this resize on the server itself "dedicated server", and i got the same bad quality image, so the problem is in the IIS configurations. What in iis can ma...

create local user account

i have this code to create a local windows user public static bool CreateLocalWindowsAccount(string username, string password, string displayName, string description, bool canChangePwd, bool pwdExpires) { try { PrincipalContext context = new PrincipalContext(ContextType.Machine); UserPrincipa...

Problem with .NET 4 based SMTP OnArrival sink in Win 2008 R2

I had .NET 3.5 implementation of OnArrival sink for SMTP server that has been successfully running for years. When I recompiled it to .NET 4 and reinstalled it the SMTP server stopped picking it up. I suspect it has something to do with the default verion of .NET used by SMTP server interop to communicate with the sink (it seems that it ...

Bat file does not seem to run as expected on Win Server 2008

Hello, I'm trying to set environment variables (via SET) through a bat file which then submits job to the scheduler. However it does not set it right the first time. I have to run the bat file twice to make it run correctly. Why is this happening? Thanks! @echo off if exist b.inp ( echo b.inp exists set /a procs=0 for /f %%a in ('fi...

Hudson, windows2008 and git plugin

I got hudson up and running. Installed git plugin. Created new job, typed in git repository URL, saved and hit 'build now'. It just freezes. When i cancel build, this is what I get: Started by user anonymous Checkout:workspace / C:\Users\taboo_user.TABOO.hudson\jobs\Interreg\workspace - hudson.remoting.LocalChannel@94aa42 Using ...

Moving Sharepoint 3.0 2007

Hi I'm moving our Sharepoint site 3.0 2007 from a Windows server 2003 machine to windows server 2008 RC2. The Sharepoint site uses a sql database which will also be moved to the new server. I need to move all site content included any documents that have been uploaded to the site and the sql database. Is there any easy way to sim...

How can I run the regedit.exe from a Perl script on Windows 2008 Server?

I have yet another subtle problem on Windows :( The following one-line perl script doesn't work: perl -e "system('regedit.exe /s C:\my.reg');" It really runs regedit.exe tool (I'm sure since I tried to run it w/o "/s" and saw confirmation dialogs), but it doesn't create a key in the registry. I tried to run regedit.exe /s C:\my.r...