Click here to Skip to main content
15,918,178 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys,
i just recently built a survey application that is supposed to be deployed by our SYSADMIN guys to reflect on all users in the domain. i have managed to deploy it and it keeps showing on some user's profile and not all.
some of the present issues are:

1. SQLClient security permission error
2. dotNet framework incompatibility
3. some users still dont see the survey

the app is supposed to run during user logon as the script that calls it is attached to every user's profile.

the application was built with VS 2005 (.NET framework 2.0)

any help will be glad appreciated.

thanks
Posted

1 solution

The .NET Framework 2.0 has to be installed on every users machine. Apparently, this is not the case.

If the .EXE is being run from a network share, the .NET CLR to run the app in a highly restricted sandbox since non-local locations for executable code is not trusted, by default. This can be fixed in a variety of ways, but it comes down to configuring trusts. Usually, this is done by telling the CLR to trust all code signed with a certain certificate or (not so securely) trust any code running from a certain network location.

The trust issue will throw the permissions exception when trying to run SQL connection and query code.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900