hi
I build a VB .NET application that makes file access, environnemet acess,
database access, etc....
If I ran the app locally, everything works....(normal)
If I copy the app on a server, and execute it, everything works until a
file/environnement/database access !.....
I just want that my app may run in every machine!
I dont want to use client app like caspol.exe or mscorcfg.msc...(because I
dont want to execute them in every computer!)
I found information on FileIOPermission, EnvirronementPermissionAttribute,
.....
for exemple : <Assembly: FileIOPermission(SecurityAction.RequestMinimum,
Unrestricted:=True)>
but nothing works (the program ask me for a debug)
I also found this code :
Dim fp As EnvironmentPermission
Try
fp = New EnvironmentPermission(PermissionState.Unrestricted )
fp.Demand()
Catch e1 As Exception
MessageBox.Show(e1.Message)
End Try
BUT nothing works!
I have something like :
System.Security.Permissions.FileIOPermission, mscorlib,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed.
I dont have found info on configuration files such as security.conf or
machine.conf...
Is it possible to resolve my problem with that?
so, my friends, you are my last chance....
What I must do?
thanks for your futur response
lobrys 2 8264
If it's loaded locally, then it's fully trusted and can do what you want. If
it's loaded from a server, it is kept within the Code Access Security
sandbox. Try going to Start | Administrative Tools | Microsoft .NET
Framework 1.1 Wizards, and then go through the steps to "Trust an Assembly"
to let it do whatever it wants. Otherwise you could tweak the permissions so
that it only lets the app access one specific directory, database, etc.
"lobrys" <PU************@SPAMfreeDE.MERDE.fr> wrote in message
news:OE**************@TK2MSFTNGP11.phx.gbl... hi
I build a VB .NET application that makes file access, environnemet acess, database access, etc.... If I ran the app locally, everything works....(normal)
If I copy the app on a server, and execute it, everything works until a file/environnement/database access !.....
I just want that my app may run in every machine! I dont want to use client app like caspol.exe or mscorcfg.msc...(because I dont want to execute them in every computer!)
I found information on FileIOPermission, EnvirronementPermissionAttribute, .... for exemple : <Assembly: FileIOPermission(SecurityAction.RequestMinimum, Unrestricted:=True)> but nothing works (the program ask me for a debug)
I also found this code :
Dim fp As EnvironmentPermission Try fp = New EnvironmentPermission(PermissionState.Unrestricted ) fp.Demand() Catch e1 As Exception MessageBox.Show(e1.Message) End Try
BUT nothing works! I have something like : System.Security.Permissions.FileIOPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
I dont have found info on configuration files such as security.conf or machine.conf... Is it possible to resolve my problem with that?
so, my friends, you are my last chance.... What I must do?
thanks for your futur response
lobrys
"Otherwise you could tweak the permissions so that it only lets the app
access one specific directory, database, etc."
How can you do that? (in the code?)
lobrys
"Ed Kaim [MSFT]" <ed****@online.microsoft.com> a écrit dans le message de
news:u5**************@TK2MSFTNGP11.phx.gbl... If it's loaded locally, then it's fully trusted and can do what you want.
If it's loaded from a server, it is kept within the Code Access Security sandbox. Try going to Start | Administrative Tools | Microsoft .NET Framework 1.1 Wizards, and then go through the steps to "Trust an
Assembly" to let it do whatever it wants. Otherwise you could tweak the permissions
so that it only lets the app access one specific directory, database, etc.
"lobrys" <PU************@SPAMfreeDE.MERDE.fr> wrote in message news:OE**************@TK2MSFTNGP11.phx.gbl... hi
I build a VB .NET application that makes file access, environnemet
acess, database access, etc.... If I ran the app locally, everything works....(normal)
If I copy the app on a server, and execute it, everything works until a file/environnement/database access !.....
I just want that my app may run in every machine! I dont want to use client app like caspol.exe or mscorcfg.msc...(because
I dont want to execute them in every computer!)
I found information on FileIOPermission,
EnvirronementPermissionAttribute, .... for exemple : <Assembly: FileIOPermission(SecurityAction.RequestMinimum, Unrestricted:=True)> but nothing works (the program ask me for a debug)
I also found this code :
Dim fp As EnvironmentPermission Try fp = New EnvironmentPermission(PermissionState.Unrestricted ) fp.Demand() Catch e1 As Exception MessageBox.Show(e1.Message) End Try
BUT nothing works! I have something like : System.Security.Permissions.FileIOPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
I dont have found info on configuration files such as security.conf or machine.conf... Is it possible to resolve my problem with that?
so, my friends, you are my last chance.... What I must do?
thanks for your futur response
lobrys
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andreas Pauley |
last post by:
Hi all,
I'm starting with a Point of Sale system (QT gui, MySQL db) and I'm
wondering if there are any user management/user security modules available
that can be reused independently of the...
|
by: mark | r |
last post by:
we're working on a cms system that allows the admin to upload files to the
server - the host (supplied by the client) says that opening write
permissions means that windows is open to exploits.
...
|
by: K Finegan |
last post by:
I have an archival process on a large database that runs once a month.
At the beginning of the process the triggers and indexes on the
tables whose data is moved are dropped, the data is moved and...
|
by: Luklrc |
last post by:
Hi,
I'm having to create a querysting with javascript. My problem is that
javscript turns the "&" characher into "&" when it gets used as a
querystring in the url EG:
...
|
by: Tim Marshall |
last post by:
I have a problem in that users can't seem to access menu bars created by
a developer in the admins group. Details are as follows:
I'm following the MS Access Secirty FAQ version 2.41 and I can't...
| |
by: Jerry Negrelli |
last post by:
I'm running an ASP.NET application which uses
impersonation & Windows authentication to set the current
Principal. One of my methods was taking an awful long
time to run, so I decided to launch...
|
by: Matthew Lee |
last post by:
I am using a C# / ASP.NET application to fire an XCOPY job from the
webserver to a UNC share. This setup works fine when copying to a
local machine but refuses to work on the remote copy. The...
|
by: lobrys |
last post by:
hi
I build a VB .NET application that makes file access, environnemet acess,
database access, etc....
If I ran the app locally, everything works....(normal)
If I copy the app on a server, and...
|
by: Roger F |
last post by:
Help Please
When I insert code into my database ie.
This & That
I see it is the same in the data base but when I go to view it, it as changed into.
This & That
What is happening, rather a...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
| |
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...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
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...
|
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 ...
| |