1
FileUltimate not runnning with .Net 4.7 Forms-authentication
Question asked by sprandel - 11/4/2019 at 7:09 AM
Answered
Hello,

We are currently trying to evaluate FileUltimate to use it in our application. After integrating it into the page and defining a root folder we are having issues with accessing our folders. No matter which folder we choose, we always get 

401 Error {"Message":"Fehler bei Authentifizierung.","StackTrace":null,"ExceptionType":"System.InvalidOperationException"} as a javascript popup as a result from calling the filemanager.ashx.

We tried setting Username and Password of our local windows user, "Impersonate=true",  "Authenticated User=Windows" but nothing helped. We are using ASP.NET 4.0 web-forms and forms-authentication with .NET Framework 4.7. The shipped samples from the installation are working well, only within our application it is not running.

Any idea on how to fix it?
Thanks in advance,
Sven




2 Replies

Reply to Thread
0
sprandel Replied
The problem seems to be inside our rewriteModule UrlRewritingNet.Web.UrlRewriteModule
As soon as we disable this module, the component works.

How does the rulle need to look like in order to make it work behind the rewriteModule?
thanks,
Sven
0
Cem Alacayir Replied
Employee Post Marked As Answer
Here is a rule that stops rules for GleamTech handlers (this is for Microsoft's UrlRewrite module but the idea is same):

<rewrite>
    <rules>
        <rule name="Stop Rewriting for GleamTech Handlers" stopProcessing="true">
            <match url="(resource|filemanager|fileuploader|documentviewer)\.ashx" />
            <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.

Reply to Thread