This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, I have an administration website to manage the customer facing website. I'd like to incorporate some code in the admin website to check whether the database schema is up to date and if not, prompt the administrator to upgrade the schema. At the same time, the customer facing website should also check whether the schema is up to date and present the customer with a friendly page that the system is being upgraded. The first question is whether the migration assemblies are redistributable, i.e. can be used without LS being installed. Secondly, when I did this, I started to get errors related to the DB2 assemblies not being available. This prevents the website from being started. Have you tried this before and if so, how did you make it work? Note that I'm using Bootstrapper, Unity, AutoMapper and Quartz amongest other frameworks in an ASP.NET MVC 3 website running on Microsoft.NET 4.0 on Windows Server 2008 R2. Any help will be much appreciated. Thanks, PS Hope you guys are enjoying the rugby.
|
|
|
Yes, the migration assemblies can be run without running the LightSpeed installer. I'll ask one of our Web guys to chime in on the DB2 issue. I have seen this in some of our tests, and the workaround is to delete the IBM.DB2 assembly out of the bin directory (ASP.NET apparently tries to eagerly resolve soft dependencies, and considers missing immediate dependencies acceptable but missing indirect dependencies an error -- go figure). But I'm pretty sure our Web chaps don't run into this during normal use. It's also possible one of your Reflection-based tools might be scanning into dependencies, which would trigger a load of the DB2 assembly. |
|
|
Hi Ivan, Do you have any update on the issue? I'd like to check whether the database is up to date when I start the website. I am not referencing DB2 in my projects. According to IBM its best for the assemblies to be installed. My tests warn me that a number of other assemblies, which I do not have installed, is missing when it deploys the test assembly. This includes Npgsql, IBM.Data.DB2,VistaDB.4,System.Data.SQLite and Oracle.DataAccess. I have no intent to install these assemblies in production as I am not using those databases. I'm also not too keen to remove Bootstrapper, Unity and MEF from my projects. Thanks, Werner |
|
|
Hi Werner, Our Web guys tell me that they don't see this happening and they're not sure how to reproduce it. They're asking what you're using to deploy the Web site. You don't need to deploy things like the DB2, Npgsql, VistaDB, SQLite or Oracle.DataAccess DLLs if you're not going to use them, but I think the VS Publish mechanism defaults to including even indirectly referenced DLLs, which causes problems for ASP.NET's additional compile step because it now thinks those DLLs are needed. Does your tool give you a way to exclude DLLs from deployment? |
|