This project has moved and is read-only. For the latest updates, please go here.

Error: 'MvcMaps' is undefined


i'm trying to use MvcMaps in my project but this error appear in the page
when i debug this error i found this line
var B3836484 = null;$(function(){B3836484=new MvcMaps.BingMap('divB3836484',{id:'B3836484'});});</script>
i'm using jquery and .net frame work 3.5 with mvc2
i test all that setting in an empty project it worked
but in my project won't work


wajhi wrote Apr 13, 2011 at 10:03 AM

I faced a similar issue. it could be case the resource javascript files are not getting loaded properly. you need to check the included in html. to fix the issue you just need to update the following line WebUtils.cs file return "/" + (string)_getWebResourceUrlMethod.Invoke(null,
            new object[] { Assembly.GetAssembly(typeof(T)), resourceName, false, false, null }); I post fixed a "/" before resource and it worked. 

wrote Feb 14, 2013 at 3:52 AM