1

Topic: Http 401 and 404 errors for css and js files

Hi,

I have installed FileManager on my development machine, where it works perfectly. But when I deploy to our production server, CSS and JS are not displayer due to 401 and 404 errors. All I see is strings like this:

{#common.directory}

Here is what Fiddler outputs:

# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
17 401 HTTP site /util/Editor/tinymce/plugins/filemanager/default.aspx?type=fm&page=index.html 341  text/html; charset=us-ascii iexplore:176   
18 302 HTTP site /util/Editor/tinymce/plugins/filemanager/default.aspx?type=fm&page=index.html 177 private   text/plain; charset=utf-8 iexplore:176   
19 401 HTTP site /util/Editor/tinymce/plugins/filemanager/css/default.aspx?type=fm&theme=fm&package=core_css 341  text/html; charset=us-ascii iexplore:176   
20 401 HTTP site /util/Editor/tinymce/plugins/filemanager/css/default.aspx?type=fm&theme=fm&package=index_css 341  text/html; charset=us-ascii iexplore:176   
21 401 HTTP site /util/Editor/tinymce/plugins/filemanager/js/default.aspx?type=fm&theme=fm&package=core 341  text/html; charset=us-ascii iexplore:176   
22 404 HTTP site /util/Editor/tinymce/plugins/filemanager/css/default.aspx?type=fm&theme=fm&package=core_css 4.028 private  Expires: Fri, 29 Apr 2011 14:31:01 GMT text/html; charset=utf-8 iexplore:176   
23 401 HTTP site /util/Editor/tinymce/plugins/filemanager/js/default.aspx?type=fm&theme=fm&package=filemanager 341  text/html; charset=us-ascii iexplore:176   
24 404 HTTP site /util/Editor/tinymce/plugins/filemanager/css/default.aspx?type=fm&theme=fm&package=index_css 4.029 private  Expires: Fri, 29 Apr 2011 14:31:01 GMT text/html; charset=utf-8 iexplore:176   
25 404 HTTP site /util/Editor/tinymce/plugins/filemanager/js/default.aspx?type=fm&theme=fm&package=core 4.021 private  Expires: Fri, 29 Apr 2011 14:31:01 GMT text/html; charset=utf-8 iexplore:176   
26 404 HTTP site /util/Editor/tinymce/plugins/filemanager/js/default.aspx?type=fm&theme=fm&package=filemanager 4.028 private  Expires: Fri, 29 Apr 2011 14:31:01 GMT text/html; charset=utf-8 iexplore:176   

Requests for *.css and *.js is denied and some reqeusts are even made to an unexisting path "/js/default.aspx?..." - how could this happen?

I am using Windows Server 2008 R2 64 bit, IIS 7,5 on both machines. I have tried disabling compression with no luck. I have even tried giving "Everyone" access to the plugin folder.

2

Re: Http 401 and 404 errors for css and js files

Hmm, strange wounder why they are denied could be some security module installed in the IIS. We have only tested the product on out of the box IIS installations. If you have some third party security module installed it might interfere with the normal operation of .NET.

Best regards,
Spocke - Main developer of TinyMCE

3

Re: Http 401 and 404 errors for css and js files

Hi spocke,

I just deleted all files and configurations, and redeployed MCFileManager and now it works again.

Another issues is, that my rootpath is point to a network drive, e.g. \\network\, and when I select a file, the "Link URL" (TinyMCE) is set to "../../undefined/". As far as I can read, it should support network files?

4

Re: Http 401 and 404 errors for css and js files

Yes, it should however you might need to configure the preview.wwwroot setting the length from that config option will be cropped away from the absolute file system path to produce an url.

Best regards,
Spocke - Main developer of TinyMCE