Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Strange problem in asp.net 2.0 (work in 1.1)

Reply
Thread Tools

Strange problem in asp.net 2.0 (work in 1.1)

 
 
Allen Harkleroad
Guest
Posts: n/a
 
      05-21-2009
Hi,

I have a strange problem. We develop CMS solutions and in our asp.net 1.1
version I can restrict downloads by mapping the file extension to the 1.1
aspnet_isapi DLL, I also restrict the folder containing the restricted
download files to prevent direct access to them. I am winning Server 2003
with IIS 6, both 1.1 and 2.0 are installed properly (we have both 1.1 and
2.0 sites running.



However we migrated our CMS to 2.0 and all is well and works properly except
the fact that when I map the file extension to the 2.0 aspnet_isapi DLL in
IIS and restrict the folder as I did in 1.1 logged in users get a timeout
trying to download the fie, non-logged in users of course get our access
denied/login as they should.



If I remove the mapping them any user (non-logged in and logged in) can
access and download the file.



In the web.config (Content is the folder containing restricted files (*.zip
mapped in IIS).



<location path="Content">

<system.web>

<authorization>

<allow roles="Admins"/>

<allow roles="Editors"/>

<allow roles="Subscribers"/>

<deny users="*" />

</authorization>

</system.web>

</location>



Is there a change in asp.net 2.0 from 1.1 that I missing? The same routine
works perfectly in our asp.net 1.1 version.


 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      05-21-2009
There is a document of breaking changes from .NET 1.1 to .NET 2.0. I am not
sure if this is one of them. If I can find the link (the old one is broken
now as GotDotNet.com is no longer a supported site), I will post it.

Perhaps a google search. Thus far I have found:

http://learn.iis.net/page.aspx/381/a...ges-on-iis-70/

http://mvolo.com/blogs/serverside/ar...ated-mode.aspx

The original(s) were a Word doc and a CHM file.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box! |
*************************************************


"Allen Harkleroad" <allen _ mvp at msn dot com> wrote in message
news:##...
> Hi,
>
> I have a strange problem. We develop CMS solutions and in our asp.net 1.1
> version I can restrict downloads by mapping the file extension to the 1.1
> aspnet_isapi DLL, I also restrict the folder containing the restricted
> download files to prevent direct access to them. I am winning Server 2003
> with IIS 6, both 1.1 and 2.0 are installed properly (we have both 1.1 and
> 2.0 sites running.
>
>
>
> However we migrated our CMS to 2.0 and all is well and works properly
> except the fact that when I map the file extension to the 2.0 aspnet_isapi
> DLL in IIS and restrict the folder as I did in 1.1 logged in users get a
> timeout trying to download the fie, non-logged in users of course get our
> access denied/login as they should.
>
>
>
> If I remove the mapping them any user (non-logged in and logged in) can
> access and download the file.
>
>
>
> In the web.config (Content is the folder containing restricted files
> (*.zip mapped in IIS).
>
>
>
> <location path="Content">
>
> <system.web>
>
> <authorization>
>
> <allow roles="Admins"/>
>
> <allow roles="Editors"/>
>
> <allow roles="Subscribers"/>
>
> <deny users="*" />
>
> </authorization>
>
> </system.web>
>
> </location>
>
>
>
> Is there a change in asp.net 2.0 from 1.1 that I missing? The same routine
> works perfectly in our asp.net 1.1 version.
>
>

 
Reply With Quote
 
 
 
 
Allen Harkleroad
Guest
Posts: n/a
 
      05-21-2009
Thanks will check them out, if you can find that link it would be great.

Allen


"Cowboy (Gregory A. Beamer)" <> wrote in
message news:...
> There is a document of breaking changes from .NET 1.1 to .NET 2.0. I am
> not sure if this is one of them. If I can find the link (the old one is
> broken now as GotDotNet.com is no longer a supported site), I will post
> it.
>
> Perhaps a google search. Thus far I have found:
>
> http://learn.iis.net/page.aspx/381/a...ges-on-iis-70/
>
> http://mvolo.com/blogs/serverside/ar...ated-mode.aspx
>
> The original(s) were a Word doc and a CHM file.
>
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> *************************************************
> | Think outside the box! |
> *************************************************
>
>
> "Allen Harkleroad" <allen _ mvp at msn dot com> wrote in message
> news:##...
>> Hi,
>>
>> I have a strange problem. We develop CMS solutions and in our asp.net 1.1
>> version I can restrict downloads by mapping the file extension to the 1.1
>> aspnet_isapi DLL, I also restrict the folder containing the restricted
>> download files to prevent direct access to them. I am winning Server 2003
>> with IIS 6, both 1.1 and 2.0 are installed properly (we have both 1.1 and
>> 2.0 sites running.
>>
>>
>>
>> However we migrated our CMS to 2.0 and all is well and works properly
>> except the fact that when I map the file extension to the 2.0
>> aspnet_isapi DLL in IIS and restrict the folder as I did in 1.1 logged in
>> users get a timeout trying to download the fie, non-logged in users of
>> course get our access denied/login as they should.
>>
>>
>>
>> If I remove the mapping them any user (non-logged in and logged in) can
>> access and download the file.
>>
>>
>>
>> In the web.config (Content is the folder containing restricted files
>> (*.zip mapped in IIS).
>>
>>
>>
>> <location path="Content">
>>
>> <system.web>
>>
>> <authorization>
>>
>> <allow roles="Admins"/>
>>
>> <allow roles="Editors"/>
>>
>> <allow roles="Subscribers"/>
>>
>> <deny users="*" />
>>
>> </authorization>
>>
>> </system.web>
>>
>> </location>
>>
>>
>>
>> Is there a change in asp.net 2.0 from 1.1 that I missing? The same
>> routine works perfectly in our asp.net 1.1 version.
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AVG Email Scanner activating at strange times with strange IP addresses dennispublic@hotmail.com Computer Support 1 08-26-2006 04:27 AM
strange problem John Wireless Networking 4 02-14-2005 05:40 PM
Problem installing modules on redhat 9 - strange connection problem championsleeper Perl Misc 0 01-26-2005 12:19 PM
Strange error! Compiler problem? Or code problem?!!!!!!! Pedro Miguel Carvalho C++ 2 10-25-2004 02:06 PM
Question About Strange 'C' Code Syntax ( Well strange to me anyway ) Harvey Twyman C Programming 8 10-25-2003 05:54 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57