In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.
Sometimes seems to be happening in CSharp. Now I get the error:
"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."
Is there a work around here, or is this really a question for an XP
group? I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. Some are not
comfortable with this.
Dom 6 1118
On Apr 22, 3:31 pm, Dom <dolivas...@gmail.comwrote:
In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.
Sometimes seems to be happening in CSharp. Now I get the error:
"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."
Is there a work around here, or is this really a question for an XP
group? I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. Some are not
comfortable with this.
Dom
SqlClientPermission probably means that your program doesnt have the
right credentials to access the DB.
Check the connection string..
On Apr 22, 3:50 pm, parez <psaw...@gmail.comwrote:
On Apr 22, 3:31 pm, Dom <dolivas...@gmail.comwrote:
In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.
Sometimes seems to be happening in CSharp. Now I get the error:
"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."
Is there a work around here, or is this really a question for an XP
group? I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. Some are not
comfortable with this.
Dom
SqlClientPermission probably means that your program doesnt have the
right credentials to access the DB.
Check the connection string..
if thats not the probem, that this could fx it..
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\casp ol -q -machine -
addgroup 1 -url file://s:/Applicatoin/Some.exe FullTrust -name "My
App"
On Apr 22, 3:57*pm, parez <psaw...@gmail.comwrote:
On Apr 22, 3:50 pm, parez <psaw...@gmail.comwrote:
On Apr 22, 3:31 pm, Dom <dolivas...@gmail.comwrote:
In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. *Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.
Sometimes seems to be happening in CSharp. *Now I get the error:
"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."
Is there a work around here, or is this really a question for an XP
group? *I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. *Some are not
comfortable with this.
Dom
SqlClientPermission probably means that your program doesnt have the
right credentials to access the DB.
Check the connection string..
if thats not the probem, that this could fx it..
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\casp ol -q -machine -
addgroup 1 -url file://s:/Applicatoin/Some.exe *FullTrust -name "My
App"- Hide quoted text -
- Show quoted text -
Thanks for the two suggestions. I'd like to see if I can fix it in
the connection string. Here is the one I am using:
"Data Source=<Server>; Initial Catalog=<Database>; User ID=sa;
Password=; Connection Timeout=60"
Am I leaving something important out? The "sa" and no password is
done on my "test server".
Dom
On Apr 22, 3:31*pm, Dom <dolivas...@gmail.comwrote:
In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. *Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.
Sometimes seems to be happening in CSharp. *Now I get the error:
"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."
Is there a work around here, or is this really a question for an XP
group? *I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. *Some are not
comfortable with this.
Dom
Hi,
If you give full trust to the local network your problems might be
solved.
One question though, does this error happen always or just some times?
On Apr 22, 4:15*pm, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac...@gmail.comwrote:
On Apr 22, 3:31*pm, Dom <dolivas...@gmail.comwrote:
In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. *Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.
Sometimes seems to be happening in CSharp. *Now I get the error:
"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."
Is there a work around here, or is this really a question for an XP
group? *I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. *Some are not
comfortable with this.
Dom
Hi,
If you give full trust to the local network your problems might be
solved.
One question though, does this error happen always or just some times?- Hide quoted text -
- Show quoted text -
Always, at least for the program in question. Of course, if I write a
program that does not access the server, this error won't occur, and I
assume no other error will either.
Dom
On Apr 22, 4:36*pm, Dom <dolivas...@gmail.comwrote:
On Apr 22, 4:15*pm, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac...@gmail.comwrote:
On Apr 22, 3:31*pm, Dom <dolivas...@gmail.comwrote:
In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. *Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.
Sometimes seems to be happening in CSharp. *Now I get the error:
"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."
Is there a work around here, or is this really a question for an XP
group? *I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. *Some are not
comfortable with this.
Dom
Hi,
If you give full trust to the local network your problems might be
solved.
One question though, does this error happen always or just some times?- Hide quoted text -
- Show quoted text -
Always, at least for the program in question. *Of course, if I write a
program that does not access the server, this error won't occur, and I
assume no other error will either.
Dom- Hide quoted text -
- Show quoted text -
Give the local network full trust and see what happen This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: David Lindgren |
last post by:
Hello!
When I am trying to run my .NET application from a network drive a
System.Security.SecurityException exception is thrown. Why is that? How do I
prevent it?
Thanks!
/David.
|
by: Kristian |
last post by:
Hi All.
This test code:
using System.Net.Sockets;
using System.Net;
using System;
class mail{
public static void Main(){
|
by: Eran Kampf |
last post by:
I am trying to dynamically create directories in my ASP.NET application (I
am using Server.MapPath("/")+"test" as the folder)
and I am getting a DirectoryNotFoundException saying "Could not find a...
|
by: Steven |
last post by:
I have developed an application using VB.NET, it works fine in my local
drive. However, security exception is flowed when I try to run the release
program under a network drive. I have signed the...
|
by: CsharpGuy |
last post by:
I have an asp.net (C#) web form that needs to run an exe off of a network
drive and when i load the page i'm getting the following error message:
The application attempted to perform an operation...
|
by: Richard MSL |
last post by:
I am having problems working with .net security. I have been attempting to
use the Microsoft .Net Framework 2.0 Configuration tool (version
2.0.50727.42), but it won't work for me. I have a simple...
|
by: alex |
last post by:
Hi,
this always works:
private ConsoleToTextbox myConsole;
Console.SetOut(myConsole);
But now (a few weeks later i started this project again)
i get a non handeld security exception
from...
|
by: Kathy |
last post by:
One of my customers is running an Access 2003 application. They have
the Macro Security Level set to Low. When the .mde app is executed
directly from the C: drive on their server, they get into...
|
by: GMiller |
last post by:
I am fairly new to .NET programming so this may be a simplistic
question. I wrote a C# application that reads and writes files. If
the program resides on a local drive everything is fine. If...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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: 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...
| |