ThreadPool.QueueUserWorkItem NullReferenceException
Why am I getting this error. My variables get names from the request and also I tried "data.qext" but visual studio was giving me an error.
I got a test.pdf file in my WebsiteRoot / uploads / files / test.pdf but still there is an error. Maybe I missed something?
Check image for detailed description: http://prntscr.com/7wnid
+3
Novkovski Stevo Bato
source
to share
1 answer
You can try this method instead HttpContext.Current.Server.MapPath
:
System.Web.Hosting.HostingEnvironment.MapPath()
Thus, there is no need for HttpContext
.
+2
Leniel Macaferi
source
to share