index > ClickOnce and Setup & Deployment Projects > Code Groups: What am I doing wrong?

Code Groups: What am I doing wrong?

Folks,
Ive created a enterprise level code group for the intranet zone with certain SQL Client and security permissions .
I take this out of development onto a production server where I have the same code group set up.  I still get securtiy exceptions when I try to run the assembly from the server.
When I check in caspol the only code group that my assembly belongs to is the "all code" group. I woiuld have thought that all assemblies created within my intranet fall into the above code group. I obviously assume too much. What am I missing?
Cheers
Mick
WinFormsUser
Hey Mick - What do you mean when you say you've "created a enterprise level code group for the intranet zone"? Such a zone already exists by default, and will take precedence over any custom group. It's much better to define a child Code Group on the Intranet zone that grants these permissions to specific assemblies based on Evidence (e.g., strong name, URL, Publisher). 

-J-
WinFormsUser
Cheers Jay,
Sorry if Im missing the obvious here. Im having murder getting windows forms deployed using smart clients etc. on our local intranet, so thanks for your patience. A question. Say I sign an assembly, then use the security wizard to have my development machine trust all assemblies created with this signed assemblies key. If I then create a security deployment package on this machine, why is it that when I install this security deployment package on a client, I still get security exceptions when trying to use any SQL functionality. I have to manually go around the client machines, setting them to trust all assemblies created with the key of this assembly via the wizard. 
I know Im missing something obvious here.
Thanks
Mick
WinFormsUser
reply 3

You can use google to search for other answers

 

More Articles

• code signing with .exe and class library
• IE not recognising .NET dlls?
• I need help bad.
• WebLaunched Windows App
• Dec CTP bug
• Deployment of security configuration for IE hosted DLL
• Web Service
• Size of framework prerequisite seems very large.
• Database Deployment Error
• Installing Data Files
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Keeping custom directory structure durin
• Auto-update feature does not seem to wor
• Use of the deploymentProvider property i
• Install only shows XML file
• Program uninstaller
• How to best update program
• Reference Paths in publish screen
• How to get the path to the install CD
• click once only possible with IIS ?
• managed and unmanaged deployment
• Vb.net with MS-access database
• Crystal Report on the Server
• International Deployment & Prerequis
• Internet zone
• including external folders in ur deploym

Hot Articles

• Problem with Manifest File???
• ClickOnce & MS Agent
• How to trigger an event after a link has
• No Touch Deployment Not Working
• ClickOnce plus excel Template
• Necessary rights to install Click-Once a
• IEExec Loads, but no form appears...
• Removing Clickonce from a Project
• Product and package manifest
• Windows Form w/Internet Explorer
• Distribute framework
• Determine winfx runtime component and ve
• Clickonce update problem
• How to deploy a dotnet win application W
• Problem using FolderBrowser control in S

Recommend Articles

• Add Shortcut to START>All Programs wi
• Question about deploying a ClickOnce app
• Click once and trust license
• No-touch deployment .NET Framework 1.1
• How to specify WSE in the prerequisite c
• How to best update program
• Installing Framework 2.0 with non-admin
• App Config file problem w/ No-Touch Deploy
• Clickonce error when installing
• How to add an outlook express in .net s
• Shortcuts could not be removed. Try agai
• param tag does not work!!!
• ClickOnce Only One Version
• Bmp size on dialog boxes...
• getting error msg "The folder path