kevinsea / dsc-generator Goto Github PK
View Code? Open in Web Editor NEWPowerShell Desired State Configuration (DSC) Generator
License: GNU General Public License v3.0
PowerShell Desired State Configuration (DSC) Generator
License: GNU General Public License v3.0
Hello
I have compiled code and am trying to run the DCS Generator on Win 2012 R2 IIS 8.5 with default settings.
PowerShell Version 5 is running.
It runs and immediately pop up error box System.TypeInitializationException
I was able to get that it hits at IISObjectFactory.cs Line 16.
The generator run fine when select the bottom box 'Generate IIS Windows Features'
It only errors when I select 'Generate IIS Sites and Pools' with any of the sub button checked.
Thanks a Million,
Brian
See image below. Looking at the web server, all I can figure is that these are "old" sites that are no longer in use. In fact, they aren't showing up in IIS or in the website directories at all so.... how are these being created or where are they coming from?
In the meantime I'm going to go through and manually pull all these lines out of the generated DSC code.
When I run on one of our servers I get only one feature exported:
WindowsFeature IIS_Feature # Correct PowerShell command not present, settting IIS Base
{
Name = "Web-Server"
Ensure = "Present"
}
What does Correct PowerShell command not present, settting IIS Base
mean? Is some Powershell version required which I don't have?
Using version: 2.1.1
After quite a bit of troubleshooting I think I've finally got it paired down to where the error is actually coming from. I've screenshot the full error output below in case you'd like to see it.
Here below is the bit of configuration that seems to be causing the error. When trying to run the configuration sequentially, this seems to be the culprit at least.
xWebSite AddressValidationTest_Site
{
Name = "AddressValidationTest"
Ensure = "Present"
State = "Started"
ApplicationPool = "AddressValidationTest"
PhysicalPath = "D:\Websites\AddressValidation" # This folder must already exist
LogPath = $logFilePath # overriding "D:\websites\logs\LogFiles"
DependsOn = "[xWebAppPool]AddressValidationTest_Pool"
BindingInfo =
@(
MSFT_xWebBindingInformation
{
Protocol = "http"
Port = "80"
IPAddress = "xxx.xxx.xxx.161"
}
MSFT_xWebBindingInformation
{
Protocol = "http"
Port = "80"
IPAddress = "xxx.xxx.xxx.161"
}
)
AuthenticationInfo =
MSFT_xWebAuthenticationInformation
{
}
}
Hi,
I built the code and copied the exe to a windows 2008 box and tried to create dsc configuration for IIS and it throws below error. i tried going through the code and find the issue but so far no success. Could you please look in to it.
Filename: redirection.config
Error: Cannot read configuration file
I'm pretty new to coding and building solutions but I can't seem to get the solution to build into anything. I just get a bunch of errors. Are there some instructions somewhere for getting this to build?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.