.net ActiveX and assembly execution folder path
I have created a .NET ActiceX control which uses some of the third party dlls.
When I run the control from browser I get an error message "cannot create file. C:\Program Files\Microsft\Internet Explorer\. Access denied.

It seems to be that when the code gets executed the third party dlls creates some temp files for execution in the same folder from where the control is try to execute (in this case Microsoft IE). Obviusly you cannot create the files/folder in Program Files folder.

My quesiton is how can I specify to the run the code from %TEMP% folder so that the control can create some cache files in that location?


.net ActiveX and assembly execution folder path
===

I have created a .NET ActiceX control which uses some of the third party dlls.
When I run the control from browser I get an error message "cannot create file. C:\Program Files\Microsft\Internet Explorer\. Access denied.

It seems to be that when the code gets executed the third party dlls creates some temp files for execution in the same folder from where the control is try to execute (in this case Microsoft IE). Obviusly you cannot create the files/folder in Program Files folder.

My quesiton is how can I specify to the run the code from %TEMP% folder so that the control can create some cache files in that location?

