Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
HttpContext not working in Worker Role Auzure . How can i found a file in worker role folder window auzure.

C#
string pathToParentFolder =System.Web.HttpContext.Current.Server.MapPath(Fulfillments);


Regards
Prince Kumar
Software Developer

Edit: Code formatted
Posted
Updated 18-Apr-12 1:19am
v2

1 solution

A Worker Role can be used outside of a web context so an HTTPContext is not valid unless you pass it to the role implementation.
 
Share this answer
 
Comments
nawabprince 18-Apr-12 8:32am    
then please tell me how can i implement folder and read file from folder

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900