With the new structure I get no errors, but I also don't get a new web site...
Is there a problem now that the IISVirtualDir is not associated with a feature?
Here's the code and a bit of the install log file:
Is there a problem now that the IISVirtualDir is not associated with a feature?
Here's the code and a bit of the install log file:
, new Dir(@"AdminWeb\"
, new IISVirtualDir
{
Name = "MyWebApp",
AppName = "Test",
WebSite = new WebSite("NewSite", "*:8080"),
WebAppPool = new WebAppPool("MyWebApp", "Identity=applicationPoolIdentity")
}
, new Files(featAdminWeb, @"..\SetupIPAV\AdminWebSitePublish\*.*")
)
Info: Cannot access session details from a non-immediate custom action
ActionStart: Action 8:56:46: StartIIS7ConfigTransaction. Starting IIS Config Transaction
ActionStart: Action 8:56:46: RollbackIIS7ConfigTransaction. Rolling back IIS Config Transaction
ActionStart: Action 8:56:46: CommitIIS7ConfigTransaction. Committing IIS Config Transaction
ActionStart: Action 8:56:46: ConfigureIIs7Exec. Configuring IIS
ActionStart: Action 8:56:46: WriteIIS7ConfigChanges. Installing Config Keys and Values
With the original structure. I get an error in the log on installation: , new Dir(@"AdminWeb\"
, new File(featAdminWeb, @"..\SetupIPAV\AdminWebSitePublish\Global.asax"
, new IISVirtualDir
{
Name = "MyWebApp",
AppName = "Test",
WebSite = new WebSite("NewSite", "*:8080"),
WebAppPool = new WebAppPool("MyWebApp", "Identity=applicationPoolIdentity")
}
)
, new Files(featAdminWeb, @"..\SetupIPAV\AdminWebSitePublish\*.*", s => !s.EndsWith("Global.asax"))
)
Info: Cannot access session details from a non-immediate custom action
ActionStart: Action 8:52:45: StartIIS7ConfigTransaction. Starting IIS Config Transaction
ActionStart: Action 8:52:46: RollbackIIS7ConfigTransaction. Rolling back IIS Config Transaction
ActionStart: Action 8:52:46: CommitIIS7ConfigTransaction. Committing IIS Config Transaction
ActionStart: Action 8:52:46: ConfigureIIs7Exec. Configuring IIS
ActionStart: Action 8:52:46: WriteIIS7ConfigChanges. Installing Config Keys and Values
Info: WriteIIS7ConfigChanges: Error 0x80070002: Site not found for create application
Info: WriteIIS7ConfigChanges: Error 0x80070002: Failed to configure IIS application.
Info: WriteIIS7ConfigChanges: Error 0x80070002: WriteIIS7ConfigChanges Failed.
Info: CustomAction WriteIIS7ConfigChanges returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Info: Action ended 08:52:46: InstallFinalize. Return value 3.