Last post Jul 04, 2014 11:40 AM by MetalAsp.Net
Jul 04, 2014 05:41 AM|misuk11|LINK
Im getting an ide error
Unknown type HttpContextWrapper
but Im using and referencing system.web (.net 3.5)
var context = new HttpContextWrapper(System.Web.HttpContext.Current);
bit confused as to why, anyone help ?
Jul 04, 2014 05:43 AM|MetalAsp.Net|LINK
In .net 3.5 it's in System.Web.Abstractions.dll.
Edit: in case it's not clear, you need to add a reference to this dll.
Jul 04, 2014 06:39 AM|misuk11|LINK
That worked thanks, I have another problem though
var routeData = RouteTable.Routes.GetRouteData(context);
routeData is null despite being able to see all the routes available in the route table, any idea why that could be ?
Jul 04, 2014 11:40 AM|MetalAsp.Net|LINK
Please create a new thread with this issue since it's different from the original one.