User Control Problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a windows user control library and all the controls have been
tested and work perfectly.

Next i built the project as a release version and stored the final copies
onto the network.

I now want to develop a totally seperate application that references the
control library, so a create a new project and reference in the .dll file
from the network. Next i add the controls to the My User Controls section of
the toolbox (by adding a reference to the same networtk file) .

When I drag an item onto a form I get the following error

An error occured while trying to create an instance of [contol name]. The
exception was "Request for the permission of type
System.Security.Permissions.FileIOPermission, mscorlib, version ........
failed"

Does anyone have any ideas... have I missed a step?

Thanks in advance
 
Have you trusted the assembly ?

Windows Control Panel, Administration Tools, Microsoft .NET 1.1 Wizards

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 
Sorry... ignore that... the problem was that I had not referenced in another
user.dll that the control library that I was using relied upon

Thanks anyway
 
* "=?Utf-8?B?aHBsbG95ZA==?= said:
Next i built the project as a release version and stored the final copies
onto the network.

I now want to develop a totally seperate application that references the
control library, so a create a new project and reference in the .dll file
from the network. Next i add the controls to the My User Controls section of
the toolbox (by adding a reference to the same networtk file) .

When I drag an item onto a form I get the following error

An error occured while trying to create an instance of [contol name]. The
exception was "Request for the permission of type
System.Security.Permissions.FileIOPermission, mscorlib, version ........
failed"

You will have to trust the location the assembly (control library) is
placed on:

<URL:http://www.google.de/[email protected]>

..NET Framework Enterprise Security Policy Administration and Deployment
<URL:http://msdn.microsoft.com/library/en-us/dnnetsec/html/entsecpoladmin.asp>

Chapter 8 - Code Access Security in Practice
<URL:http://msdn.microsoft.com/library/en-us/dnnetsec/html/THCMCh08.asp>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top