For protect download files purposing I created http handler liket this: public void ProcessRequest(HttpContext context)
I need to fake HttpContext.Current.Application table in order to access it from my unit tests. I need to store my data somewhere. I thought that I can just pass instance of NameValueCollectionBase b
I\'m writing an attribute where I want to access a method on the class that the controller that has the attribute on one of its actions derives from. That\'s quite a mouthful, so let me explain:
I had a web service which I converted to wcf service with the same asmx extension. I have basicHttpbinding since my service talks to various clients like java, perl etc.
This is kind of a hard question to formulate. I\'m wondering how HttpContext.Current gets assigned a unique instance for every request considering 开发者_开发百科it\'s a static object?
Bit of a long shot, but is there a way in ASP.NET to dynamically get the website\'s URL (http://www.example.com) when there is no HttpContext.Current available.
I\'m using C#4.0 and i need to unit test a service. The function inside the service returns a path similar to the variable i called expected, this is the path i\'m expecting to get back. But when i ru
I\'m not talking about hosting ASP.NET with the \'ApplicationHost\' class. For example, if I create a Console application, create a valid HttpContext object and pass it to the ProcessRequest of a cust
I have got problem with contextInfo [WebMethod] [SoapHeader(\"UserInfo\", Direction = SoapHeaderDirection.In)]
I have an asp.net app. It has a page that requires authentication. The authenticated user can view the page because he/she is authenticated. The page makes a jQuery Ajax call to a WCF service. The WCF