Tuesday, March 13, 2012

Server.Mappath

Server.MapPath("...") has suddenly stopped working. The intelli-sensedoesn't kick in. Even while doing a Request...it doesn't work. When Itype in Dim sss as .... it kicks in.
What do I do?

Close VS and re-open it , it could workWink [;)]

You can probably use the Server.MapPath event if Intellisense suddenly disappears. You can post this behaviour as a bug to theMSDN Feedback center


Actually it was my mistakeEmbarrassed [:$]
I had a file that was NOT an aspx file. It was just a class. So I had to add the following statement.
Imports System.web.HttpContext

0 comments:

Post a Comment