Invalid file name for monitoring

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!
I have an application that runs great under framework 1.0 but when I upgrated it to framework 1.1 I started to get the following error: Invalid file name for monitoring: 'c:\inetpub\wwwroot\MyApp\http:'. File names for monitoring must have absolute paths, and no wildcards.
System.Web.HttpException: Invalid file name for monitoring: 'c:\inetpub\wwwroot\VR\http:'. File names for monitoring must have absolute paths, and no wildcards.
The strange thing about it is that the error only comes when I search in a database and I populate-ing a couple of ascx pages. My application uses the microsoft.web.ui.webcontrols but I'm not sure wheather that is the reason or what! I found out that when I reached the following line in my code then the error was thrown:

_args.AdditionalInfo = System.Configuration.ConfigurationSettings.AppSettings["Member"];

so I threw out all of the Configsetting in web.config file, but that does not seem to matter at all! the exception í thrown at the end of the function that searches for the member. I could save the application by telling the app to run under the framework 1.0, but now I have to use the 1.1 but Iðm stuck.

Can anyone help me, please I'm not in the posistion to rewrite the application!

Best regards VEV
 
Ok for those of you out there who are experience the same problem the solution for me was simple.....when you know it

In my Code there was a function tha did the following

Context.RewritePath(Request.Url.ToString() + "?userketa=" + _member.MemberSSN);

The Request.Url is not needed any more in there, in stead I put the page name there f.ex. Dafaul.aspx.

If you ar experiendce this problem you should search for code in your project that uses Server.Mappath or some functions that have something to do with the url, Redirect etc.
 
Back
Top