N
Nick Warrington
Somebody let me loose with ASP and it was all going well until I hit
(what I think is ) a minor problem.
I am using IIS as a remote configuration tool to modify an XML config
file on the server. So I pull my XML config file through XSLT to give me
an HTML file with forms on. Something like this:
---8<----------------------------------------
dim objXML
dim objXSLT
set objXML = server.CreateObject("MSXML2.DOMDocument.3.0")
set objXSLT = server.CreateObject("MSXML2.DOMDocument.3.0")
objXSLT.load server.MapPath("DeviceConfiguration.xsl")
objXML.load server.MapPath("DeviceConfiguration.xml")
'just translate and pipe out the output to the browser
Response.Write(objXml.transformNode(objXSLT))
---8<----------------------------------------
I can twiddle the config values through my web browser and click
submit. Then in my save.asp I iterate over the keys in Request.Form
update my XML object and write them back to the XML file using:
objXML.save("DeviceConfiguration.xml")
Thing is, when I try and write them back I get:
Error Type:
msxml3.dll (0x80070005)
Access is denied.
/save.asp, line 24
I guess this is a configuration on IIS. Can anyone suggest what to change.
Be gentle. I only started learning about IIS and ASP last week.
Ta
Nick
(what I think is ) a minor problem.
I am using IIS as a remote configuration tool to modify an XML config
file on the server. So I pull my XML config file through XSLT to give me
an HTML file with forms on. Something like this:
---8<----------------------------------------
dim objXML
dim objXSLT
set objXML = server.CreateObject("MSXML2.DOMDocument.3.0")
set objXSLT = server.CreateObject("MSXML2.DOMDocument.3.0")
objXSLT.load server.MapPath("DeviceConfiguration.xsl")
objXML.load server.MapPath("DeviceConfiguration.xml")
'just translate and pipe out the output to the browser
Response.Write(objXml.transformNode(objXSLT))
---8<----------------------------------------
I can twiddle the config values through my web browser and click
submit. Then in my save.asp I iterate over the keys in Request.Form
update my XML object and write them back to the XML file using:
objXML.save("DeviceConfiguration.xml")
Thing is, when I try and write them back I get:
Error Type:
msxml3.dll (0x80070005)
Access is denied.
/save.asp, line 24
I guess this is a configuration on IIS. Can anyone suggest what to change.
Be gentle. I only started learning about IIS and ASP last week.
Ta
Nick