windows-server-2008

Windows service app.config location

帅比萌擦擦* 提交于 2019-11-28 04:20:39
I have installed a C# Windows Service on Windows Server 2008. I installed it with InstallUtil. The service reads some data from the app.config file and it is doing it fine. Can you tell me where this file is located after installing the service? I have been looking for hours but can't find it. You can verify the exact location of the installed Windows Service by following the steps below: Bring up the list of Windows Services by clicking the "Services" icon under the "Administrative Tools" icon. You can also get this list by typing "View local services" in the Search Menu under the Start Menu.

Socket error “IP address not valid in its context” - Python

蹲街弑〆低调 提交于 2019-11-28 04:01:15
问题 I'm using Python 2.6 and Windows Server 2008 . The server has two IP addresses 1 internal, 1 external . I need Python to use the external IP address, but while doing so I get this: socket.error: [Error 10049] The requested address is not valid in its context To be more precise I'm using Django's runserver command for who is familiar with it Edit: ipconfig only brings up the internal IP address, while all services I have running are using the external IP without any problems! Any ideas? 回答1:

A workaround for the fact that a scheduled task in Windows requires a user to be logged in

自作多情 提交于 2019-11-28 03:08:04
问题 I am running a small executable created by a third party that needs to run at regular intervals on a Windows 2008 server. This executable effectively ETLs information from one system to another and needs to run every hour or so around the clock. As part of its processing the executable launches a small Windows Forms type UI. I have set up a scheduled task to call the file and this works ONLY if the user under which the task is configured to run is logged onto the machine (either locally or

Create directory if it does not exist

倾然丶 夕夏残阳落幕 提交于 2019-11-28 03:07:10
I am writing a PowerShell script to create several directories if they do not exist. The filesystem looks similar to this D:\ D:\TopDirec\SubDirec\Project1\Revision1\Reports\ D:\TopDirec\SubDirec\Project2\Revision1\ D:\TopDirec\SubDirec\Project3\Revision1\ Each project folder has multiple revisions. Each revision folder needs a Reports folder. Some of the "revisions" folders already contain a Reports folder; however, most do not. I need to write a script that runs daily to create these folders for each directory. I am able to write the script to create a folder, but creating several folders is

Creating a process in a non-zero session from a service in windows-2008-server?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 02:01:45
问题 I was wondering if there is a simple way for a service to create a process in user session? My service is running as a user(administrator) account and not as a LocalSystem acount, therefore i can't use the WTSQueryUserToken function. i have tried calling OpenProcessToken(GetCurrentProcess,TOKEN_ALL_ACCESS,TokenHandle); but when i use this token to run CreateProcessAsUser(TokenHandle,.....) my process is still running in session 0. how can i resolve this issue? I'm using an Ole automation so i

Link Button not working with IE 10

隐身守侯 提交于 2019-11-28 01:01:41
问题 I have an problem related to Link Button Click event in asp.net on Internet Explorer 10.Link Button click event is not firing. It shows the javascript error SCRIPT5009: '__doPostBack' is undefined I have Windows Server 2008 Standard Without Hyper-v(6.0, Build 6001) on my system. I tried to fix this problem by Patch provided by Microsoft but that didn't work.I hope you understand my question very well and will give meaningful answer's. Thanks in advance. 回答1: Problem occurred cause of: There

How to check in delphi the OS version? Windows 7 or Server 2008 R2?

有些话、适合烂在心里 提交于 2019-11-28 00:59:55
I always used to check the windows versions by their major/minor build numbers. Strangely enough, Windows 7 and Server 2008 R2, both return the same major/minor version number combination. Confirm this by typing ver into a command prompt GetVersionEx. There is a chart of the version numbers and their associated editions here . Notice that the product type is different between 2008 R2 and Windows 7. This works, and correctly detects many Windows Product Editions, including Windows XP, Windows 7 (Home, Professional), Windows Server 2003, and Windows Server 2008, and contains code that should

Max tcp/ip connections on Windows Server 2008

☆樱花仙子☆ 提交于 2019-11-27 20:25:45
问题 I have .Net service that listens on single port over TCP protocol. Clients connect and then transmit data for some time (from few minutes to several hours). Is there any limit on number of connections on Windows 2008 server? I did not hit any, since now there is up to 50 users. Plan is to have thousands of users, so I'd like to know if there will be problems in future. Edit: As Cloud answered, it seems that there are some limits in some versions of Windows Server 2008. Is there any reference

ASP.Net which user account running Web Service on IIS 7?

只愿长相守 提交于 2019-11-27 20:22:47
I want to know which account running my Web Service/Application so that I can assign the read/write access to that account. I have researched and see most of the sources mentions about ASPNET account, but on my 2008 server, there is not any acount named ASPNET. Some sources say ASPNET is being replaced by NETWORK SERVICE? Also, can I assign to another user account to run the service? And how to do that? Thanks, Look at the Identity of the Application Pool that's running your application. By default it will be the Network Service account, but you can change this. At least that's how it works on

Windows 2008 RenderFarm Service: CreateProcessAsUser “Session 0 Isolation” and OpenGL

拜拜、爱过 提交于 2019-11-27 20:17:49
I have a legacy Windows server service and (spawned) application that works fine in XP-64 and W2K3, but fails on W2K8. I believe it is because of the new " Session 0 isolation " feature. Consequently, I'm looking for code samples/security settings mojo that let you create a new process from a windows service for Windows 2008 Server such that I can restore (and possibly surpass) the previous behavior. I need a solution that: Creates the new process in a non-zero session to get around session-0 isolation restrictions (no access to graphics hardware from session 0) - the official MS line on this