Questions tagged [web-administration]

Microsoft's API for administering IIS in .NET.

The Microsoft.Web.Administration API:

contains classes that a developer can use to administer IIS Manager. With the classes in this namespace, an administrator can read and write configuration information to ApplicationHost.config, Web.config, and Administration.config files.

The classes in the Microsoft.Web.Administration namespace contain a series of convenient top-level objects that allow the developer to perform administrative tasks. The different logical objects available include sites, applications, application pools, application domains, virtual directories, and worker processes. You can use the API to obtain and work with the configuration and state of these objects and to perform such actions as creating a site, starting or stopping a site, deleting an application pool, recycling an application pool, and even unloading application domains.

80 questions
0
votes
0 answers

"Send Errors to Browser" with Microsoft.Web.Administration?

I can't seem to find any documentation or help on enabling the "Send Errors to Browser" property in Classic ASP configuration of an IIS site that I added programmatically via Microsoft.Web.Administration. Can anyone help? It is inside the classic…
Mathias Lykkegaard Lorenzen
  • 15,031
  • 23
  • 100
  • 187
0
votes
0 answers

Powershell WebAdministration module Restart-WebAppPool failing

Specific problem: I'm calling Restart-WebAppPool with the name of a web application pool that verifiably exists. When I execute that command in the context of a script it errors with Cannot find path 'IIS:\AppPools\AppPoolName' because it does not…
cori
  • 8,666
  • 7
  • 45
  • 81
0
votes
2 answers

How to configure 32-bit IIS websites or applications using PowerShell cmdlets

I am trying to change the location of the ASP.NET temporary files so that I can clean them up during the release of a new version. Because it is very hard to find the location of the ASP.NET temporary files for a specific website, application of…
CarlR
  • 1,718
  • 1
  • 17
  • 21
0
votes
1 answer

Error running web administration tool for asp.net

I want to run web administration tool to set roles for different users. I have ran the IIS Express from the cmd using the following command: "C:\Program Files\IIS Express\iisexpress.exe"…
Dania
  • 1,648
  • 4
  • 31
  • 57
0
votes
1 answer

Can not restore Microsoft.Web.Administration

Trying to download and run a demo asp.net 5 application, Music Store. https://github.com/aspnet/MusicStore >dnu restore This causes the following error: Restoring packages for E:\Dev\MusicStore\src\MusicStore\project.json Updating the invalid lock…
Ryan Langton
  • 6,294
  • 15
  • 53
  • 103
0
votes
1 answer

Why can't I access the security section in web admin to edit my user roles?

I have been going in circles trying to fix this. This is the error message I receive... There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be…
Shauna91
  • 19
  • 2
0
votes
0 answers

0x80070032 "The request is not supported" error when enumerating a WMI WebAdministration class

I'm trying to enumerate and query a WMI WebAdministration class in remote machines. This is a code sample in C#, but same operation can be done from CIM Studio or WMI Tester tool ManagementScope scope = new ManagementScope(); scope.Path = new…
eranfu
  • 55
  • 1
  • 9
0
votes
1 answer

Custom PowerShell Object Property Issue

I'm attempting to create a custom PowerShell object using data from the WebAdministration module for IIS7. The object should capture the ClientIPAddress and SiteID from the GetExecuteRequest WmiMethod for Worker Processes in IIS. $p = Get-WmiObject…
Robert
  • 1
  • 1
0
votes
1 answer

PowerShell Invoke-Command asks for type

I need to add an application pool remotely and I was trying to use the following: $script = { Import-Module WebAdministration; New-Item IIS:\AppPools\$IRTPoolName; } Invoke-Command -ComputerName $targetName -ScriptBlock $script -credential…
0
votes
1 answer

c# How to add Application to Site with network directory

I have a problem where adding Application to IIS Site with network physical path. In code: using Microsoft.Web.Administration; ... ServerManager serverManager = new ServerManager(); var site = serverManager.Sites.Where(i => i.Name ==…
0
votes
1 answer

How to create a custom error page whenever an unexpected event occurs on a site with php?

I am developing with PHP on an Apache web server. I would like to know if there's a way to force the server to serve a custom error page whenever any of the following events occurs: The page the user is looking for does not exist (I would like to…
tonix
  • 6,671
  • 13
  • 75
  • 136
0
votes
2 answers

How to Get Site ID and site status in IIS 7 using Web Administration C#

I need help in getting site ID and Status on IIS7 using Web Administration. I have this code private string getSiteIdByName(string siteName) { DirectoryEntry root = getDirectoryEntry("IIS://" + textServer.Text + "/W3SVC"); …
0
votes
1 answer

Should I reference assemblies from the WinSxS folder?

I want to use the Microsft.Web.Administration.dll Assembly. On my Windows 7 the file is located only in the folder c:\windows\winsxs. Why is the assembly in this folder and is it reccomended to reference from there?
gsharp
  • 27,557
  • 22
  • 88
  • 134
0
votes
1 answer

Trouble Connecting Neo4j Web Administration to My Data

I have loaded a bunch of data into the data base in my java application. However, when I start the Web Administration server, all I can see is the default 1 node, 1 relationship. How do I (point?) this server to the data files I specified in the…
0
votes
1 answer

Web Administration Tool database with IIS

I have created a website for my university that requires membership. I used the web administration tool from Visual Studio and created Users and Rules.When i test it from Visual Studio it works fine. The Web Administration Tool automatically creates…