Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
GeneralRe: Error Messages Pin
Kentamanos29-Jan-04 16:36
Kentamanos29-Jan-04 16:36 
GeneralRe: Error Messages Pin
BP12829-Jan-04 16:37
BP12829-Jan-04 16:37 
GeneralRe: Error Messages Pin
Kentamanos29-Jan-04 16:49
Kentamanos29-Jan-04 16:49 
GeneralRe: Error Messages Pin
BP12829-Jan-04 16:51
BP12829-Jan-04 16:51 
GeneralRe: Error Messages Pin
BP12829-Jan-04 18:01
BP12829-Jan-04 18:01 
GeneralRe: Error Messages Pin
Heath Stewart30-Jan-04 3:34
protectorHeath Stewart30-Jan-04 3:34 
GeneralSecurity Issues Pin
Ken Galer29-Jan-04 10:26
Ken Galer29-Jan-04 10:26 
GeneralRe: Security Issues Pin
Heath Stewart29-Jan-04 13:16
protectorHeath Stewart29-Jan-04 13:16 
There is most definitely an issue when running an assembly from the intranet. Code Access Security is a major feature of the CLR and this is often overlooked. The wizard you use is junk - don't use it. Learn about code access security and use the Microsoft .NET Framework Configuration snap-in and do it the right way.

In your case, you're using a method or class that requires a certain permissiont that is not granted to assemblies running in the Intranet zone. The wizard only collections assembly evidence instead of host evidence and so, if you're using automatic versioning (using the asterisk in the AssemblyVersionAttribute, which is a very BAD idea for so many reasons I can't believe they included it as a feature), the assembly evidence won't match what the wizard collected (because the version is different). Also, assembly evidence isn't always presented to the CLR, such as in the case of smart clients (assemblies executed in Internet Explorer). Code access security is an important feature to understand to avoid these cases and, preferably, use to your advantage to customize your application in case certain permissions are granted to your assembly/assemblies.

Fortunately, there was a great article posted on CodeProject about code access security not long ago: Understanding .NET Code Access Security[^].

You can also find more information about code access security and various permissions in the .NET base class library at http://msdn.microsoft.com/library/en-us/cpguide/html/cpconcodeaccesssecurity.asp[^].

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Security Issues Pin
Ken Galer30-Jan-04 2:23
Ken Galer30-Jan-04 2:23 
GeneralRe: Security Issues Pin
Heath Stewart30-Jan-04 3:23
protectorHeath Stewart30-Jan-04 3:23 
GeneralOver ride closing event Pin
Daniel Negron29-Jan-04 9:27
Daniel Negron29-Jan-04 9:27 
GeneralRe: Over ride closing event Pin
Heath Stewart29-Jan-04 13:08
protectorHeath Stewart29-Jan-04 13:08 
GeneralListbox deleting items Pin
Gavin Coates29-Jan-04 8:19
Gavin Coates29-Jan-04 8:19 
GeneralRe: Listbox deleting items Pin
Mazdak29-Jan-04 8:28
Mazdak29-Jan-04 8:28 
GeneralRe: Listbox deleting items Pin
Gavin Coates29-Jan-04 9:09
Gavin Coates29-Jan-04 9:09 
GeneralRe: Listbox deleting items Pin
Mazdak29-Jan-04 9:14
Mazdak29-Jan-04 9:14 
GeneralRe: Listbox deleting items Pin
Gavin Coates29-Jan-04 9:52
Gavin Coates29-Jan-04 9:52 
GeneralRe: Listbox deleting items Pin
thomasa30-Jan-04 0:45
thomasa30-Jan-04 0:45 
GeneralRe: Listbox deleting items Pin
Gavin Coates31-Jan-04 10:17
Gavin Coates31-Jan-04 10:17 
GeneralRe: Listbox deleting items Pin
thomasa1-Feb-04 22:14
thomasa1-Feb-04 22:14 
GeneralMulti-threading Pin
Guinness4Strength29-Jan-04 5:17
Guinness4Strength29-Jan-04 5:17 
GeneralRe: Multi-threading Pin
scadaguy29-Jan-04 10:23
scadaguy29-Jan-04 10:23 
GeneralRe: Multi-threading Pin
Guinness4Strength29-Jan-04 10:27
Guinness4Strength29-Jan-04 10:27 
GeneralRe: Multi-threading Pin
Heath Stewart29-Jan-04 12:55
protectorHeath Stewart29-Jan-04 12:55 
GeneralDatabase Problem, PLEASE HELP Pin
gls2ro29-Jan-04 4:24
gls2ro29-Jan-04 4:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.