473,324 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Deployment Question

Hey group,

Could somebody possibly help? I know i`ve asked this before but ended up
getting so confused.

If I take my .exe from my bin directory and move it to another PC, i keep
getting loads of security exceptions.(See Below)

Anybody got a simple how to on builing a deployment package or script to
sort this.

Many Thanks
MCN

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Security.SecurityException: Request for the permission of type
System.Security.Permissions.SecurityPermission, mscorlib,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
at
System.Security.CodeAccessSecurityEngine.CheckToke nBasedSetHelper(Boolean
ignoreGrants, TokenBasedSet grants, TokenBasedSet denied, TokenBasedSet
demands)
at System.Security.CodeAccessSecurityEngine.CheckSetH elper(PermissionSet
grants, PermissionSet denied, PermissionSet demands)
at System.AppDomain.SetPrincipalPolicy(PrincipalPolic y policy)
at Excellence.NET.Users.IsAdministrator() in D:\Live
Projects\Excellence.Net\Users.vb:line 68
at Excellence.NET.frmLogin.btnOK_Click(Object sender, EventArgs e) in
D:\Live Projects\Excellence.Net\Login.vb:line 183
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.0.3705/mscorlib.dll
----------------------------------------
System
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Excellence.NET
Assembly Version: 1.0.1566.19725
Win32 Version: 1.0.1566.19725
CodeBase: file:///L:/Excellence.NET.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/windows/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.3300.0__b77a5c561934e089/system.xml.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.3300.0
Win32 Version: 7.00.9502
CodeBase:
file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.3300.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
Nov 20 '05 #1
4 2411
Add a new project to your solution: instead of choosing a "Visual Basic
Project" chose a "Setup and deployment project" and use there the "Setup
wizard".
You can find more info when you search for "Setup Project" in the Help of
Visual Studio.

Hope this is enough info?

Another thing I use with my setups is the dotNetInstaller: It makes sure
that the framework and other dependencies are installed. Really usefull!
You can find it on:
http://www.devage.com/dotNetInstalle...Installer.html

Pieter

"MadCrazyNewbie" <te**@nospam.com> wrote in message
news:Sq********************@karoo.co.uk...
Hey group,

Could somebody possibly help? I know i`ve asked this before but ended up
getting so confused.

If I take my .exe from my bin directory and move it to another PC, i keep
getting loads of security exceptions.(See Below)

Anybody got a simple how to on builing a deployment package or script to
sort this.

Many Thanks
MCN

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Security.SecurityException: Request for the permission of type
System.Security.Permissions.SecurityPermission, mscorlib,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. at
System.Security.CodeAccessSecurityEngine.CheckToke nBasedSetHelper(Boolean
ignoreGrants, TokenBasedSet grants, TokenBasedSet denied, TokenBasedSet
demands)
at System.Security.CodeAccessSecurityEngine.CheckSetH elper(PermissionSet grants, PermissionSet denied, PermissionSet demands)
at System.AppDomain.SetPrincipalPolicy(PrincipalPolic y policy)
at Excellence.NET.Users.IsAdministrator() in D:\Live
Projects\Excellence.Net\Users.vb:line 68
at Excellence.NET.frmLogin.btnOK_Click(Object sender, EventArgs e) in
D:\Live Projects\Excellence.Net\Login.vb:line 183
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.0.3705/mscorlib.dll
----------------------------------------
System
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll ----------------------------------------
System.Drawing
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/system.drawing.dll ----------------------------------------
Excellence.NET
Assembly Version: 1.0.1566.19725
Win32 Version: 1.0.1566.19725
CodeBase: file:///L:/Excellence.NET.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/windows/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c561934e089/system.windows.forms.dll ----------------------------------------
System.Xml
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.288
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.3300.0__b77a5c561934e089/system.xml.dll ----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.3300.0
Win32 Version: 7.00.9502
CodeBase:
file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.3300.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll ----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.

Nov 20 '05 #2
* "MadCrazyNewbie" <te**@nospam.com> scripsit:
Could somebody possibly help? I know i`ve asked this before but ended up
getting so confused.

If I take my .exe from my bin directory and move it to another PC, i keep
getting loads of security exceptions.(See Below)

Anybody got a simple how to on builing a deployment package or script to
sort this.


Is the application installed to a network drive?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
Herfried K,

Yes My application is running from a shared Network Drive, to about 4 users.

Ya
MCN

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Ob**************@TK2MSFTNGP09.phx.gbl...
* "MadCrazyNewbie" <te**@nospam.com> scripsit:
Could somebody possibly help? I know i`ve asked this before but ended up
getting so confused.

If I take my .exe from my bin directory and move it to another PC, i keep getting loads of security exceptions.(See Below)

Anybody got a simple how to on builing a deployment package or script to
sort this.


Is the application installed to a network drive?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #4
Perhaps this will help

http://msdn.microsoft.com/library/de...ecpoladmin.asp
"MadCrazyNewbie" <te**@nospam.com> wrote in message
news:Av********************@karoo.co.uk...
Herfried K,

Yes My application is running from a shared Network Drive, to about 4 users.
Ya
MCN

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Ob**************@TK2MSFTNGP09.phx.gbl...
* "MadCrazyNewbie" <te**@nospam.com> scripsit:
Could somebody possibly help? I know i`ve asked this before but ended up getting so confused.

If I take my .exe from my bin directory and move it to another PC, i keep getting loads of security exceptions.(See Below)

Anybody got a simple how to on builing a deployment package or script to sort this.


Is the application installed to a network drive?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Paul | last post by:
Hello everyone: I am developing a VB.Net Windows Application and I am now ready to create the deployment project for it. This application needs to be installable on a different number of users...
0
by: Bob Curry | last post by:
I have a pretty simple project (C++) which I'm trying to deploy using a VS.NET deployment project. The problem I'm having is that when the deployment project is executing, it finds a previous...
4
by: Thornmastr | last post by:
Good Afternoon, I need to distribute an application which includes the run time files for Access 2002. I do have the Office XP Developer CD’s. The application itself is written in VB 6 with an...
3
by: Jim Owen | last post by:
Hi All, I'm putting together my first web deployment project using VS2003 and have a few questions someone might be able to help on. First, I need to modify the web.config file based on entries...
1
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
3
by: Steve | last post by:
Does anyone know where I could find a walkthrough on setup and deployment. I want to distribute an application I wrote. I want it to have a liscense agreement show up during the istallation. I am...
7
by: dhussong | last post by:
I have created a Setup and Deployment project in Visual Studio.NET 2003. After my installation has completed running I'd like to launch the EXE that I just installed. I've found how to launch the...
3
by: Ant | last post by:
Hi, Is there a newsgroup here committed to deployment (specifically using setup & deployment projects)? Are there any good MS press books on the subject? Thanks very much for any clues Ant
10
by: =?Utf-8?B?Q2h1Y2sgUA==?= | last post by:
In a web deployment project I want to encrypt the connection strings. I use to do this with a batch file with something like this. aspnet_regiis.exe -pef "connectionStrings" ..\ -prov...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
I use "Click Once" Deployment from VS2005. Works like a charm. I have to deploy a console app and an MS Access ADP. The console app invokes the ADP. I copy the ADP to the application files to be...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.