Actually I downloaded a demo project MgViewerExtension from link and try it on the "Sheboygan" sample in Autodesck Infrastructure Server Web Extension. It works kinda fine with the url "http://localhost/MgViewerExtension/default.aspx?La
The application encountered a problem and could not finish the operation you just requested properly.
If it\'s the first time you met this problem, try again or restart the application / session; otherwise, describe the steps to reproduce this problem to the server administrator for suggestions.
After I refresh the browser, it's works again. It's like sometimes it works sometimes not.
And then I created my own map and weblayout, The Map has one layer which is using the Oracle as the datasource. After change the weblayout and map definition in the code from
string webLayout = @"Library://Samples/Sheboygan/Layouts/SheboyganAsp
tring mapDef = @"Library://Samples/Sheboygan/Maps/Sheboygan.MapDe
string webLayout = @"Library://RealSuite/Layouts/MapLayout.WebLayout"
string mapDef = @"Library://RealSuite/Maps/RealSuiteMap.MapDefinit
When I run the url http://localhost/MgViewerExtension/default.aspx without any filter, it works fine. But when I run the url with layer and filter as
It gives me an error The map definition is invalid.
Do you have any idea what's happening here? All the code is the same except the two lines I mentioned above. I am totally a newbie in the mapguide development. If you can give some help, that would be perfect and I appreciate it.
Attached are the screenshots
Thank you very much.
the error doesn’t happen in the MgViewerExtention project, it happens in the file C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2013\www\mapviewernet\mapframe.aspx. Line105: map.Create(resourceSrvc, resId, mapName);
When I check the exception .Message and exception.StackTrace, It information is below:
The map definition is invalid.- MgMap.Create() line 328 file d:\build\ims2013\build_52.8\ent\os\common\mapguide
For Sheboycan there is no problem, but for our Map, it happens.
Is there any bug in AIMS 2013? should I use 2014?
Anybody have a example dynamically filtering the oracle spatial layer, or know where I can find one, I really appreciate.