我必须对用户进行身份验证(基本身份验证)才能针对数据源访问None .aspx文件。我找到了文章并为.aspx文件做了它,但是一旦我尝试将它用于我的文件**通过将文件扩展名添加到 IIS 作为 MIME 或压缩类型文件,身份验证窗口会一直显示并且不会停止。
我应该怎么办?
P.S.1. I cannot change the authentication method with form auth or something else.
P.S.2. I cannot change my file type with ".aspx"
P.S.3. URL Re-Writing didn't solve the problem
P.S.4. I added handler to web.config to show the IIS that the new file extention is a script
<handlers>
<add name="NEW FORMAT" path="*.NXX" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule"
scriptProcessor="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll"
resourceType="Either" requireAccess="Script" preCondition="classicMode,runtimeVersionv4.0,bitness64" />
</handlers>