Here is the situation:
I am trying to code a form to access data from our AD. I enabled the form for Full Trust, placed the form code in place and it will build without errors. When the form trys to open (preview) I get the error. Whe I try to open the form from the template I get this error:
Form template: ...