以前有一个变化与非asp.net文件的方式asp.net授权/认证的交易? [英] Has there been a change to the way asp.net authorization / authentication deals with non asp.net files?

查看:238
本文介绍了以前有一个变化与非asp.net文件的方式asp.net授权/认证的交易?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我在过去asp.net认证/授权的工作,我能记得它永远不会用于保护的.htm的.js .css文件(实际上,不是由asp.net ISAPI处理的任何文件DLL)。

Whenever I've worked with asp.net authentication / authorization in the past, I can remember that it never used to secure .htm .js .css files (actually, any file that isn't processed by asp.net isapi dll).

在做其他工作,而我现在已经回来用VS2010做一些web开发,这时候和现在正好相反。它看起来好像所有的文件被固定,因为我的登录页上的图像和.js文件不工作。

After a while of doing other work I've now come back to doing some web development, this time using VS2010 and now the opposite is true. It appears as if all files are secured because the images and .js files on my login page aren't working.

我的问题是,是我对asp.net如何非文件处理错了最初的假设?如果没有,什么时候这种变化发生的呢?以前有在VS2010开发服务器的变化,现在意味着所有文件都通过asp.net处理?

My question is, was my initial assumption about how non asp.net files are dealt with wrong? If not, when did this change happen? Has there been a change in the VS2010 development server that now means that all files are processed by asp.net?

非常感谢。

编辑补充:

我刚刚注意到,当我从本地IIS服务器上运行我的项目,非asp.net文件(如图像和.js文件)并不安全。不过,从VS开发服务器上运行,当他们。显然,这下到配​​置IIS和开发服务器之间的差异。这使我另一个问题..是有可能配置VS开发服务器?

I've just noticed that when I run my project from a local IIS server, non asp.net files (eg images and .js) are NOT secured. However, when run from the VS Development server they are. Clearly this down to configuration differences between IIS and the dev server. This leads me to another question.. Is it possible to configure the VS dev server?

推荐答案

没有事实并非如此。它是如何工作的defualt在IIS 6中(旧的),并在IIS7 +采用经典的管道,但它可以通过ASPNET ISAPI路由的所有内容进行更改。

No it wasn't. It is how it works by defualt in IIS 6 (an older) and in IIS7+ with classic pipeline but it can be changed by routing all content through aspnet isapi.

如果您使用集成管道IIS7 +或VS发展论坛的Web服务器(卡西尼)的所有请求都通过asp.net认证路由。

If you use integrated pipeline in IIS7+ or VS Developement Web server (Cassini) all requests are routed through asp.net authentication.

这篇关于以前有一个变化与非asp.net文件的方式asp.net授权/认证的交易?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆