com object can't access local file system from web page
I have created a c# dll that is a com object. It is embedded on the webpage using the <object> tag. It works fine.
I now have a requirement to access a file in the program files folder that has some setup values, but I can't do it from a webpage on the server.
The dll is downloaded with a windows application and regasm is run prior to opening the website. The dll can access a database (from the web page). how can I grant permissions to the object that allows local file access? The access only needs to be read access.
Maybe you can read the file from windows application and pass as query parameters when the website is launched ?
0
dhenderson12Author Commented:
Interesting idea, however there are several of these sites and I would need to modify the way they are launched individually, so this would become a maint nightmare.
I would like to write a small file when the win application starts up and allow the com object access to that file for the information it needs. I just don't know how to do this for a .net object. If it were java I would install a java.policy file on the machine (since these are internal sites that's easier than it sounds through group policy).
Other option is , you can store the setup values in DB and when the application launches first it can read its setup values and it can proceed further.
0
Question has a verified solution.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.