This project is read-only.

How to call external dll in MVC 3

Jan 6, 2014 at 10:21 AM
Edited Jan 6, 2014 at 10:21 AM
I am having a problem to implement external dll in MVC 3.
OrderController.cs

public ActionResult Index()
    {
        ORDER objOrder = new ORDER();
        objOrder.GroupOrderId = "18974";
        var lstOrderSearch = OrderObject.GetChildOrderIdsList(objOrder.GroupOrderId);
        return View(lstOrderSearch);

    }
    private Order.Core.IOrder _order;
    public Order.Core.IOrder OrderObject
    {
        get { return _order; }
        set { _order = value; }
    }
Global.aspx

externalBlogRoute.DataTokens = new RouteValueDictionary(
            new
            {
                namespaces = new[] { "ExternalAssembly.Controllers" }
            });

        routes.Add("BlogRoute", externalBlogRoute);
        routes.MapRoute(
             "Default",
            "{controller}/{action}/{id}",
            new { controller = "Order", action = "Index", id = UrlParameter.Optional },
            new[] { "ExternalAssembly.Controllers" }  
        );

It thowing Error

An exception of type 'System.NullReferenceException' occurred in SorceCode.dll but was not handled in user code
Jan 7, 2014 at 11:41 AM
This is the wrong place to ask your question about ASP.NET MVC. The page is for the ASP.NET MVC Forum project, please try the ASP.NET MVC project page