Re: Problem loading a windows form. Please help.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Christopher Kimbell (a_at_b.c)
Date: 06/20/04


Date: Sun, 20 Jun 2004 21:03:55 +0200

I'm not quite sure, I've never done it myself.

I had a look at my machine, in the .NET configuration program located in
Control Panel, you can set up security related things.

Under the "Runtime Security Policy" node, you can edit code groups and
permission sets.
I think the clue is to create a permission set with the required
permissions, then assign it to a code group.

How you would distribute these security settings I am unsure of, you
probably have to talk to your network administrator.

I believe the Zone administration is done using the Internet Options
accessible from Internet Explorer.

Another option could be use the Assert() method of the required permission.
The MSDN has the following to say about Assert():
"Declares that the calling code can access the resource protected by a
permission demand through the code that calls this method, even if callers
higher in the stack have not been granted permission to access the resource.
Using Assert can create security vulnerabilities."

Chris

"William Gower" <w_gower@hotmail.com> wrote in message
news:ewD8Q$tVEHA.1652@TK2MSFTNGP09.phx.gbl...
> Where do I do that?
>
> "Christopher Kimbell" <a@b.c> wrote in message
> news:40d5a078$1@news.broadpark.no...
> > When running code from a server, you are accessing the code from a
> different
> > "zone" in security terms. You probably have to configure security
settings
> > in order to allow code execution.
> >
> > Chris
> >
> > "William Gower" <w_gower@hotmail.com> wrote in message
> > news:uBMsEHhVEHA.3596@tk2msftngp13.phx.gbl...
> > > I have created a .net windows form in vb.net and compiled it as a
.dll.
> I
> > > then register the .dll with regasm. I then call the form in a vb 6
> > > application using the following code.
> > >
> > > dim c as object
> > > set c = createobject("LaborOrg.form1")
> > > c.show
> > >
> > > It works great on my developer machine. I place the .dll and the .tlb
> on
> > > the client's server and regasm the dll. I check the registry and it
> shows
> > > LaborOrg.form1. When I click the button to display the form nothing
> > > happens. The app and the winform dll are both on the server and I am
> > trying
> > > to run it from the server. I do have .net framework on the server.
Any
> > > suggestions?
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: Server Reports empty
    ... Security Exception ... To grant this application the required permission ... The server will start to collect new counter value from ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: Code Access Security, Evidence Based Security, Code Access Permission, Role Based Permission, et
    ... confused on the relationship between Code Access Security, Evidence Based ... Security, Code Access Permission, Role Based Permission, Declarative and ... user running it (if this is true, then only the Identity Permission Code ...
    (microsoft.public.dotnet.security)
  • RE: Do all three permission classes (Identity Permission, Code Access Permission and Role Based Perm
    ... That is correct -- the inputs to CAS for each assembly are that assembly's evidence and the current security policy. ... classify them as a code access permission and an identity permission, since StrongNameIdentityPermission is also a code access security ...
    (microsoft.public.dotnet.security)
  • [NT] Windows 2000 Weak Default Permission on System Partitions
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The system partition by default has Everyone/Full Control access ... permission settings of Everyone/Full Control or Authenticated Users/Full ...
    (Securiteam)
  • Re: [Keyrings] [PATCH] Keys: Add LSM hooks for key management
    ... > for the key being instantiated and Write permission on that key. ... >> security module to inspect the key data and set a label based on data? ... > Whether the security module should use it to impose a lable, probably not, I ... Yes, thanks, I missed the rka instantiation at first. ...
    (Linux-Kernel)