I have a fully trusted browser-based InfoPath 2007 form with C# code on the loading event to pull user information from Active Directory which I then populates some form fields. If I preview the form on my local machine everything works fine. When I upload to the server as an admin in Central Admin, the fields no longer populate for any user loading the form. Any ideas on what I may be missing?
Also, have a separate form loading event logic to set default values that works fine. I have the form pointed to a shared folder on the server with the actual code.