Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 3rd, 2006, 03:47 PM
pat_smith1969 pat_smith1969 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 93 pat_smith1969 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 44 m 50 sec
Reputation Power: 5
Metabase.xml

I have a script that I wrote on an ASP page.. I recently applied it to a different DB and it gives an error
Quote:
Response object error 'ASP 0251 : 80004005'
Execution of the ASP page caused the Response Buffer to exceed its configured limit.


Now this script worked on a different db that was much smaller. All my searches said I need to edit the metabase.xml and increase the asp buffer size.

ummm dumb question here .. where do I find the metabase.xml file... a search does not show it and it is not in my inetpub directory.

Reply With Quote
  #2  
Old October 3rd, 2006, 03:51 PM
pat_smith1969 pat_smith1969 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 93 pat_smith1969 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 44 m 50 sec
Reputation Power: 5
Here is the code in question... I cut some junk out that was unnecessary (table row, table data .. that type of stuff).

Quote:
Set Conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider=SQLOLEDB; Data Source = SQL; Initial Catalog = Altiris; User Id = weblookup1; Password=weblookup"
Set rs = conn.execute(strQueryString)
Do until rs.eof
strRowID = rs.fields("RowID").value
strPOnum = rs.fields("PO#").value
strGrantnum = rs.fields("Grant#").value
strPODate = rs.fields("PO_Date_Issue").value
strDateReturn = rs.fields("Date_Item_Received").value
strDesc = rs.fields("Description").value
strAmount = rs.fields("Amount").value
strPrice = rs.fields("Price").value
strReqBy = rs.fields("Requested_By").value
strTigrNum = rs.fields("Tigr#").value
strSerialNum = rs.fields("Serial#").value
strComments = rs.fields("Comments").value
strType = rs.fields("Type").value
strComments2 = rs.fields("Comments2").value
strIsRetiredvlue = rs.fields("Is_Retired").value

'Convert isretired bit to english
IF strIsRetiredvlue <> "False" THEN
strIsRetiredwrd = "Retired"
Else
strIsRetiredwrd = "Active"
End IF


' Validate dates.. if 1/1/1900 then dont display
IF strPODate = "1/1/1900" THEN
strPODate = ""
END IF
IF strDateReturn = "1/1/1900" THEN
strDateReturn = ""
END IF


If strLineNum = 0 THEN

%>

<tr>
<td width="20" <td></td>
<td></td>
</tr>




<%
strHGHLGT = ""

rs.movenext
Loop


Reply With Quote
  #3  
Old October 3rd, 2006, 05:40 PM
jobo jobo is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 141 jobo User rank is Corporal (100 - 500 Reputation Level)jobo User rank is Corporal (100 - 500 Reputation Level)jobo User rank is Corporal (100 - 500 Reputation Level)jobo User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 23 h 11 m 14 sec
Reputation Power: 6
Thumbs up where oh where has my metabase gone?

The file is stored in %SYSTEMROOT%\system32\inetsrv as META BASE.XML. Note the space in the middle. Cute, huh?

Reference:
http://www.pcquest.com/content/serv...e/103060301.asp

Joe

Reply With Quote
  #4  
Old October 3rd, 2006, 11:57 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
I think your problem is a coding problem not an IIS problem. I'd be reluctant to try to modify any IIS settings to solve this.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #5  
Old October 4th, 2006, 01:37 AM
kanenas.net kanenas.net is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Location: Athens-Greece
Posts: 24 kanenas.net User rank is Corporal (100 - 500 Reputation Level)kanenas.net User rank is Corporal (100 - 500 Reputation Level)kanenas.net User rank is Corporal (100 - 500 Reputation Level)kanenas.net User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 21 h 7 m 19 sec
Reputation Power: 0
Send a message via ICQ to kanenas.net Send a message via MSN to kanenas.net Send a message via Yahoo to kanenas.net
Quote:
Originally Posted by Doug G
I think your problem is a coding problem not an IIS problem. I'd be reluctant to try to modify any IIS settings to solve this.


I agree with Doug G, but if you want to modify IIS metabase.xml you must tell us what version of Windows do you use...

Windows 2000, WindowsXP, Windows 2003 ?

If you use Windows 2003 then you can locate metabase.xml in...
%SYSTEMROOT%\system32\inetsrv
and edit it with notepad or vim (careful with other editors for whitespace...)

If you use Windows 2000, WindowsXP then you must search in Microsoft's site for the tool MetaEdit 2.2 !
Why ??? Because, there is no metabase.xml file and it is very difficult to edit the metabase.bin file.


Reply With Quote
  #6  
Old October 4th, 2006, 02:27 PM
pat_smith1969 pat_smith1969 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 93 pat_smith1969 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 44 m 50 sec
Reputation Power: 5
Normally I would be the first to suspect a code error. But in this particular case I dont see how it could be.

1. the code works great on a smaller db (several hundered rows).
2. I am not doing anything too dificult. A simple "select where " statement, then assigning variables, then printing the variables in a table, then rs.movenext, then Loop.

Do you guys see anything obovious in the code I posted?

Reply With Quote
  #7  
Old October 4th, 2006, 02:37 PM
pat_smith1969 pat_smith1969 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 93 pat_smith1969 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 44 m 50 sec
Reputation Power: 5
I bumped up the buffer limit and it worked, but needless to say I am unimpressed with the performance. The new db has 5k rows where the old one had somewhere 6 to 7 hundred.

Do you guys think I would get better performance by using a view in the SQL server? OR a SQL Query that is in the Query section IN the SQL database?

Reply With Quote
  #8  
Old October 4th, 2006, 05:36 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
Review your sql and also review your database indexing

Reply With Quote
  #9  
Old October 17th, 2006, 08:47 PM
q97 q97 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: Brisvegas
Posts: 276 q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level)q97 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 4 Days 10 h 41 m 49 sec
Reputation Power: 37
I might be wrong but I think you should be able to retrieve the records 500 at a time, 1000 at a time etc using paging...???

If your code works ok with a smaller sample, but dies when you retrieve more rows, then you definately need to handle that in your code - don't start mucking around with IIS settings otherwise you risk overloading your server - imagine several people running the same query at once...

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Metabase.xml


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT