iis-docs
iis-docs copied to clipboard
Code example does not compile, missing code
Specifically, it appears sample was taken from a larger code example. This sample does not compile due to missing _serviceProxy and TestDemoModuleServiceProxy, both are not named intuitively enough to direct a user to other documentation.
_serviceProxy = (TestDemoModuleServiceProxy) Connection.CreateProxy(Module, typeof(TestDemoModuleServiceProxy));
I did a github search for this line of code and for TestDemoModuleServiceProxy specifically and nothing came up, so the larger example does not exist in github. Google reports only the docs site with this code, so the example doesn't exist anywhere.
I would suggest any and ALL examples on docs be in a state that can easily be copied and pasted into a program, or have a full example available for review on Github, or download as a zip from the docs site.
The examples on docs are few and far between so it is extremely important that the ones do exist actually are functional.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: b1a03ce6-1091-a9ff-6632-b25fc166323d
- Version Independent ID: 1c52f8ef-e025-3414-6011-433cccab5b1b
- Content: Binding Class (Microsoft.Web.Administration)
- Content Source: iis-dotnet/xml/Microsoft.Web.Administration/Binding.xml
- Product: iis
- GitHub Login: @dotnet-bot
- Microsoft Alias: soshir
"are not named intuitively enough to direct a user to other documentation"
They are in fact following the IIS Manager extension manner very well, and sure they come from a big project (similar to https://github.com/phpmanager/phpmanager).
Usually you should use ServerManager.Sites to get started,
https://docs.microsoft.com/en-us/dotnet/api/microsoft.web.administration.servermanager.sites?view=iis-dotnet