HTA on Windows 2003 Server get permission denied when writin
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
HTA on Windows 2003 Server get permission denied when writin

 
Post new topic   Reply to topic    Windows Server Forum Index -> Security
Author Message
Anthony LaMark
Guest





Posted: Wed Feb 09, 2005 2:26 am    Post subject: HTA on Windows 2003 Server get permission denied when writin Reply with quote

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>
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Security All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB