First look at MapSurfer.NET - Bremen example

108 views
Skip to first unread message

Piotr Czabański

unread,
Jan 28, 2017, 7:19:49 PM1/28/17
to MapSurfer.NET
I've try to run Bremen example base on version 2.5.1 - Nancy on start but it fails:

Aplikacja: MSNNancySH.exe
Wersja architektury: v4.0.30319
Opis: proces został przerwany z powodu nieobsłużonego wyjątku.
Informacje o wyjątku: System.IO.IOException
   w MapSurfer.Web.Hosting.AssemblyLoader.GetMSNInstallPath()
   w MapSurfer.Web.Hosting.AssemblyLoader.LoadAssembly(System.String)
   w MapSurfer.Web.Hosting.AbstractMapService.Load()
   w MapSurfer.Web.Hosting.Nancy.WebApplicationService..ctor()
   w DynamicClass.lambda_method(System.Runtime.CompilerServices.Closure, System.Object[])
   w Nancy.TinyIoc.TinyIoCContainer.ConstructType(System.Type, System.Type, System.Reflection.ConstructorInfo, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)

Informacje o wyjątku: Nancy.TinyIoc.TinyIoCResolutionException
   w Nancy.TinyIoc.TinyIoCContainer.ConstructType(System.Type, System.Type, System.Reflection.ConstructorInfo, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer+SingletonFactory.GetObject(System.Type, Nancy.TinyIoc.TinyIoCContainer, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer+SingletonFactory.GetFactoryForChildContainer(System.Type, Nancy.TinyIoc.TinyIoCContainer, Nancy.TinyIoc.TinyIoCContainer)
   w Nancy.TinyIoc.TinyIoCContainer.GetParentObjectFactory(TypeRegistration)
   w Nancy.TinyIoc.TinyIoCContainer.ResolveInternal(TypeRegistration, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer.ConstructType(System.Type, System.Type, System.Reflection.ConstructorInfo, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)

Informacje o wyjątku: Nancy.TinyIoc.TinyIoCResolutionException
   w Nancy.TinyIoc.TinyIoCContainer.ConstructType(System.Type, System.Type, System.Reflection.ConstructorInfo, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer+SingletonFactory.GetObject(System.Type, Nancy.TinyIoc.TinyIoCContainer, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer.ResolveInternal(TypeRegistration, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w System.Linq.Enumerable+WhereSelectEnumerableIterator`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
   w System.Linq.Enumerable+<CastIterator>d__94`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
   w Nancy.Routing.RouteCache.BuildCache(System.Collections.Generic.IEnumerable`1<Nancy.INancyModule>)
   w Nancy.Routing.RouteCache..ctor(Nancy.INancyModuleCatalog, Nancy.INancyContextFactory, Nancy.Routing.IRouteSegmentExtractor, Nancy.Routing.IRouteDescriptionProvider, Nancy.Culture.ICultureService, System.Collections.Generic.IEnumerable`1<Nancy.Routing.IRouteMetadataProvider>)
   w DynamicClass.lambda_method(System.Runtime.CompilerServices.Closure, System.Object[])
   w Nancy.TinyIoc.TinyIoCContainer.ConstructType(System.Type, System.Type, System.Reflection.ConstructorInfo, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)

Informacje o wyjątku: Nancy.TinyIoc.TinyIoCResolutionException
   w Nancy.TinyIoc.TinyIoCContainer.ConstructType(System.Type, System.Type, System.Reflection.ConstructorInfo, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer+SingletonFactory.GetObject(System.Type, Nancy.TinyIoc.TinyIoCContainer, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer.ResolveInternal(TypeRegistration, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer.ConstructType(System.Type, System.Type, System.Reflection.ConstructorInfo, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)

Informacje o wyjątku: Nancy.TinyIoc.TinyIoCResolutionException
   w Nancy.TinyIoc.TinyIoCContainer.ConstructType(System.Type, System.Type, System.Reflection.ConstructorInfo, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer+SingletonFactory.GetObject(System.Type, Nancy.TinyIoc.TinyIoCContainer, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer.ResolveInternal(TypeRegistration, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer.ConstructType(System.Type, System.Type, System.Reflection.ConstructorInfo, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)

Informacje o wyjątku: Nancy.TinyIoc.TinyIoCResolutionException
   w Nancy.TinyIoc.TinyIoCContainer.ConstructType(System.Type, System.Type, System.Reflection.ConstructorInfo, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer+SingletonFactory.GetObject(System.Type, Nancy.TinyIoc.TinyIoCContainer, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer.ResolveInternal(TypeRegistration, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer.ConstructType(System.Type, System.Type, System.Reflection.ConstructorInfo, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)

Informacje o wyjątku: Nancy.TinyIoc.TinyIoCResolutionException
   w Nancy.TinyIoc.TinyIoCContainer.ConstructType(System.Type, System.Type, System.Reflection.ConstructorInfo, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer+SingletonFactory.GetObject(System.Type, Nancy.TinyIoc.TinyIoCContainer, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer.ResolveInternal(TypeRegistration, Nancy.TinyIoc.NamedParameterOverloads, Nancy.TinyIoc.ResolveOptions)
   w Nancy.TinyIoc.TinyIoCContainer.Resolve[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]()
   w Nancy.Bootstrapper.NancyBootstrapperBase`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SafeGetNancyEngineInstance()

Informacje o wyjątku: System.InvalidOperationException
   w Nancy.Bootstrapper.NancyBootstrapperBase`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SafeGetNancyEngineInstance()
   w Nancy.Bootstrapper.NancyBootstrapperBase`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetEngine()
   w Nancy.Hosting.Self.NancyHost..ctor(Nancy.Bootstrapper.INancyBootstrapper, Nancy.Hosting.Self.HostConfiguration, System.Uri[])
   w MapSurfer.Web.Hosting.Nancy.Program.Main(System.String[])


So I take IIS, Went well according to instructions - only sometimes the error occurs:

P1: w3wp.exe
P2: 8.5.9600.16384
P3: 5215df96
P4: mscorlib
P5: 4.6.1087.0
P6: 583e5c1a
P7: 3c15
P8: 19
P9: System.ObjectDisposedException
P10: 

After connecting to local service by ThinkGeo client there is a difference in map:




I've look into logs files.

I have no idea why there is a some other language then English and Polish in stack trace, for example:


Time: 29/01/2017 00:40:16
Thread: 
Message:
  Cannot access a disposed object.
Object name: 'The stream with Id 0ebe542f-e1f5-4397-92ab-371107ac6ec9 and Tag  is disposed.'.
Source:
  MapSurfer.System
StackTrace:
     at Microsoft.IO.RecyclableMemoryStream.颍锌硬꧐셇맦ᕘ()
   at Microsoft.IO.RecyclableMemoryStream.ToArray()
   at MapSurfer.Data.Tiling.Caching.MetaTileWriterExtensions.ToArray(IMetaTileWriter writer, MetaTile metaTile)
   at MapSurfer.Data.Tiling.Caching.BaseMetaTileDiskTileCache.SetMetaTile(MetaTile metaTile)
   at 㡑臥㣨䞜墂懮㭔䟣.㫬䁿Ⴡ쀤ꦸ몍﯂㮴(MetaTile ㎛㶂䞄鬥鳒ஞ)
TargetSite:
  Void 颍锌硬꧐셇맦ᕘ()
Level: Error
-------------------------------------------------------------------------------

Does anyone have a clue? How to discover the root cause?


Piotr


Runge

unread,
Feb 13, 2017, 8:26:02 AM2/13/17
to MapSurfer.NET
Hi Piotr,

Sorry for my late reply.

Thanks for reporting a bug.
Next few days, I will take a close look at the issue and let you know.

Best,
Max
Reply all
Reply to author
Forward
0 new messages