Anthony LaMark
Guest
|
Posted:
Wed Feb 09, 2005 2:26 am Post subject:
HTA on Windows 2003 Server get permission denied when writin |
|
|
Hi All,
Given this simple HTA application, can someone explain what I must do
security wise to allow the XMLDocument.save command to work (I currently get
"Permission denied")? I am fearing that I will need to take different
security steps based on the OS version. My goal is to get this running as a
stand-alone HTA and then have the HTA hosted within a web browser control in
a WinForm app written in C#. So, if you can suggest a solution that I can
approach programatically, I will forgo having it run as a stand-alone.
Ideally, though, it would be great to provide a single solution for all OS
versions. Thanks in advance.
<html>
<head>
<HTA:APPLICATION ID="MyApp" APPLICATIONNAME="MyAppName"/>
<script>
function saveData()
{
MyXML.XMLDocument.save("MyXML.xml");
}
</script>
</head>
<body>
<xml id="MyXML" src="MyXML.xml"></xml>
<table border=1 id=TableId datasrc=#MyXML>
<tr>
<td><div datafld="Field1"></div></td>
<td><div datafld="Field2"></div></td>
</tr>
</table>
<input type=button value="Save XML to disk" onclick="saveData()"
ID="Button4" NAME="Button4">
</body>
</html> |
|