Using the following C# code: using System; using Microsoft.Web.Administration; namespace getftpstate { class Program { static void Main(string[] args) { ServerManager manager = new ServerManager(); foreach (Site site in manager.Sites) { Console.WriteLine("name: " + site.Name); Console.WriteLine("state: " + site.State); Console.WriteLine("----"); } } } } I get the following output: C:\projects\testiisftp\getftpstate\getftpstate\bin\Debug>getftpstate.exe [...] read more
I am trying to programmatically get my site status from IIS to see if it's stopped, but I kept getting the following error, > The object identifier does not represent a valid object. (Exception from > HRESULT: 0x800710D8) The application is using ServerManager Site class to access the site status. [...] read more
I'm trying to get the state of an IIS 7.5 application pool using Microsoft.Web.Administration API, but get an exception: System.Runtime.InteropServices.COMException was unhandled ErrorCode=-2147020584 HResult=-2147020584 Message=The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8) Source=Microsoft.Web.Administration I connect to a remote machine in a different domain using the [...] read more
I am trying to read the status of a site using Servermanager. Basically this is what I have, var serverManager = new ServerManager(siteInstance.Server.ConfigPath); var site = serverManager.Sites.FirstOrDefault(x => x.Id == Convert.ToInt64(siteInstance.IisIdentifier)); return site.State.ToString(); I am able to read the config file and site details without any issue. But the status [...] read more
What is the correct way to create a web site using the MSBuild Extension Pack? I'm trying to use the MSBuild Extension Pack to create a web site using the following target. Unfortunately I don't have the syntax correct. This target will throw an exception saying "InvalidOperationException: The specified path [...] read more
Infrastructure We have 4 webservers (WEB1-4). We have Shared Configuration turned on on all those webservers to a shared network path (\\fs100\Config\Web - Config). Problem From time to time, a random webserver stops getting updates from the Shared Configuration. We can solve it by restarting the whole webserver (but we [...] read more
I have an intranet web application developed using C# and .NET and it is hosted on our own internal webserver running IIS 8.5. I have it set up the application pool to use the built in account ApplicationPoolIdentity and this works fine. However I need the application to be able [...] read more
I have written a PowerShell script block for creating IIS app pool and website on Azure Virtual Machine Scale Set multiple instances, while the script block runs parallel, I get the error The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8), can someone help? Resetting IIS [...] read more
Trying to automate ftp site manipulation on IIS7.5, through powershell, but I can't start the ftp site. Everything else, so far, I succeeded. PS IIS:\Sites> Get-ChildItem | Where {$_.Name -eq "FtpData"} Name ID State Physical Path Bindings ---- -- ----- ------------- -------- FtpData 3 Stopped D:\Services\_Empty ftp *:80: PS IIS:\Sites> [...] read more
I have a StreamSocketListener registered in a background task. When it receives a request the Run method starts. The first time it runs well, the second time I get that error: > O identificador de objeto não representa um objeto válido. (Exception from > HRESULT: 0x800710D8) The complete code is: [...] read more
I would like to create a web site in IIS that hosts a WCF service using net.tcp binding. Since there is no need for the http binding, I would like to remove this. However, if I remove the http binding (and leave only the net.tcp binding) from the IIS manager, [...] read more
We have a win 2012/IIS 8.5 web farm up and running using a shared config. All was working great on the servers and we would create a site on one server and it would go across them all. We run into an issue with the servers and had to change [...] read more
I want to allow the user on a Windows 7 PC only to run programs which are certificated by me (I used openSSL to create a self-made pem/cer resp. pfx file) I sign the files with Microsoft SignTool.exe. This works like a charm, all my exe files show that they [...] read more
I have asp.net application to send FAX using FAXServer using FAXCOMEXLib.dll I am getting COMException (0x800710D8): Operation failed. I know one workaround to set application pool identity. but which user i have to set as application identity that don't know. For windows application with same code,I am not getting any [...] read more