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
|
I'm trying to use LightSpeed 4 on Azure. I have a vanilla MVC3 project to which I have added a basic model, config, and the LightSpeedControllerBase. I have configured LS in config and have kept the Medium Trust Compatibility set to false. In the worker role I set the enableNativeCodeExecution attribute to be true, even though it is supposedly true by default. As far as I can tell this should be fine for using LS with its optimisations but the web role fails to start upon deployment. I even took the approach of progressively adding features and making changes to find the point at which the deployment failed. Any thoughts? |
|
|
Are you sure you've set all dependent assemblies to copy local? (I didn't need to touch medium trust settings or the other flag you mentioned.) http://stackoverflow.com/questions/5055654/problem-deploying-my-application-to-azure If that doesn't do it you'll need to enable diagnostics and check the logs. There are many new features here beyond the SO post; check the docs. |
|
|
I used the add deployable assemblies option from VS2012 SP1. Update: I'm still investigating but whenever I set the LS context in config the deployment fails - getting stuck in a loop. Moving that to code avoids the problem. I'm trying to track this down. |
|
|
Let us know what you find. If you are able to send through a repro then we can have a look at we can have a bit more of a poke at this end.
|
|
|
Sorry, been away in Queenstown for a week. Back in Welly. I'm just testing some scenarios with the latest version of Azure tools. I have noticed some differences between:
I'll get back to you soon. :) |
|
|
I think I have it. When I add Mindscape.LightSpeed.Web (so I can use the LS controller base) it introduces a dependency on MVC 2.0.0.0. I can reproduce this in the local dev fabric by uninstalling MVC 2. Fusion tells me this:
What's odd is that I use a bindingRedirect to force MVC 3.
But it still wants to use MVC 2. Any ideas? |
|
|
Did you add the redirect to both web.config files? There's another one in the Views directory. |
|
|
I've added the redirect to both web.config files and an added WaIISHost.exe.config. The same issue of the MVC 2 reference comes up. I'm running out of ideas, other than to create my own LightSpeedBaseController. |
|
|
Wow, what a journey! When I added the View's web.config I neglected to provide the xmlns attribute of the Thanks to everyone who helped me get the bottom of this. |
|