windows-server-2008-r2

log4net RollingFileAppender and IIS 7.5

為{幸葍}努か 提交于 2019-12-22 11:22:46
问题 I'm trying to use log4net with a RollingFileAppender on IIS 7.5 / Server 2008 R2. However, the configuration from my old IIS 6 / Server 2003 box doesn't appear to work anymore, I simply don't see any log files being created, here's what I've got setup: In Web.config (inside <configSections> ) <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> In the same file (inside <configuration> ) <log4net> <appender name="ConsoleAppender" type="log4net.Appender

log4net RollingFileAppender and IIS 7.5

你离开我真会死。 提交于 2019-12-22 11:21:23
问题 I'm trying to use log4net with a RollingFileAppender on IIS 7.5 / Server 2008 R2. However, the configuration from my old IIS 6 / Server 2003 box doesn't appear to work anymore, I simply don't see any log files being created, here's what I've got setup: In Web.config (inside <configSections> ) <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> In the same file (inside <configuration> ) <log4net> <appender name="ConsoleAppender" type="log4net.Appender

PowerShellPack - TaskScheduler module - run task with no logged user

允我心安 提交于 2019-12-22 10:48:54
问题 I need to schedule a task via Powershell v2 on Windows Server 2008. I am using the TaskScheduler module from the MS PowershellPack. Scheduling a task is ok, but I need the task to run even nobody is logged on. I saw that this is possible in Powershell v3 on Win8 or Win2k12 (this QA). But that is not my case - I need to this in Powershell version 2. Is this possible with module I am using? Or is there some workaround? 回答1: http://msdn.microsoft.com/en-us/library/windows/desktop/bb736357(v=vs

How can I give remote access to my visualsvn server

匆匆过客 提交于 2019-12-22 06:56:24
问题 I am currently running VisualSVN Server Enterprise on a Windows Server 2008 R2 x64 machine and I had no problem installing and setting it up locally. I need to give remote access to a user in the UK and wanted to know how this is done on a Windows Server. I presume he will access it using https but I have no idea what I need to do on my end locally to grant remote access. Any help or direction would be much appreciated. Thanks. 回答1: First can you please check the Visual SVN on what port and

Allocating more than 4GB memory in a 64 bit system

旧城冷巷雨未停 提交于 2019-12-22 05:04:13
问题 I'm running this code, compiled on 64 bits vc++ 2005, on Windows Server 2008 R2 with 32GB. There is an access violation inside the for loop. #include <iostream> using namespace std; int main(int argc, char* argv[]) { double *x = new double[536870912]; cout << "memory allocated" << endl; for(long int i = 0; i < 536870912; i++) { cout << i << endl; x[i] = 0; } delete [] x; return 0; } So if there is no exception in new double[536870912], why am I getting an access violation when doing an

Allocating more than 4GB memory in a 64 bit system

淺唱寂寞╮ 提交于 2019-12-22 05:04:04
问题 I'm running this code, compiled on 64 bits vc++ 2005, on Windows Server 2008 R2 with 32GB. There is an access violation inside the for loop. #include <iostream> using namespace std; int main(int argc, char* argv[]) { double *x = new double[536870912]; cout << "memory allocated" << endl; for(long int i = 0; i < 536870912; i++) { cout << i << endl; x[i] = 0; } delete [] x; return 0; } So if there is no exception in new double[536870912], why am I getting an access violation when doing an

Could not load file or assembly 'System.Management.Automation'

荒凉一梦 提交于 2019-12-22 04:31:23
问题 I've written an asp.net MVC 3 web application ('ADReporter') on my local machine that uses Powershell to retrieve some data. If I run this application locally, everything works fine. Now I'm trying to run it on my Windows 2008 server but when i'm trying to access it, i get following stack trace: Server Error in '/ADReporter' Application. Could not load file or assembly 'System.Management.Automation' or one of its dependencies. Strong name signature could not be verified. The assembly may have

IIS 7.5 not compressing JSON when set in application web.config

旧街凉风 提交于 2019-12-21 17:25:23
问题 I've been working on enabling JSON compression from one of our MVC3 sites. From various articles I've read it seems as though I should be able to set the application/json; charset=utf-8 MIME type in the applications web.config file. But doing so does not enable compression. But when added to the applicationhost.config file, it works. Am I missing something here? My application web.config has the following added to it: <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary

svctraceviewer exe in Windows 2008 Enterprise Server

我与影子孤独终老i 提交于 2019-12-21 12:57:25
问题 I have a WCF service running on a Windows 2008 Enterprise Server. I just enabled Tracing on in App.config of the service. I have been trying to find the svctraceviewer.exe on the server and am not able to. I tried to google and they say it will be in C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\SvcTraceViewer.exe. But I don't have this folder in Windows 2008 server. I see all versions of .Net Framework in C:\Windows\Microsoft.NET Appreciate your help in Advance. 回答1: Directly download it

Powershell Security Log Get-EventLog

寵の児 提交于 2019-12-21 06:42:23
问题 I am trying to write something up in powershell and completely new to powershell, I need help. What I'm trying to do is get information from the Security Log. Specifically, the last login for users over the last two weeks. The code that I have so far is getting login's for the event ID 4624 based on the last 100 events. This is also returning not just users but computers as well. How can I limit the results to just users over a period of two weeks? Is this even possible? $eventList = @() Get