> well duh.
>
> If you have access to the machine you can just run regedit too and
> bypass the need for .net.
>
> Or how about hand assembling some hex codes in a buffer overrun?
>
> All those will bypass 'security'.
>
> I think he was asking for a reasonable level of assurance, not DOD
> level protection from the communists.
>
> Remind me not to buy your book.
>
> "Dominick Baier [DevelopMentor]"
> <dbaier@pleasepleasenospamdevelop.com> wrote in message
> news:4580be6319dde78c85cd6eca1d4c1@news.microsoft.com...
>
>> what's the difference between a class and a .exe ?? the extension -
>> that's it - you can also add .exe references - Visual Studio does not
>> allow this but csc.exe does.
>>
>> i can simply turn CAS off if i want to bypass a lot of stuff - i
>> could use reflector to decompile the assembly - i could even patch
>> the CLR to turn off all security checks...
>>
>> If you don't believe me give me your ".exe" and we will see if i can
>> call it or not.
>>
>> you can make it harder by sprinkling all kinds of security checks in
>> your code - but the rule still applies - if i have your binary - it
>> is mine - and i can do whatever i want.
>>
>> ---------------------------------------
>> Dominick Baier - DevelopMentor
>>
http://www.leastprivilege.com >>> i will answer that when i have more time, in the meanwhile you may
>>> wanna check your statements if they are really true :)
>>>
>>> ---------------------------------------
>>> Dominick Baier - DevelopMentor
>>>
http://www.leastprivilege.com >>>> That's crazy to say that.
>>>>
>>>> The easiest quickest simplest solution is to not use a .dll - just
>>>> compile the classes directly into each app that needs them - that
>>>> solves the .dll problem completely.
>>>>
>>>> If you insist on using a .dll - 1/2 day with some thought out
>>>> security code would work fine (check loaded assemblies, use strong
>>>> naming, declartive security etc)
>>>>
>>>> J
>>>>
>>>> "Dominick Baier [DevelopMentor]"
>>>> <dbaier@pleasepleasenospamdevelop.com> wrote in message
>>>> news:4580be6319c84c8c858e422c88800@news.microsoft.com...
>>>>
>>>>> There is no way you can do that. If someone has your .dll he can
>>>>> use it.
>>>>>
>>>>> I wouldn't spend too much time thinking about this.
>>>>> Keep your stuff on the server, and you have control over it -
>>>>> otherwise
>>>>> you don't.
>>>>> ---------------------------------------
>>>>> Dominick Baier - DevelopMentor
>>>>>
http://www.leastprivilege.com >>>>>> Hi All
>>>>>> i have created a web application for businesses pupose, which
>>>>>> contains
>>>>>> come classes, the whole output of this application is
>>>>>> "MyWork.dll"
>>>>>> in
>>>>>> bin
>>>>>> directory, so far so goood.
>>>>>> wot i want is to safe this ".dll" file, coz if a made any
>>>>>> windows
>>>>>> or another webapplication and add its ("MyWork.dll") reference in
>>>>>> this new appication, i can access all classes, these classes
>>>>>> contains some classes which play with DB and Registry, so i want
>>>>>> to
>>>>>> make this "MyWork.dll" limited to only that application to which
>>>>>> it
>>>>>> belongs.
>>>>>> any help would be appriciateable
>>>>>> aSIM.
>>>>>>