windows-server-2008

C# code to automatically give IIS write access to a folder on Windows Server 2008? Currently throws exception

无人久伴 提交于 2020-01-01 10:51:34
问题 I am trying to write a command line tool that will give IIS7.5 on windows server 2008 write access to a folder in the wwwroot, so that a web application has access to write to a specific folder within it's base directory. Formerly, you would do this by assigning the IIS_WPG group on the folder giving that group Modify access. In Server 2008 I'm trying to do the same thing with IIS_IUSRS, but an exception is ocurring. Here is the code: private static void ManagePermissions(string directory,

Clipboard Copy-Paste doesn't work in a service on Win Server 2008/Vista 64bit

≡放荡痞女 提交于 2020-01-01 06:30:30
问题 Update: This issue has been resolved. you can read about the solution in here: Creating a process in a non-zero session from a service in windows-2008-server? Thanks everyone! Hi, I am trying to use Clipboard API (in Delphi) to extract images from Word documents. my code works OK in Windows XP/2003 but in windows 2008 64 bit it doesn't work. in win 2008 i get an error saying that Clipboard.Formats is empty and doesn't contain any format. The image seems to be copied to the Clipboard (i can

Clipboard Copy-Paste doesn't work in a service on Win Server 2008/Vista 64bit

怎甘沉沦 提交于 2020-01-01 06:30:10
问题 Update: This issue has been resolved. you can read about the solution in here: Creating a process in a non-zero session from a service in windows-2008-server? Thanks everyone! Hi, I am trying to use Clipboard API (in Delphi) to extract images from Word documents. my code works OK in Windows XP/2003 but in windows 2008 64 bit it doesn't work. in win 2008 i get an error saying that Clipboard.Formats is empty and doesn't contain any format. The image seems to be copied to the Clipboard (i can

using word object in windows server

泪湿孤枕 提交于 2019-12-31 05:49:07
问题 I have asp.net app which at some point takes word document, edits some of the data there and sends it to email. While this is running good on my local computer where I have microsoft word, when I am trying to do the same thing from windows server without microsoft word installed, the document doesn't get created, and it seems that nothing is happening. Does anyone can tell me what do I need to install for this to work, do I need to install normal microsoft word application or I can install

How to get windows username in MS Access VBA on Windows Server 2008

穿精又带淫゛_ 提交于 2019-12-31 05:13:06
问题 I am using this code in my MS Access VBA: How to get logged-in user's name in Access vba? It works perfectly fine. However, our foreign employees need to use the software on a server, and it is unable to retrieve the username. We are signed in as usual. The server version is Windows Server 2008 SP2. Any suggestions? Best regards, Emil. 回答1: I don't know which method you are using (there are several answers), but this one suggested by HansUp is easy and hopefully works on the Server too: https

Buliding Windows Phone 7 projects on Windows Server 2008

此生再无相见时 提交于 2019-12-30 08:33:17
问题 My company is planning on developing for Windows Phone 7. The build server we have, however runs Windows Server 2008. According to the Windows Phone SDK release notes I've read that only Windows Server is not supported for the SDK. Does anyone have any experience on whether there's a possible workaround to have a Windows Server 2008 machine build Windows Phone 7 projects? Update: I'm interested in building on a WS 2008 as we're talking about a project with a larger team where continous

Mercurial CGI (hgweb.cgi) fails

早过忘川 提交于 2019-12-30 04:20:06
问题 I have Mercurial 1.8.1, Python 2.6.6 installed on Win 2k8 R2 running on a vm. I have tried installing from msi, source and using tortisehg. Command-line Hg works fine but I get the same error when running the hgweb.cgi: Traceback (most recent call last): File ".\hgweb.cgi", line 17, in application = hgweb(config) File "mercurial\hgweb\__init__.pyc", line 26, in hgweb File "mercurial\hgweb\hgwebdir_mod.pyc", line 61, in __init__ File "mercurial\hgweb\hgwebdir_mod.pyc", line 70, in refresh File

Is there a way to pass the DB user password into the command line tool mysqladmin?

穿精又带淫゛_ 提交于 2019-12-29 11:40:12
问题 I currently use the following but it ALWAYS prompts me to manually type the password. Is there any way to pass it in on the command line when launching the executable? mysqladmin processlist -u root -p 回答1: Just found out the answer.... mysqladmin processlist -u root -pYOURPASSWORDHERE No space between your password and the -p 回答2: Try: --password=PasswordTextHere 回答3: This should work: mysql -uroot -p'password' If you're trying to automate mysql solution, you can use password from variable:

How to list installed features of Windows Server 2008 in c#

百般思念 提交于 2019-12-29 08:05:09
问题 How can I list all installed features of Windows Server 2008 in c#. I tried to query dism.exe or oclist.exe but not all versions have it. Can I use System.Management.ManagementClass to do this somehow ? 回答1: I have found it, you have to use Win32_ServerFeature Class (http://msdn.microsoft.com/en-us/library/cc280268(VS.85).aspx) and System.Management.ManagementClass. It works on ws2008. ManagementClass objMC = new ManagementClass( "Win32_ServerFeature"); ManagementObjectCollection objMOC =

Make server automatic run asp-script every day

倾然丶 夕夏残阳落幕 提交于 2019-12-29 08:02:45
问题 Is it possible to create a batch-file which opens firefox, runs a website and then closes firefox again? Something like: @echo off start firefox http://..... This is where I am stuck... It needs to close firefix again when the website is finished loading. It is used to run a maintenance-script every night at 23:59. The script is based locally, but one cannot run a asp-file without using a server, so I have placed it as a website. 回答1: Adapted from an article I wrote on aspfaq.com years ago.