Free Support Forum - groupdocs.com

Deploy groupdoc to remote machine


#1

I try to deploy the C# annotation sample project to the remote machine.

It works fine if I use local IIS on my PC, but if I deploy on remote machine using IIS on that, errors occur.

The error message is as follow.

Server Error in '/' Application.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

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.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

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:

[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
   System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
   System.Reflection.RuntimeModule.GetTypes() +9
   System.Reflection.Assembly.GetTypes() +143
   System.Data.Metadata.Edm.ObjectItemConventionAssemblyLoader.LoadTypesFromAssembly() +40
   System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load() +32
   System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData) +124
   System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors) +248
   System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +596
   System.Data.Metadata.Edm.ObjectItemCollection.ImplicitLoadAssemblyForType(Type type, EdmItemCollection edmItemCollection) +117
   System.Data.Metadata.Edm.MetadataWorkspace.ImplicitLoadAssemblyForType(Type type, Assembly callingAssembly) +149
   System.Data.Objects.ObjectContext.GetTypeUsage(Type entityCLRType) +49
   System.Data.Objects.ObjectContext.GetEntitySetFromContainer(EntityContainer container, Type entityCLRType, String exceptionParameterName) +68
   System.Data.Objects.ObjectContext.GetEntitySetForType(Type entityCLRType, String exceptionParameterName) +376
   System.Data.Objects.ObjectContext.CreateObjectSet() +62
   Groupdocs.Data.SaasposeDb.7emkfd5ern8cbx7yqhtumksr7nk7cp64   () +59
   Groupdocs.Data.EntitiesRepository`1..ctor(ISaasposeDb context) +105
   lambda_method(Closure , IArguments ) +113
   StructureMap.Construction.<>c__DisplayClass2.b__0(IArguments args) +27
   StructureMap.Construction.InstanceBuilder.BuildInstance(IArguments args) +15
   StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder) +125

[StructureMapException: StructureMap Exception Code: 207
Internal exception while creating Instance ‘Groupdocs.Data.MsSql.Account.UserRepository, Groupdocs.Web.Annotation, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null’ of PluginType Groupdocs.Core.IUserRepository. Check the inner exception for more details.]
StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder) +621
StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session) +147
StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance) +72
StructureMap.BuildSession.CreateInstance(Type pluginType) +23
StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
StructureMap.Pipeline.ConstructorInstance.Get(String propertyName, BuildSession session) +86
lambda_method(Closure , IArguments ) +52
StructureMap.Construction.<>c__DisplayClass2.b__0(IArguments args) +27
StructureMap.Construction.InstanceBuilder.BuildInstance(IArguments args) +15
StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder) +303
StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session) +147
StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance) +72
StructureMap.BuildSession.CreateInstance(Type pluginType) +23
StructureMap.Container.GetInstance() +147
Groupdocs.Web.Annotation.Security.AuthenticationService…ctor() +31
lambda_method(Closure , IArguments ) +60
StructureMap.Construction.<>c__DisplayClass2.b__0(IArguments args) +27
StructureMap.Construction.InstanceBuilder.BuildInstance(IArguments args) +15
StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder) +303
StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session) +147
StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance) +72
StructureMap.BuildSession.CreateInstance(Type pluginType) +23
StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
StructureMap.Pipeline.ConstructorInstance.Get(String propertyName, BuildSession session) +86
lambda_method(Closure , IArguments ) +52
StructureMap.Construction.<>c__DisplayClass2.b__0(IArguments args) +27
StructureMap.Construction.InstanceBuilder.BuildInstance(IArguments args) +15
StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder) +303
StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session) +147
StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance) +72
StructureMap.BuildSession.CreateInstance(Type pluginType) +23
StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
StructureMap.Pipeline.ConstructorInstance.Get(String propertyName, BuildSession session) +86
lambda_method(Closure , IArguments ) +52
StructureMap.Construction.<>c__DisplayClass2.b__0(IArguments args) +27
StructureMap.Construction.InstanceBuilder.BuildInstance(IArguments args) +15
StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder) +303
StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session) +147
StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance) +72
StructureMap.BuildSession.CreateInstance(Type pluginType) +23
StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
StructureMap.Pipeline.ConstructorInstance.Get(String propertyName, BuildSession session) +86
lambda_method(Closure , IArguments ) +56
StructureMap.Construction.<>c__DisplayClass2.b__0(IArguments args) +27
StructureMap.Construction.InstanceBuilder.BuildInstance(IArguments args) +15
StructureMap.Pipeline.ConstructorInstance.Build(Type pluginType, BuildSession session, IInstanceBuilder builder) +303
StructureMap.Pipeline.Instance.createRawObject(Type pluginType, BuildSession session) +87
StructureMap.Pipeline.Instance.Build(Type pluginType, BuildSession session) +50
StructureMap.Pipeline.ObjectBuilder.Resolve(Type pluginType, Instance instance, BuildSession session) +147
StructureMap.BuildSession.CreateInstance(Type pluginType, Instance instance) +72
StructureMap.BuildSession.CreateInstance(Type pluginType) +23
StructureMap.Container.GetInstance() +147
Annotation.Controllers.HomeController.Index() +31
lambda_method(Closure , ControllerBase , Object[] ) +79
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +242 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +39
System.Web.Mvc.Async.AsyncControllerActionInvoker.b__36(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +12
System.Web.Mvc.Async.WrappedAsyncResult2.CallEndDelegate(IAsyncResult asyncResult) +139 System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3c() +112 System.Web.Mvc.Async.<>c__DisplayClass45.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3e() +452 System.Web.Mvc.Async.<>c__DisplayClass30.<BeginInvokeActionMethodWithFilters>b__2f(IAsyncResult asyncResult) +15 System.Web.Mvc.Async.<>c__DisplayClass28.<BeginInvokeAction>b__19() +37 System.Web.Mvc.Async.<>c__DisplayClass1e.<BeginInvokeAction>b__1b(IAsyncResult asyncResult) +241 System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +111
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +19 System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__4(IAsyncResult asyncResult, ProcessRequestState innerState) +51 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +111
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009

#2

Hello,

We are sorry to hear that you have such issue. It seems that some assemblies are absent on the web-server after deploying. You can define what exact assembly is missing by checking the “LoaderExceptions” property in MS Visual Studio debugger.

GroupDocs.Annotation for .NET requires a set of specific assemblies for its work in different cases. Here is a list:


Necessary assemblies:
1. Microsoft.AspNet.SignalR.Core.dll
2. Microsoft.AspNet.SignalR.Owin.dll
3. Microsoft.AspNet.SignalR.SystemWeb.dll
4. Microsoft.Owin.Host.SystemWeb.dll
5. Owin.dll
6. StructureMap.dll
7. DocumentFormat.OpenXml.dll

Assemblies that are required when using SQL Server Compact:
1. sqlceca40.dll
2. sqlcecompact40.dll
3. sqlceer40EN.dll
4. sqlceme40.dll
5. sqlceoledb40.dll
6. sqlceqp40.dll
7. sqlcese40.dll
8. System.Data.SqlServerCe.Entity.dll
9. System.Data.SqlServerCe.dll

Assemblies that are required when using remote storage providers:
1. AWSSDK.dll
2. BoxSync.Core.dll
3. DropNet.dll
4. Microsoft.WindowsAzure.Storage.dll
5. Saaspose.GoogleCloud.dll