windows-server-2008

Windows Server 2008 and jstatd as a service

痴心易碎 提交于 2019-12-22 06:58:29
问题 I have a JBoss server installed as a service on Windows Server 2008 with Local System as the Log On user. I want to be able to run visualgc on the JBoss server, and prior to Server 2008 I was able to directly connect to the PID (i.e. visualgc [PID]). Based on what I've read, my only solution in Server 2008 is to install jstatd as a service using the same credentials in order to run visualgc remotely (i.e. visualgc [PID]@localhost:1099). So, I got jstatd running as a service under the Local

how to redirect from http to https in asp.net C# and make it as default version for the website

人走茶凉 提交于 2019-12-22 05:29:25
问题 how to redirect from http to https in asp.net c# i have installed https certificate now i want to make https as default version for my website iam using windows server 2008 R2 asp.net C# 4.0 回答1: Are you looking for something like this:- if (!Request.IsLocal && !Request.IsSecureConnection) { string sUrl = Request.Url.ToString().Replace("http:", "https:"); Response.Redirect(sUrl); } Also check this related forum. From the above link:- You can install URL Rewrite Module , create a redirect rule

WebResource.axd giving 403 error in ASP.Net Post backs using IIS7

試著忘記壹切 提交于 2019-12-22 01:29:33
问题 I installed a ASP.Net website on a Windows 2008 server, which is by default using IIS7. The website seems to work fine, but the post backs on my forms do not work. After a few hours of debugging, I realized that when I manually try to hit the WebResource.axd file in my browser (e.g. I type http://www.domain.com/WebResource.axd in the address bar), I get a HTTP 403 error (Access Denied). I'm not quite sure where to look next and my Windows 2008 security knowledge is limited. How do I go about

can't terminate process using WMI but taskkill works

丶灬走出姿态 提交于 2019-12-21 21:43:36
问题 My user is in the Administrators group. I am using the .NET WMI API (System.Management) to kill a process using this code: var scope = new ManagementScope("\root\cimv2"); scope.Connect(); var query = new ObjectQuery( string.Format("Select * from Win32_Process Where ProcessID = {0}", processId)); var searcher = new ManagementObjectSearcher(scope, query); var coll = searcher.Get().GetEnumerator(); coll.MoveNext(); var mgmtObj = (ManagementObject)coll.Current; var ret = (uint) mgmtObj

asp.net 2.0 global themes not working on new windows server 2008

╄→尐↘猪︶ㄣ 提交于 2019-12-21 20:03:23
问题 We're migrating our .net 2.0 websites from a Windows 2003 server (32 bit) with IIS6 to a Windows Server 2008 (64 bit) box with IIS7. I can't seem to get the global themes to work. Same content/directory structure as our old servers; local App_Themes work fine. Global Theme path: D:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\Themes thanks, Aaron 回答1: From the MSDN, your directory path should read: %windows%\Microsoft.NET\Framework\version\ASP.NETClientFiles\Themes. MSDN on themes. Of

Windows Server 2008: COM error: 0x800706F7 - The stub received bad data

随声附和 提交于 2019-12-21 17:54:11
问题 I'm evaluating Server 2008. My C++ executable is getting this error. I've seen this error on MSDN that seems to have required a hot-fix for several previous OSes. Anyone else seen this? I get the same results for the 32 & 64 bit OS. Code snippet: HRESULT GroupStart([in] short iClientId, [in] VARIANT GroupDataArray, [out] short* pGroupInstance, [out] long* pCommandId); Where the GroupDataArray VARIANT argument wraps a single-dimension SAFEARRAY of VARIANTs wrapping a DCAPICOM_GroupData struct

Block ping in Windows Server 2008 R2

核能气质少年 提交于 2019-12-21 17:32:13
问题 I have deployed my Asp.Net web application on Windows Server 2008 R2 , and I want to block all ping requests to this server without effecting my application . Thanks in advance 回答1: Go to Start → Administrative Tools → Windows Firewall with Advanced Security → Inbound Rules → File and Printer Sharing (Echo Request – ICMPv4-IN) → right click and select Enable Rule . My application now works fine and when I try to ping my server I do not receive any response. 回答2: Using the solution provided by

Unable to install Windows Web Services API for Remote Debugging with VS2012

半腔热情 提交于 2019-12-21 12:17:24
问题 I'm trying to remote debug using visual studio 2012 and windows server 2008 not R2. I recieve the following error when setting up the remote debugger. Has anyone else been able to install 2012 remote debugger on Windows server 2008 that is not R2? This is the full error message after I hit configure remote debugging. 回答1: According to VS 2012 system requirements remote debugging is not supported on Windows Server 2008. 回答2: At this MS forum post Brad Sullivan the Program Manager for Visual

No ASP.NET features shown in IIS 7.5

帅比萌擦擦* 提交于 2019-12-21 09:21:46
问题 I'm having an issue in IIS 7.5 where the ASP.NET feature section isn't showing on my web application. My environment: Windows 2008 R2 SP1, IIS 7.5 (7.5.7600), .NET Framework 4.0 My issue is similar to the issue posted here: No asp.net features on IIS 7.5, only my environment is different. The 'add features' fix mentioned in that post doesn't appear to work in Windows Server 2008, as I'm not seeing a simple "ASP.NET" feature that can be selected. I tried running the aspnet_regiis tool as

Service not accessible when “Enable 32-Bit Applications” set to true

无人久伴 提交于 2019-12-21 06:43:47
问题 On the development server I use IIS Veresion 7.5.7600.16385 And a Service compiled for .Net 4.5.1, Any CPU The service works fine on the development server (Win Server 2008 R2). On the client's production server however I get strange problems: (Same IIS Version, same OS version) As soon as I set "Enable 32-Bit Applications" the service's URL is no longer accessible in a browser . (Page not available) (I need the 32Bit mode because the service uses some legacy COM components) What may cause