简体   繁体   中英

httpcontext.current.server.mappath returning wrong path

I have used

"httpcontext.current.server.mappath"

about 2 years ago which never gave me any problem in any deployment till now.

Now I have deployed to a new windows server IIS.

The above statement has been returning, my local machine path.

I could not make out why?

Can anybody throw some light!!!

在此处输入图片说明

I understood your concern and giving better solution as per my knowledge.

Please go to your local machine ( C:\\Users\\Admin\\AppData\\Local\\Temp ) delete all the files from that and try to build again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM