I've just downloaded and installed this package into our umbraco test site - 4.5.2.
I get the following error which has taken the whole site down! Any ideas how to get it back or what went wrong?
Server Error in '/' Application.
Could not load file or assembly
'Our.Umbraco.GoogleMaps' or one of its dependencies. This assembly is
built by a runtime newer than the currently loaded runtime and cannot be
loaded.
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.BadImageFormatException:
Could not load file or assembly 'Our.Umbraco.GoogleMaps' or one of its
dependencies. This assembly is built by a runtime newer than the
currently loaded runtime and cannot be loaded.
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.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Our.Umbraco.GoogleMaps' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[BadImageFormatException: Could not load file or assembly 'Our.Umbraco.GoogleMaps' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
[ConfigurationErrorsException: Could not load file or assembly 'Our.Umbraco.GoogleMaps' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54
System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +600
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
System.Web.Compilation.BuildManager.CompileCodeDirectories() +265
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +320
[HttpException (0x80004005): Could not load file or assembly 'Our.Umbraco.GoogleMaps' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729
[HttpException (0x80004005): Could not load file or assembly 'Our.Umbraco.GoogleMaps' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8897659
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259
Yeah, the latest version (v2) is for Umbraco v4.7+ ... (it does say this on the project page) ... since you're using v4.5.2 - you'll need a previous version (v1.2).
Any idea how I can get back in to the site? I still have this server error all over the front and back end, so I can't do anything at all in Umbraco!
Also, on the right of the screen, the green panel where you download the file says "Compatible with v4.5.x" so I assumed that was the right version! I see the note now on the left, but maybe it would be helpful for the place where the file is downloaded to say the same thing!
Now I'm having problems with being asked for a Google Maps API key - I set this up when I installed the package (even though I thought google maps didn't require API keys any more??), but it's still asking for it.
Description: HTTP 404. The resource you are looking
for (or one of its dependencies) could have been removed, had its name
changed, or is temporarily unavailable. Please review the following URL
and make sure that it is spelled correctly.
Not sure what happened to the "Config.aspx" - last time I used v1.2 there was a "places.config", which I had to edit manually on the filesystem.
You're right about no longer needing an API key, but that only applies to V3 of the API - which the reason we re-wrote the data-type (v2). So the v1.2 version still uses Google Maps V2 - thus requires an API key.
OK - so I've found that file and verified that the API key is there - and it is. But I'm still being asked for the Google Maps API key whenever I load a page in the Content Tree which contains the map datatype.
After a bit of fiddling, it seems that the "www.domain" and "domain" are treated as different so two records are required in the config file to allow the map to display in both.
Installation error
I've just downloaded and installed this package into our umbraco test site - 4.5.2.
I get the following error which has taken the whole site down! Any ideas how to get it back or what went wrong?
Server Error in '/' Application.
Could not load file or assembly 'Our.Umbraco.GoogleMaps' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
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.BadImageFormatException: Could not load file or assembly 'Our.Umbraco.GoogleMaps' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
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.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Our.Umbraco.GoogleMaps' could not be loaded.
Stack Trace:
Hi Allan,
Yeah, the latest version (v2) is for Umbraco v4.7+ ... (it does say this on the project page) ... since you're using v4.5.2 - you'll need a previous version (v1.2).
It is available in the archive files section: http://our.umbraco.org/projects/backoffice-extensions/google-maps-datatype#fileArchive
Cheers, Lee.
Hi Lee
Any idea how I can get back in to the site? I still have this server error all over the front and back end, so I can't do anything at all in Umbraco!
Also, on the right of the screen, the green panel where you download the file says "Compatible with v4.5.x" so I assumed that was the right version! I see the note now on the left, but maybe it would be helpful for the place where the file is downloaded to say the same thing!
Thanks
Allan
Hi Allan,
Yes, sorry meant to say this earlier - just delete the "Our.Umbraco.GoogleMaps.dll" from your /bin folder.
About the "Compatible with v4.5" text ... that's beyond the packager developer's control - our only options are v4.0 or v4.5. :-(
Cheers, Lee.
Thanks Lee - that got me back working again!
Now I'm having problems with being asked for a Google Maps API key - I set this up when I installed the package (even though I thought google maps didn't require API keys any more??), but it's still asking for it.
Any in the Content Section, when I go to a page with the datatype, it links me to http://www.clubnet.org.uk/umbraco/plugins/FergusonMoriyama/place/Config.aspx - this gives:
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.Requested URL: /umbraco/plugins/FergusonMoriyama/place/Config.aspx
Any ideas why this is, and how to fix it?
Thanks
Allan
Hi Allan,
Not sure what happened to the "Config.aspx" - last time I used v1.2 there was a "places.config", which I had to edit manually on the filesystem.
You're right about no longer needing an API key, but that only applies to V3 of the API - which the reason we re-wrote the data-type (v2). So the v1.2 version still uses Google Maps V2 - thus requires an API key.
Cheers, Lee.
OK - so I've found that file and verified that the API key is there - and it is. But I'm still being asked for the Google Maps API key whenever I load a page in the Content Tree which contains the map datatype.
Any ideas?
Thanks
Allan
Seems that the domain/hostname isn't matching what is in the places.config?
After a bit of fiddling, it seems that the "www.domain" and "domain" are treated as different so two records are required in the config file to allow the map to display in both.
is working on a reply...