Hi all,
I use c# to create ActiveX control, and works under IE browser.
Now, i add a "Save" procedure for this ActiveX,but in Client
calling ,it not works.
the save procedure:
public Boolean Save(String fileName)
{
Boolean result = false;
try {
MessageBox.Show("11111");
if(!System.IO.File.Exists(fileName))
System.IO.File.Create(fileName);
MessageBox.Show("22222");
}
catch (Exception e)
{
MessageBox.Show(e.Message);
result = false;
}
return result;
}
the client (javascript code)
Object1.Save("c:\\aaa.txt");
The error message:
System.Security.Permissions.FileIOPermission,mscor lib,Version=2.0.0.0
Culture=neutral PublickKeyToken=b77a5c561934e089 Failed.
I have set this Assembly to FullTrust. but still not works.
please help...