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

Partially Trusted Callers Exception

Hi,

I've just deployed my application which I ported from VS.Net 2003 to VS.Net
2005 and also from SQLServer to Teradata.

When I put the executable on the network it won't run.
The error is as follows:
System.InvalidOperationException
{"An error occurred creating the form. See Exception.InnerException for
details. The error is: That assembly does not allow partially trusted
callers."}

Does anyone know how I can change the security settings for the application
on the network. It runs fine from a desktop.

Feb 14 '07 #1
4 2609
Ignore this, I just remembered it needed a caspol config for .net framework 2
as follows in a batch file which worked. Thanks.

C:
CD\
CD C:\WINNT\Microsoft.NET\Framework\v2.0.50727\
CLS
caspol -machine -chggroup LocalIntranet_Zone FullTrust
Feb 14 '07 #2
Is this the ONLY way to do it, or is there something that can be changed
in the program so it doesn't have to be full trust?

Darin

*** Sent via Developersdex http://www.developersdex.com ***
Feb 28 '07 #3
On Feb 28, 1:04 pm, Darin <darin_nospam@nospameverwrote:
Is this the ONLY way to do it, or is there something that can be changed
in the program so it doesn't have to be full trust?

Darin

*** Sent via Developersdexhttp://www.developersdex.com***
Darin,

It cannot be done in code because a malicious programmer could exploit
that to do whatever they liked.

Brian

Feb 28 '07 #4
I understand that - it was just so easy w/ 1.1 .NET to change the
security settings - I can't seem to find the security settings for 2.0
anywhere.

Is there something specific in the program that says this has to be full
trust. I have done the oneclick setup and had it calculate what level
and my app says full trust - it would be very helpful if it explained
why it came to that conclusion.

Darin

*** Sent via Developersdex http://www.developersdex.com ***
Feb 28 '07 #5

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

Similar topics

4
by: g3000 | last post by:
I developed on a Win2K3 Server with VS 2005 Published a web app to my local drive. Copied that folder to a Win2K3 Server. Configured a new virtual directory Moved the files there. Modified...
1
by: Pierre | last post by:
Hi all, I have developped a set of WSs and everything works fine when I try it on my local network. When I export them on my host's server though I get the following error on my client: ...
2
by: Vandana T | last post by:
I created a console application to read and manipulate an Excel file. I added reference to the Microsoft Excel 11.0 Object Library. When I place it in Network Drive and try to run the .exe from my...
1
by: Matt Culbreth | last post by:
Hello All, I've got a very simple ASP.NET 2.0 application which uses a DLL from a third party. I don't have the source to this DLL. Everything has been working fine on my XP development...
5
by: =?Utf-8?B?TWFydHluIEZld3RyZWxs?= | last post by:
From the amount of articles about this one I’m sure this gets asked a lot, but I haven’t yet found a succinct article which explains what is required in its entirety. I work using Visual...
1
by: John G | last post by:
I have created an ActiveX control that does word automation. Once I creat an instance of work I get the following message System.Security.SecurityException: That assembly does not allow partially...
1
by: nish85 | last post by:
Hi, i have uploaded my sit to web server goddady.com i have a button to download dyanmically generated excel file.This button is ajax enabled.....When i am click on this button it will popup a...
3
by: Joris van Lier | last post by:
I'm running an ASP.NET 2.0 web application in a Medium Trust environment, the application uses ODBC to connecto to MySQL and the hosting company has granted OdbcPermission, the solution includes a...
0
by: John G | last post by:
I tried creating a app with Silverlight. The app works great when I run it in vs.net 2008. But when I publish the app I get the following error: Assembly does not allow partially trusted callers ...
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.