windows-server-2008

PHP mail will not send from Windows Server 2008

老子叫甜甜 提交于 2019-12-01 21:38:00
I have two servers. One (linux) will send mail fine using the script below. The second (windows server 2008) sends nothing. <?php mail ( "nobody@email.com", "Contact Us Form", "This is an email from your site", "From: nobody@email.com" ) ?> mail() works very different on linux and windows. On Linux it pipes your mail to the sendmail binary, which does all the work On windows it actually needs to act as an MTA to pass the mail off to another application. On windows your best bet is to set the SMTP information so PHP can hand off the mail to another server which will take care of final delivery.

Issue with Query String Parameter Length. Http Error 400

独自空忆成欢 提交于 2019-12-01 13:23:13
Can anyone please tell me issue with my URL:- http://www.advantarealty.net/Search//Condo,Single-Family-Home,Townhome_PropertyType/True_ForMap/8_Zoom/-81.3043212890625T29.099376992628493,-80.88134765625T28.9120147012556,-80.826416015625T28.41555985166584,-81.1669921875T28.033197847676377,-81.6888427734375T28.033197847676377,-82.1392822265625T28.222130007158537,-82.2601318359375T28.584521719370418,-82.1612548828125T28.92163128242129,-81.9305419921875T29.257648503615542,-81.6339111328125T29.248063243796576,-81.6064453125T28.849485201023,-81.3043212890625T29.099376992628493_Polygon/ I'm getting

R base package grid does not produce output

痴心易碎 提交于 2019-12-01 11:36:19
I am running 64-bit R 2.15.0 on a Windows Server 2008 R2 Amazon EC2 instance. grid does not produce output. For example, the following code should produce a single diagonal line in a device window: grid.newpage() l <- linesGrob() grid.draw(l) I, however, see nothing. Is there a flag or option I should be using on Windows Server 2008 R2 to enable grid output? EDIT: Another reproducible example that works on my home (Windows 7 x64) and work PCs (Windows XP): library(grid) library(png) img.path <- system.file("img", "Rlogo.png", package="png") bg <- readPNG(img.path) background <- rasterGrob

Powershell Excel Automation - Save/Open fails in Scheduled Task

北战南征 提交于 2019-12-01 09:38:13
问题 I created a simple powershell script that will create an excel instance and save a workbook: $excel = New-Object -ComObject Excel.Application $workbook = $excel.Workbooks.Open("C:\Test\foo.xls") $workbook.SaveAs("C:\Test\bar.xls") # cleanup code ... When I run this from powershell directly it works fine. I created a scheduled task that runs it, and when I have the option set that will "Run only when the user is logged in" then it will run fine. When I change this option to run whether the

Can't see the errors on classic asp sites

℡╲_俬逩灬. 提交于 2019-12-01 08:40:34
问题 There are sites that I am trying to migrate from Windows 2003 Server to 2008. Some of the sites shows blank pages when I visit them. Obviously there are errors but I can't see anything. I already enabled client side errors and detailed error pages but no luck. Any idea ? 回答1: So just to make sure you did all of this: In IIS under Debugging Properties you set: Send Errors to Browser to True . In IIS under Error Pages you set the settings to Detailed Errors . Give write permissions on the

Elmah, convert to .Net4 vs2010, run on server 2008, does not work

こ雲淡風輕ζ 提交于 2019-12-01 08:23:57
So I've been using elmeh forever. I've got an app I've recently converted to MVC3 .net4, and vs2010, and it's developed on a server 2008 box (as opposed to my other apps developed on an XP box). I set up elmah normally and it does not work... I've got a reference to ELMAH.dll already, it's in my CommonDLLs folder. I add the sectiongroups <sectionGroup name="elmah"> <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" /> <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" /> <section name="errorMail"

Buliding Windows Phone 7 projects on Windows Server 2008

a 夏天 提交于 2019-12-01 04:14:00
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 integration and centralized builds are essential. I'd be hoping we wouldn't have to set up an additional

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

和自甴很熟 提交于 2019-12-01 03:17:33
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 via Remote Desktop). If I set the task to run as another user, or set the task to run when the user is

Sendmessage from NT Service to remote desktop session

ぐ巨炮叔叔 提交于 2019-12-01 01:21:08
How can i send a sendmessage & postmessage from nt service to an application which launched in a remote desktop session? currently i temporarily solved this problem via udp communications between applications. You cannot send messages across session boundaries. So you need an IPC solution like TCP/IP, sockets, named pipes etc. Make a program that does a sendmessage/postmessage: program sendit; uses converters; begin exitcode:=sendmessage(covert1(paramstr(1)),convert2( .... etc end. Then run it in the right session with CreateProcessAsUser. You can wait ( WaitForSingleObject ) for the program

DirectoryEntry.NativeObject throws access denied for a user in Administrators group in windows 2008

末鹿安然 提交于 2019-12-01 00:59:10
I have a local user, which is member of Administrators local group. When I run this code: using System; using System.DirectoryServices; namespace nanttest { class Program { public static void Main(string[] args) { using(DirectoryEntry entry = new DirectoryEntry("IIS://localhost/W3SVC")) { object absobject = entry.NativeObject; Console.WriteLine("Name: {0}", entry.Name); } Console.Write("Press any key to continue . . . "); Console.ReadKey(true); } } } I receive: Unhandled Exception: System.Runtime.InteropServices.COMException (0x80070005): Access is denied. at System.DirectoryServices