Deployment

Process.GetProcesses common errors

Wednesday, 26 August 2009

Posted by Sébastien Lachance with Comments (0)

Here is a list of common errors I had while working with the System.Diagnostics.Process class. I listed all solutions that worked for me.

Couldn't connect to remote machine.

Solution 1 : Open MMC (Start/Run/mmc), add the Services snap-in and enter the name of the machine you are trying to connect to. This should give the exact reason it’s failing.

Solution 2 : The inner exception could give you more information.

Solution 3 : You need server permission.

Solution 4 : Common on Windows 7 and Vista, start the Remote Registry service.

The RPC server is unavailable

Solution : Turn on File and printer sharing and make sure the firewall is configured to allow access.

Access Is Denied

Solution : In case nothing worked out of Google, try this : Open Local Security Policy and make sure the “Set Network access: Sharing and security model for local accounts” to Classic.



Running a WCF Service in IIS 7

Monday, 24 August 2009

Posted by Sébastien Lachance with Comments (0)

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler.

Out of the box, you cannot run a WCF Service (.svc) in IIS7. Fortunately the solution is easy.

Open a command prompt and type :

"%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -r -y