500 Error on Gleamtech js and css files
Problem reported by Mark Hetherington - August 31 at 2:32 AM
Resolved

I have just upgraded FileUltimate to the latest version and while it works fine running it through Visual Studio when I move it to production the place where fileultimate is supposed to load is blank and doesn't display. Looking further I get 500 messages on the following files.

/resource.ashx/636687137980000000/fu/css/fileultimate.css:1 Failed to load resource: the server responded with a status of 500 ()
all2.css:1
ext.js:1 
/resource.ashx/636687131770000000/gt/library/ext/theme-gray/all1.css:1
localization.js:1

Any one else getting this problem or have a solutions/suggestions?

 

 

 

5 Replies

Reply to Thread
0
Cem Alacayir Replied
Employee Post
Hi
This seems to be a writing permission problem on the temporary folder.
 
  1. Add the IUSR, Network Service (and your other Windows accounts which your app pool uses) to IIS_IUSRS group
  2. Run iisreset in Administrator Command Prompt so that the change takes in effect.
 
This will grant permissions to “Temporary ASP.NET Files” folder as IIS_IUSRS group already has access to it.
0
Cem Alacayir Replied
Employee Post
For future reference, it turned out this specific HTTP 500 problem was caused by the user's own rules in Web.Config for URL Rewrite Module of IIS.
 
The solution is to add a top rule to prevent this:
<rewrite>
    <rules>
        <rule name="Stop handler rewrite" stopProcessing="true">
            <match url=".*" />
            <conditions>
                <add input="{REQUEST_FILENAME}" pattern="\.ashx$" />
            </conditions>
            <action type="None" />
        </rule>
    </rules>
.
.
.
</rewrite>
 
Add this rule to the top of the rules and when the request is .ashx, it will stop processing your other rules so that the .ashx request passes through and works.
0
Hi Cem,
 
Unfortunately while this rule seems to allow the library to render properly and you can see the files whenever you try to open a file or download a file it comes up with an error. This rule also seems to prevent the loading of other resources that are built into the site. (i.e. images)
 
Any ideas?
 
Many Thanks
 
Mark
0
Cem Alacayir Replied
Employee Post
Hi Mark,
Try this more specific rule instead:
 
<rewrite>
    <rules>
        <rule name="Stop Rewriting for GleamTech Handlers" stopProcessing="true">
            <match url="(resource|filemanager|fileuploader|documentviewer)\.ashx" />
            <action type="None" />
        </rule>
        .
        .
        .
    </rules>
</rewrite>
 
0
Hi Cem,
Thank you for your quick response. I have applied this at it appears to be working. I will continue to test and let you know if there are any further issues.
Many Thanks for your assistance
Mark

Reply to Thread