473,788 Members | 2,743 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 .SecurityExcept ion: Request for the permission of type
System.Security .Permissions.Se curityPermissio n, mscorlib,
Version=1.0.330 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9 failed.
at
System.Security .CodeAccessSecu rityEngine.Chec kTokenBasedSetH elper(Boolean
ignoreGrants, TokenBasedSet grants, TokenBasedSet denied, TokenBasedSet
demands)
at System.Security .CodeAccessSecu rityEngine.Chec kSetHelper(Perm issionSet
grants, PermissionSet denied, PermissionSet demands)
at System.AppDomai n.SetPrincipalP olicy(Principal Policy policy)
at Excellence.NET. Users.IsAdminis trator() in D:\Live
Projects\Excell ence.Net\Users. vb:line 68
at Excellence.NET. frmLogin.btnOK_ Click(Object sender, EventArgs e) in
D:\Live Projects\Excell ence.Net\Login. vb:line 183
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr 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__b77 a5c561934e089/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__b03 f5f7f11d50a3a/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__b77 a5c561934e089/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__b77 a5c561934e089/system.xml.dll
----------------------------------------
Microsoft.Visua lBasic
Assembly Version: 7.0.3300.0
Win32 Version: 7.00.9502
CodeBase:
file:///c:/windows/assembly/gac/microsoft.visua lbasic/7.0.3300.0__b03 f5f7f11d50a3a/microsoft.visua lbasic.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:

<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</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 2471
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.co m> wrote in message
news:Sq******** ************@ka roo.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 .SecurityExcept ion: Request for the permission of type
System.Security .Permissions.Se curityPermissio n, mscorlib,
Version=1.0.330 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9 failed. at
System.Security .CodeAccessSecu rityEngine.Chec kTokenBasedSetH elper(Boolean
ignoreGrants, TokenBasedSet grants, TokenBasedSet denied, TokenBasedSet
demands)
at System.Security .CodeAccessSecu rityEngine.Chec kSetHelper(Perm issionSet grants, PermissionSet denied, PermissionSet demands)
at System.AppDomai n.SetPrincipalP olicy(Principal Policy policy)
at Excellence.NET. Users.IsAdminis trator() in D:\Live
Projects\Excell ence.Net\Users. vb:line 68
at Excellence.NET. frmLogin.btnOK_ Click(Object sender, EventArgs e) in
D:\Live Projects\Excell ence.Net\Login. vb:line 183
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr 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__b77 a5c561934e089/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__b03 f5f7f11d50a3a/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__b77 a5c561934e089/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__b77 a5c561934e089/system.xml.dll ----------------------------------------
Microsoft.Visua lBasic
Assembly Version: 7.0.3300.0
Win32 Version: 7.00.9502
CodeBase:
file:///c:/windows/assembly/gac/microsoft.visua lbasic/7.0.3300.0__b03 f5f7f11d50a3a/microsoft.visua lbasic.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:

<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</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.co m> 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******** ******@TK2MSFTN GP09.phx.gbl...
* "MadCrazyNewbie " <te**@nospam.co m> 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.co m> wrote in message
news:Av******** ************@ka roo.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******** ******@TK2MSFTN GP09.phx.gbl...
* "MadCrazyNewbie " <te**@nospam.co m> 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
2036
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 / clients, and the application has an Access DB out on their network. How can I create a deployment routine where I can have a dialog box prompt for the network share (i.e. \\server\dbfolder) at install-time? Once network the share is specified...
0
1038
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 version of my application and tells me to go to Add and Remove programs from the Control Panel to remove the previous version. This would be almost acceptable if there really was a previous version but, there isn't. My real question is - is it...
4
3821
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 Access back-end. I have created a number of reports in Access and I am starting them from the Visual Basic Front End. However, I have a number of users who do not have a copy of Access which means they will obviously need the run time files. ...
3
293
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 made during the installation from one of the TextBoxes dialogs. Is this possible? If so, can someone point me in the direction of some doc or samples for this? Second, is it possible to return errors from a custom action back to the installer...
1
650
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 objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
3
399
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 knew to vb.net so I hope I am asking the question right. I have seen the one in microsoft's knowledge base but I was wondering if there were any others. thanks
7
2841
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 EXE in the Custom Actions area of the Setup and Deployment project. Unfortunately when the EXE is launched it causes the setup program to stay open until the EXE has been exited. Anyone have any ideas how to launch the EXE and get the setup...
3
264
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
3029
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 "HrCustomProvider" I know I need to use <Exec Command='aspnet_regiis.exe -pef "connectionStrings" ..\ -prov "HrCustomProvider"' /> but I cant get it to work.
1
2595
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 deployed from the console app and then use the Process obejct to invoke the ADP on the end User's workstaion. Below in this post is the code I use in the console application. Anyway, I have had to add some additional functionality to the ADP...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10113
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5402
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4074
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2896
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.