This is a migrated thread and some comments may be shown as answers.

hi

2 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vishnu
Top achievements
Rank 1
Vishnu asked on 10 Oct 2011, 11:27 AM

I tried this line,

System.Web.HttpContext.Current.Server.MapPath()

But it gives following error,

Object reference not set to an instance of an object.

Can u plz tell me how to solve this problem ?

2 Answers, 1 is accepted

Sort by
0
Vinkel
Top achievements
Rank 1
answered on 10 Oct 2011, 01:01 PM
See no conection in telerik, friend, ask on mikrosoft asp.net forum.

-J
0
Jayesh Goyani
Top achievements
Rank 2
answered on 10 Oct 2011, 01:13 PM
Hello,

System.Web.HttpContext.Current.Server.MapPath("Your folder/file name/path");

http://stackoverflow.com/questions/885268/object-reference-not-set-to-an-instance-of-an-object

http://hspinfo.wordpress.com/2008/05/30/use-httpcontext-and-servermappath-in-a-c-class-library/

for more info serach in http://forums.asp.net/

Thanks,
Jayesh Goyani
Tags
General Discussions
Asked by
Vishnu
Top achievements
Rank 1
Answers by
Vinkel
Top achievements
Rank 1
Jayesh Goyani
Top achievements
Rank 2
Share this question
or