Here's my problem. I have a project located on a web server. I shared the virtual directory so that I could work on the project from my machine elsewhere in the room.
I added a reference to the Microsoft IE WebControls dll. It copied over the dll to the bin directory, which is good :P
I added the TreeView and ToolBar objects to a page. When I open the project and the page from within Visual Studio on the web server, it shows the controls as little grey boxes and descriptions and such.
However, when I open the project from my machine, it shows the controls as the "Error Creating Control" box. When I move my mouse over to see what the big deal is, it tells me:
Parser Error: Request for the permission of type System.Web.AspNetHostingPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
Now, I could live with this because when I try to view in browser, it works fine. However, Visual Studio seems to think it's smart, and removes the event handlers for those objects when I open the page on my machine. So evertime I open the project from my machine, I have to manually add the event handlers in the code-behind file.
I have even gone as far as giving Everyone full control over the Share, but still no success.
Any ideas?