473,325 Members | 2,870 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,325 software developers and data experts.

Permissions & security & vb.Net & my head sick

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



Jul 21 '05 #1
2 8250
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


Jul 21 '05 #2
"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



Jul 21 '05 #3

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

Similar topics

0
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...
2
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. ...
0
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...
4
by: Luklrc | last post by:
Hi, I'm having to create a querysting with javascript. My problem is that javscript turns the "&" characher into "&amp;" when it gets used as a querystring in the url EG: ...
8
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...
1
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...
2
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...
2
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...
3
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 &amp; That What is happening, rather a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
1
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: 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: 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.