Hi there!
Actually, it's a good news and good news. The issue with uncertain target Framework version can be resolved relatively easily. If worse comes to worst, you can always fall back on the
Cassini Configuration API, which resides in the "c:\Program Files\UltiDev\Cassini Web Server for ASP.NET 1.1\UltiDevCassiniServerConfiguration.dll" and lets you force any given framework version setting down Cassini's throat.
You could do that in additional custom build step right after the application registration. To create the custom action you would need to add a reference to UltiDevCassiniServerConfiguration.dll and add an Installer class to any of the non-web application projects in the solution (or add a new class library project), override Install method and put something like this in it:
Code:public override void Install(System.Collections.IDictionary stateSaver)
{
base.Install(stateSaver);
Guid myAppID = new Guid("<you application GUID goes here>");
CassiniConfiguration.Metabase metabase = CassiniConfiguration.Metabase.Load();
CassiniConfiguration.ApplicationEntry myAppSettings = metabase.FindApplication(myAppID);
myAppSettings.FrameworkVersion = "1.1";
metabase.Save();
}
Then add the project where your Installer class resides as a custom action step in the Install sequence and you are all set.
However, before you do all this please make sure that you really have to. The thing is, if you use UltiDevCassiniServerConfiguration.dll from the Cassini 1.1 set for the registration and unregistration steps as they described in the Cassini Developer's Guide, there is a chance MS Installer will run it inside the Framework 1.1. We are not sure what determines which version of the Framework gets instantiated by the MS Installer. It could be version of CLR the UltiDevCassiniServerConfiguration.dll was built for, which would be great if it is becasue none of the custom programming described above would be required. But the version of CLR may also be detemined by the version of Visua Studio used to build a setup package. If so, the stuff described easlier in this post will be required.
Since regular application registration step will be required anyway, please just strat with the standard registration routine as described in the Cassini Developer's Guide. If you check the Cassini Explorer after the installation and see that your app is registered for CLR 2.0, then prceed to adding (or replacing altogether the standard registration) with the extra installation step that will adjust target CLR version.
Regarding the instructions on how to create a Visual Studio 2005 prerequisite for UltiDev Cassini 1.1, we'll pu it in the next post as we need a little bit of time to put it together.
Regards,
UltiDev Team.
Please donate at
http://www.ultidev.com/products/Donate.aspx to help us improve our products.