正在跟人家弄一個C#的web application, 用IE訪問沒有問題, 登錄頁面和功能上算正常, 可是一到使用FF, opera的时候, 马上出现错误 (登录窗口也连不到), 错误如下:Server Error in '/csmstesting' Application.
Invalid file name for monitoring: 'D:\Inetpub\csmstesting\~unsecured'. File names for monitoring must have absolute paths, and no wildcards. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Invalid file name for monitoring: 'D:\Inetpub\csmstesting\~unsecured'. File names for monitoring must have absolute paths, and no wildcards.Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.请教一下是怎么回事 @_@
谢谢了!

解决方案 »

  1.   

    似乎是去掉文件或目录或url里的~符号How to handle "File names for monitoring must have absolute paths, and no wildcards." exeception   Jayakrishna Damarla 1:20 21 Oct '05   
     
     I'm working on aps.net and i got a security issue that exception will be thrown when we place "~" before subdirectory.How can i handle this?Plz help me out.
     
    --------------------
    Re: How to handle "File names for monitoring must have absolute paths, and no wildcards." exeception   Guffa 4:00 21 Oct '05   
     
     The ~ character is used as a wildcard in some cases.Is the folder named "~WebApplication1" or "WebApplication1"? If it is the later, just remove the ~ character. --------------------
    Re: How to handle "File names for monitoring must have absolute paths, and no wildcards." exeception   Jayakrishna Damarla 5:59 21 Oct '05   
     
     The folder is "WebApplication" only.The issue came while audit.I can't restrict them to enter ~ before directory.Is there any way to handle this type of request(say in global.asax.cs file) so that we can get it done.
     
    --------------------
    Re: How to handle "File names for monitoring must have absolute paths, and no wildcards." exeception   Dave Kreskowiak 7:54 21 Oct '05   
     
     Are they typing this in the the URL? Or are they entering this as some parameter on a form? ...?
     
    --------------------
    Re: How to handle "File names for monitoring must have absolute paths, and no wildcards." exeception   Jayakrishna Damarla 0:59 24 Oct '05   
     
     Yeah they are typing like that.They are testing by place tilde(~)symbol before directories in the url.
     
     
     
     
     
     
     
     
     
      
     
     
     
      

  2.   

    'D:\Inetpub\csmstesting\~unsecured'想到这是部署在远程web服务器上的程序了吗?或者你们的页面就是想窃取访问者本地(d:盘)的文件?
      

  3.   

    让路径看起来都是访问web服务器的url,这就这么简单的要求。