Click to See Complete Forum and Search --> : msxml error and problem


thechasboi
01-26-2007, 11:36 AM
I have these pages that use a get.xml from certain asp pages. I read in this post somewhere that there is an issue with the updated version of xml in 2k3 where it breaks older code. I tried to change the server object as suggested and get redirected to the main sites home page. I get this error with this server object name "msxml3.dll error '80070005' Access is denied. "
url = "http://" & request.ServerVariables("SERVER_NAME") & "/scripts/dragndrop/artist.asp?page=bio&id=174"
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "GET", url, False
xml.Send
Response.Write("<script src=""/scripts/javascript/browser.js"" type=""text/javascript""></script>" & xml.responseText)
Set xml = Nothing

And with set of code I get redirected to the main site.
url = "http://" & request.ServerVariables("SERVER_NAME") & "/scripts/dragndrop/artist.asp?page=bio&id=174"
Set xml = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")
xml.Open "GET", url, False
xml.Send
Response.Write("<script src=""/scripts/javascript/browser.js"" type=""text/javascript""></script>" & xml.responseText)
Set xml = Nothing

thechasboi
01-29-2007, 10:29 AM
Well thanks for at least looking at my post. I finally figured out that I did not set the new site to .net 2.0. It seems like a trivial mistake I should have checked from the beginning but for some reason a week or so ago the server stopped serving up xml after an update. I freaked out. I looked at the update and did some checks restarted iis and then finally resorted to restarting the server. After restart the xml would not post or send to the browser. So I found an external link from google that I knew pointed to one of the xml based pages and clicked it. It worked and miraculously the rest of the pages that were not working started to work again. So long story short I freaked played a little and got the original problem working. After setting the new site to .net 2.0 it took several hours to send the xml as it should. I hope this helps some one else in this situation. I am not entirely sure why this happened the first time on the server. But a little finagling and play made it work.