Solved

Problem with IIS 6.0 - Server object error

Posted on 2004-07-30
14
1,824 Views
Last Modified: 2009-06-02
Hello, let me preface this question with I am not sure whether this is an IIS 6.0 question or a Windows 2003 SBS question so here it goes.  I am running an ecommerce site using ASP and a MSSQL database on a new 2003 SBS server.  I am not having a problem with the site itself, the problem is that when the customer checks out, they enter their shipping and billing information, once they choose a shipping option, the information is sent to a third party using XML and the third party will then return an XML page with the shipping info.  The problem is that it when I check the server in the morning, mind you, not every morning, I receive the following error

Server object error 'ASP 0177 : 80070008'

/testshipping.asp, line 95

80070008

Line 95 follows:

Set objXmlHttp = Server.CreateObject("Msxml.ServerXMLHTTP")

If I go into the IIS 6.0 console and stop, then start the site, I do not receive the error.  I have been trying to figure out this problem for about 3 weeks now and can not figure it out.  Any help would be much appreciated.
0
Comment
Question by:PlanetB04
  • 8
  • 6
14 Comments
 
LVL 6

Expert Comment

by:jdfulton
ID: 11680194
Basically the error means it cannot find or create the server object.  Have you upgraded your server to the latest version of MSXML?  Go here to download the latest version.
http://www.microsoft.com/downloads/details.aspx?FamilyID=3144b72b-b4f2-46da-b4b6-c5d7485f2b42&displaylang=en
0
 
LVL 6

Expert Comment

by:jdfulton
ID: 11680300

After you upgrade change your Server Object code to.

Set objXmlHttp = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")
0
 

Author Comment

by:PlanetB04
ID: 11680411
If it was the MSXML version, would I receive the error every time?  I only receive the error during the middle of the night, then when I restart the webservice, I might not receive the error again for up to 5 days....
0
 
LVL 6

Expert Comment

by:jdfulton
ID: 11680494
No maybe not.  2003 server is weird.  It could work for awhile then stop because something is not refreshing correctly.   When you restart the service it gets refreshed and starts working again.  I would try upgrading anyways to the latest version.  If this doesn't work then we know it's not the problem.
0
 

Author Comment

by:PlanetB04
ID: 11680560
Thanks...  I will let it run the weekend, I will let you know on Monday...
0
 

Author Comment

by:PlanetB04
ID: 11693422
Hi the upgrade did not work, Friday night the site completely went down when trying to process the Server.CreateObject.  When I rebooted the machine, the site (www.planetbattery.com) worked fine.  I have checked what processes, if any, are running during the overnight hours, this seems to be when I am having the problem, and I cannot find any.  Any further help would be appreciated
0
 
LVL 6

Expert Comment

by:jdfulton
ID: 11693915
Did you upgrade the XML yet and change your code?
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 6

Expert Comment

by:jdfulton
ID: 11694606
What version of  SQL Server are you running?
0
 

Author Comment

by:PlanetB04
ID: 11695314
Yes, I upgraded to msxml4.dll and I changed the code as written above.

I am running SQL 2000... I have installed SP3
0
 
LVL 6

Expert Comment

by:jdfulton
ID: 11696741
So has it ever worked?
0
 

Author Comment

by:PlanetB04
ID: 11696952
Yes, it work for about 3 or 4 hours on Friday, I reset the server Sunday afternoon, it work again, then the server had to be reset again this morning.
0
 
LVL 6

Expert Comment

by:jdfulton
ID: 11697224
No i mean has it ever worked without any problems.  Working 3-4 hours wouldn't be classified as working.  

What I am getting at is if it has never worked I would look at the code for the cause.  It seems to me that its the problem.  Since it stops or doesn't work after a certain time, there has to be some sort of loop etc.. causing IIS to stop processing object requests.   Another thing to try is to configure the folder where your application is for pooling.  You do this under the website properties in the IIS console.   This should keep your IIS service running for everything else.
0
 

Author Comment

by:PlanetB04
ID: 11725504
Yes, it had worked since Monday Aug. 2 without any problems. It has worked for as long as 10 days without a problem.

The code that I use was sent to us from a company called Intershipper, it calculates UPS Shipping costs, below is the Code.

Set objXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0")
 
    'Specify Program And Quote Request Data
    dim url
    url = "http://www.intershipper.com/Interface/Intershipper/XML/v2.0/HTTP.jsp" & "?" & requestParameters
    objXmlHttp.open "POST", url , False
    'Send Quote Request... Execution Of ASP Holds Until Response Is Received


    objXmlHttp.send
response.write("<h1>"&error&"</h1>")
      On Error Resume Next

    'Pass XML Quote To String
    strXML = objXmlHttp.responseText
    'Print XML Quote
Response.write "Information returned from Intershipper<br><br>---"    
response.Write server.htmlencode(strxml)

Set fs = CreateObject("Scripting.FileSystemObject")
if fs.fileexists(FILENAMEANDPATH) then
    Set f = fs.OpenTextFile("c:\inetpub\wwwroot\planetbattery\xml\ship.xml", ForAppending,TristateFalse)
else
    Set f = fs.CreateTextFile("c:\inetpub\wwwroot\planetbattery\xml\ship.xml", True)
end if
f.write(strxml)
'fs.close
response.write strxml&"<br>"
set fs = nothing
set f = nothing
end if

The Server.CreateObject creates an XML form, this was located in the root of the site, I just created a folder and changed to Server.CreateObject to point toward this folder.  I cannot find the option in the IIS console to allow pooling.
0
 
LVL 6

Accepted Solution

by:
jdfulton earned 200 total points
ID: 11726853
Pooling can be enabled by clicking on the website properites, folder properties or virtual directory properties.   Then the Home Directory tab.  You want to configure the Application settings.  I would recommend doing it for the website itself and then the main directory of your application.  This should keep your entire site from going down if there is a problem.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now