I just upgraded a Lightswitch application that is called from an ASP.NET website. I can run the application from the "browse on port 80" option in IIS 7.5. on the server (2008 R2). But when I try to run it externally, I get the following error:
Server Error in '/EditInspectionData' Application.
The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
1) Unable to find any implementation of the contract: 'Microsoft.LightSwitch.BaseServices.Logging.Internal.ILoggingService'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
1) Unable to find any implementation of the contract: 'Microsoft.LightSwitch.BaseServices.Logging.Internal.ILoggingService'
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
1) Unable to find any implementation of the contract: 'Microsoft.LightSwitch.BaseServices.Logging.Internal.ILoggingService' ] Microsoft.VisualStudio.ExtensibilityHosting.VsExportProviderService.GetServiceFromCache(VsExportProvisionScope scope, VsExportSharingPolicy policy) +305 Microsoft.LightSwitch.Framework.Server.DefaultPageBase.LogDefaultClientNameMissingError() +148 Microsoft.LightSwitch.Framework.Server.DefaultPageBase.Page_Load(Object sender, EventArgs e) +377 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408