Connecting Tech Pros Worldwide Help | Site Map

Operation not Allowed

 
LinkBack Thread Tools Search this Thread
  #1  
Old September 5th, 2008, 08:25 PM
Ron Hinds
Guest
 
Posts: n/a
Default Operation not Allowed

I recently moved my ASP application from W2K SP4 to W2K3 Web Edition SP2.
Previously, everything worked fine. Now I get the following error from a
couple of pages that read in and process a XML document:

Event Type: Error
Event Source: Active Server Pages
Event Category: None
Event ID: 5
Date: 9/4/2008
Time: 11:58:46 PM
User: N/A
Computer: XXXXX
Description:
Error: File /ASPPage.asp Line 27 Operation not Allowed.

Here is the line of code in question:

oDocIn.load(Request.BinaryRead(Request.TotalBytes) )

oDocIn is defined as follows:

Set oDocIn = Server.CreateObject("MSXML2.DOMDocument")

As I said, this code was working fine on the old web server. Does anyone
have any ideas? Thanks!





  #2  
Old September 5th, 2008, 09:05 PM
Anthony Jones
Guest
 
Posts: n/a
Default Re: Operation not Allowed

"Ron Hinds" <billg@microsoft.comwrote in message
news:eO6nEQ5DJHA.4976@TK2MSFTNGP04.phx.gbl...
Quote:
>I recently moved my ASP application from W2K SP4 to W2K3 Web Edition SP2.
>Previously, everything worked fine. Now I get the following error from a
>couple of pages that read in and process a XML document:
>
Event Type: Error
Event Source: Active Server Pages
Event Category: None
Event ID: 5
Date: 9/4/2008
Time: 11:58:46 PM
User: N/A
Computer: XXXXX
Description:
Error: File /ASPPage.asp Line 27 Operation not Allowed.
>
Here is the line of code in question:
>
oDocIn.load(Request.BinaryRead(Request.TotalBytes) )
>
oDocIn is defined as follows:
>
Set oDocIn = Server.CreateObject("MSXML2.DOMDocument")
>
As I said, this code was working fine on the old web server. Does anyone
have any ideas? Thanks!
>
How big is the entity body you are loading. Its likely larger than 200K.

IIS6 limits the AspMaxRequestEntityBody to 200K. (It was something much
larger on IIS5). You will need to modify this value to allow the larger
body.

--
Anthony Jones - MVP ASP/ASP.NET

  #3  
Old September 5th, 2008, 09:25 PM
Ron Hinds
Guest
 
Posts: n/a
Default Re: Operation not Allowed

"Anthony Jones" <AnthonyWJones@yadayadayada.comwrote in message
news:%23oZRLm5DJHA.1228@TK2MSFTNGP02.phx.gbl...
Quote:
IIS6 limits the AspMaxRequestEntityBody to 200K. (It was something much
larger on IIS5). You will need to modify this value to allow the larger
body.
Is that a regsitry setting?


  #4  
Old September 6th, 2008, 09:45 PM
Anthony Jones
Guest
 
Posts: n/a
Default Re: Operation not Allowed

"Ron Hinds" <billg@microsoft.comwrote in message
news:e0TWFv5DJHA.4600@TK2MSFTNGP04.phx.gbl...
Quote:
"Anthony Jones" <AnthonyWJones@yadayadayada.comwrote in message
news:%23oZRLm5DJHA.1228@TK2MSFTNGP02.phx.gbl...
Quote:
>IIS6 limits the AspMaxRequestEntityBody to 200K. (It was something much
>larger on IIS5). You will need to modify this value to allow the larger
>body.
>
Is that a regsitry setting?
>
No its a Metabase setting. In IIS there is Metabase.xml file tuck away with
all the settings. Many IIS admins well tinker with this directly but its
better to use a tool whose job it is to do that.

If you haven't already got the resource kit:-

http://www.microsoft.com/downloads/d...displaylang=en

Now you could set this value for your entire site but it would be better to
limit it to only the directories (or even files that need it). The purpose
of the setting is to limit your site exsposure to inadvertant or malicous
attempt to tie up your site by sending ludicrously large amounts of data to
it.

In IIS Manager find the directory or file you want to apply the setting to.
Open its properties and look at the enable content expiration check box on
the http headers tab. If its on skip the rest of this paragraph. If its
off turn it on, apply, turn it off and OK. This creates a path to the
folder or file in the metabase and saves a fair bit of faffing about.

Now open the MetaBase explorer from the IIS resources.

Navigate down the path LM\W3SVC\xxxx\root\yourpath where xxxx is the site ID
(if you have multiple sites click on each and the ServerComment value in the
right hand pane will tell which one it is) and yourpath is the path down to
the folder or file you want to apply the setting to.

Right mouse click the folder or file in the tree and choose New | DWord
record. In the Record Name or Identifier drop down choose
AspMaxRequestEntityBody (or simply type 7053 in the same box). Click OK.

Double click the value that has appeared in the right hand pane and enter
the max bytes you want to allow.




--
Anthony Jones - MVP ASP/ASP.NET

  #5  
Old September 8th, 2008, 11:05 PM
Ron Hinds
Guest
 
Posts: n/a
Default Re: Operation not Allowed


"Anthony Jones" <AnthonyWJones@yadayadayada.comwrote in message
news:uHV3UjGEJHA.1268@TK2MSFTNGP05.phx.gbl...
Quote:
"Ron Hinds" <billg@microsoft.comwrote in message
news:e0TWFv5DJHA.4600@TK2MSFTNGP04.phx.gbl...
Quote:
>"Anthony Jones" <AnthonyWJones@yadayadayada.comwrote in message
>news:%23oZRLm5DJHA.1228@TK2MSFTNGP02.phx.gbl...
Quote:
>>IIS6 limits the AspMaxRequestEntityBody to 200K. (It was something much
>>larger on IIS5). You will need to modify this value to allow the larger
>>body.
>>
>Is that a regsitry setting?
>>
>
No its a Metabase setting. In IIS there is Metabase.xml file tuck away
with all the settings. Many IIS admins well tinker with this directly but
its better to use a tool whose job it is to do that.
>
If you haven't already got the resource kit:-
>
http://www.microsoft.com/downloads/d...displaylang=en
>
Now you could set this value for your entire site but it would be better
to limit it to only the directories (or even files that need it). The
purpose of the setting is to limit your site exsposure to inadvertant or
malicous attempt to tie up your site by sending ludicrously large amounts
of data to it.
>
In IIS Manager find the directory or file you want to apply the setting
to. Open its properties and look at the enable content expiration check
box on the http headers tab. If its on skip the rest of this paragraph.
If its off turn it on, apply, turn it off and OK. This creates a path to
the folder or file in the metabase and saves a fair bit of faffing about.
>
Now open the MetaBase explorer from the IIS resources.
>
Navigate down the path LM\W3SVC\xxxx\root\yourpath where xxxx is the site
ID (if you have multiple sites click on each and the ServerComment value
in the right hand pane will tell which one it is) and yourpath is the path
down to the folder or file you want to apply the setting to.
>
Right mouse click the folder or file in the tree and choose New | DWord
record. In the Record Name or Identifier drop down choose
AspMaxRequestEntityBody (or simply type 7053 in the same box). Click OK.
>
Double click the value that has appeared in the right hand pane and enter
the max bytes you want to allow.
>
>
>
>
--
Anthony Jones - MVP ASP/ASP.NET
>
Much Thanks!


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.