By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,033 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

User Control Problem

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

"hplloyd" <hp*****@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
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

Nov 21 '05 #2

P: n/a
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

"hplloyd" wrote:
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

Nov 21 '05 #3

P: n/a
* "=?Utf-8?B?aHBsbG95ZA==?=" <hp*****@discussions.microsoft.com> scripsit:
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/groups?selm=eq8eIoh8CHA.3208%40TK2MSFTNGP11.phx.gb l>

..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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.