¡@

Home 

c# Programming Glossary: requestcontext

How do I route images using ASP.Net MVC routing?

http://stackoverflow.com/questions/1146652/how-do-i-route-images-using-asp-net-mvc-routing

public IHttpHandler GetHttpHandler RequestContext requestContext string filename requestContext.RouteData.Values filename as.. RequestContext requestContext string filename requestContext.RouteData.Values filename as string if string.IsNullOrEmpty.. filename return a 404 HttpHandler here else requestContext.HttpContext.Response.Clear requestContext.HttpContext.Response.ContentType..

Ninject + MVC3 is not injecting into controller

http://stackoverflow.com/questions/14343388/ninject-mvc3-is-not-injecting-into-controller

RequestContext requestContext Type controllerType 67 InvalidOperationException An error occurred.. RequestContext requestContext Type controllerType 182 System.Web.Mvc.DefaultControllerFactory.GetControllerInstance.. RequestContext requestContext Type controllerType 80 System.Web.Mvc.DefaultControllerFactory.CreateController..

How do I mock the HttpContext in ASP.NET MVC using Moq?

http://stackoverflow.com/questions/1452418/how-do-i-mock-the-httpcontext-in-asp-net-mvc-using-moq

has an overrride of the Initialize that get's this requestContext. I am trying to pass this along but I am not doing something.. override void Initialize System.Web.Routing.RequestContext requestContext base.Initialize requestContext Where can I get more information.. requestContext base.Initialize requestContext Where can I get more information on mocking my RequestContext..

Argh! Why does System.Web.Mvc.HandleErrorInfo get passed to my views?

http://stackoverflow.com/questions/1997396/argh-why-does-system-web-mvc-handleerrorinfo-get-passed-to-my-views

at System.Web.Mvc.ControllerBase.Execute RequestContext requestContext at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute.. RequestContext requestContext at System.Web.Mvc.MvcHandler.ProcessRequest HttpContextBase..

HttpContext.Current.Session is null when routing requests

http://stackoverflow.com/questions/218057/httpcontext-current-session-is-null-when-routing-requests

public IHttpHandler GetHttpHandler RequestContext requestContext if m_CheckPhysicalUrlAccess UrlAuthorizationModule.CheckUrlAccessForPrincipal.. m_VirtualPath requestContext.HttpContext.User requestContext.HttpContext.Request.HttpMethod.. m_VirtualPath requestContext.HttpContext.User requestContext.HttpContext.Request.HttpMethod throw new SecurityException..

URL Routing across multiple subdomains

http://stackoverflow.com/questions/3243045/url-routing-across-multiple-subdomains

override VirtualPathData GetVirtualPath RequestContext requestContext RouteValueDictionary values Implement your formating Url formating..

How can I prevent EF “The context cannot be used while the model is being created” errors?

http://stackoverflow.com/questions/6099781/how-can-i-prevent-ef-the-context-cannot-be-used-while-the-model-is-being-create

at MyApp.MyAppBaseController.Initialize RequestContext requestContext in C Users KallDrexx Documents Projects MyApp MyApp MyAppBaseController.cs.. 23 at System.Web.Mvc.ControllerBase.Execute RequestContext requestContext at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute.. RequestContext requestContext at System.Web.Mvc.MvcHandler. c__DisplayClass6. c__DisplayClassb...

Cannot Inject Dependencies into ASP.NET Web API Controller using Unity

http://stackoverflow.com/questions/9527988/cannot-inject-dependencies-into-asp-net-web-api-controller-using-unity

CreateController System.Web.Routing.RequestContext requestContext string controllerName Type controllerType base.GetControllerType.. Type controllerType base.GetControllerType requestContext controllerName return IController _container.Resolve controllerType..

Setting the httpcontext current session in unit test

http://stackoverflow.com/questions/9624242/setting-the-httpcontext-current-session-in-unit-test

RouteCollection MvcApplication.RegisterRoutes routes var requestContext new Mock RequestContext requestContext.Setup x x.HttpContext.. routes var requestContext new Mock RequestContext requestContext.Setup x x.HttpContext .Returns context.Object context.Setup.. request.Setup req req.RequestContext .Returns requestContext.Object requestContext.Setup x x.RouteData .Returns new RouteData..

How do I route images using ASP.Net MVC routing?

http://stackoverflow.com/questions/1146652/how-do-i-route-images-using-asp-net-mvc-routing

IRouteHandler public IHttpHandler GetHttpHandler RequestContext requestContext string filename requestContext.RouteData.Values..

Ninject + MVC3 is not injecting into controller

http://stackoverflow.com/questions/14343388/ninject-mvc3-is-not-injecting-into-controller

69 System.Web.Mvc.DefaultControllerActivator.Create RequestContext requestContext Type controllerType 67 InvalidOperationException.. System.Web.Mvc.DefaultControllerActivator.Create RequestContext requestContext Type controllerType 182 System.Web.Mvc.DefaultControllerFactory.GetControllerInstance.. RequestContext requestContext Type controllerType 80 System.Web.Mvc.DefaultControllerFactory.CreateController..

How do I mock the HttpContext in ASP.NET MVC using Moq?

http://stackoverflow.com/questions/1452418/how-do-i-mock-the-httpcontext-in-asp-net-mvc-using-moq

protected override void Initialize System.Web.Routing.RequestContext requestContext base.Initialize requestContext Where can I get.. Where can I get more information on mocking my RequestContext and HttpContext using Moq I am trying to mock cookies and the..

Unit Test HTTPRequest Headers with ServiceStack

http://stackoverflow.com/questions/14790695/unit-test-httprequest-headers-with-servicestack

var mockCtx new Mock IRequestContext mockCtx.SetupGet f f.AbsoluteUri .Returns localhost 1337 player.. MyOtherDependencies new Mock IMyOtherDeps .Object RequestContext mockCtx.Object HttpResult response HttpResult service.Post new..

Argh! Why does System.Web.Mvc.HandleErrorInfo get passed to my views?

http://stackoverflow.com/questions/1997396/argh-why-does-system-web-mvc-handleerrorinfo-get-passed-to-my-views

at System.Web.Mvc.ControllerBase.Execute RequestContext requestContext at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute.. RequestContext requestContext at System.Web.Mvc.MvcHandler.ProcessRequest HttpContextBase..

HttpContext.Current.Session is null when routing requests

http://stackoverflow.com/questions/218057/httpcontext-current-session-is-null-when-routing-requests

checkPhysicalUrlAccess public IHttpHandler GetHttpHandler RequestContext requestContext if m_CheckPhysicalUrlAccess UrlAuthorizationModule.CheckUrlAccessForPrincipal..

URL Routing across multiple subdomains

http://stackoverflow.com/questions/3243045/url-routing-across-multiple-subdomains

routeData public override VirtualPathData GetVirtualPath RequestContext requestContext RouteValueDictionary values Implement your formating..

Mock HttpContext.Current in Test Init Method

http://stackoverflow.com/questions/4379450/mock-httpcontext-current-in-test-init-method

FakeHttpContext null var context new ControllerContext new RequestContext httpContext new RouteData controller controller.ControllerContext.. username var context new ControllerContext new RequestContext httpContext new RouteData controller controller.ControllerContext..

How can I prevent EF “The context cannot be used while the model is being created” errors?

http://stackoverflow.com/questions/6099781/how-can-i-prevent-ef-the-context-cannot-be-used-while-the-model-is-being-create

at MyApp.MyAppBaseController.Initialize RequestContext requestContext in C Users KallDrexx Documents Projects MyApp.. line 23 at System.Web.Mvc.ControllerBase.Execute RequestContext requestContext at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute.. RequestContext requestContext at System.Web.Mvc.MvcHandler. c__DisplayClass6...

Asp.net mvc override OnException in base controller keeps propogating to Application_Error

http://stackoverflow.com/questions/6324368/asp-net-mvc-override-onexception-in-base-controller-keeps-propogating-to-applica

new ErrorController errorController.Execute new RequestContext new HttpContextWrapper Context routeData c# asp.net mvc 2..

Setting the httpcontext current session in unit test

http://stackoverflow.com/questions/9624242/setting-the-httpcontext-current-session-in-unit-test

routes var requestContext new Mock RequestContext requestContext.Setup x x.HttpContext .Returns context.Object.. .Returns new Uri http www.google.com request.Setup req req.RequestContext .Returns requestContext.Object requestContext.Setup x x.RouteData..