Thanks again for the tutorials in Razor.
I'm now trying to use the controls in my project but can't get it to work. This is the error I get:
Unhandled exception at line 1, column 1 in
http://localhost:54891/Scripts/MindFusion.Diagramming.js0x800a1391 - Microsoft JScript runtime error: 'Type' is undefined
I've compared the tutorial project to mine, but can't find what I'm missing. I could possibly use the tutorial project for my starting point and import all my old files into it, don't want to, because the tutorial was build with MVC3.
This is what I've done to try to make it work:
- Started an MVC 4 Web application.
- Added these lines to my web.config in the views folder:
<add namespace="MindFusion.Diagramming" />
<add namespace="MindFusion.Drawing" />
<add namespace="MindFusion.Diagramming.Mvc" />
- Added MindFusion.Diagramming.js to my Scripts folder.
- Added the following 2 lines to my _Layout.cshtml file:
<script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/MindFusion.Diagramming.js")" type="text/javascript"></script>
- Added references to these dll's"
MindFusion.Common
MindFusion.Diagramming
MindFusion.Diagramming.Mvc
MindFusion.Graphs
MindFusion.Scripting
Please let me know what else I should do to get your controls working in my project. Thanks