2

Any idea on this error? Im using vs 2013 and this comes in when I try to execute Server.Transfer("index.aspx", true); where the index page is wrapped in a master page.

Exception:Caught: "Invalid file name for file monitoring: 'somefolderpath\MasterPages'. Common reasons for failure include: - The filename is not a valid Win32 file name. - The filename is not an absolute path. - The filename contains wildcard characters. - The file specified is a directory. - Access denied." (System.Web.HttpException) A System.Web.HttpException was caught: "Invalid file name for file monitoring: 'folderpath\MasterPages'. Common reasons for failure include: - The filename is not a valid Win32 file name. - The filename is not an absolute path. - The filename contains wildcard characters. - The file specified is a directory. - Access denied."

Nagaraj S
  • 13,316
  • 6
  • 32
  • 53
Sri
  • 283
  • 2
  • 6
  • 15

1 Answers1

1

Try using this one: Server.Transfer(Server.MapPath("index.aspx"), true);

Jacob
  • 3,598
  • 4
  • 35
  • 56
  • 1
    nop.. no luck.. I also tried Server.Transfer(Server.MapPath("index.aspx"), true); and not it says `Exception:Thrown: "Invalid path for child request` – Sri Sep 17 '14 at 06:21