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. 4 2472
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.
* "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/>
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/>
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/>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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.
...
|
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...
|
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....
| |
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
|
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...
|
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
|
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.
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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,...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |