473,382 Members | 1,786 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,382 software developers and data experts.

Debug That assembly does not allow partially trusted callers

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 Visual Studio 2005 Web Deployment Project which is
configured to add the AllowPartiallyTrustedCallers attribute to the
assemblies.

However I still get a SecurityException with the message "That assembly does
not allow partially trusted callers"
The top 2 frames of the call stack are
ASP.default.aspx..ctor()
__ASP.FastObjectFactory_app_web_default_aspx_cdcab 7d2_muaz0ibj.Create_ASP_default.aspx()
How do I find out WHAT assembly is meant with THAT?

Jul 3 '08 #1
3 2711
if you apply the AllowPartiallyTrustedCallers attribute to an assembly, to
run it in a mediumn trust enviroment, it must be strongly named, and
installed in the gac. you host probably did not install your page assemblies
in the gac, so the first load of a page gets the error.
-- bruce (sqlwork.com)
"Joris van Lier" wrote:
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 Visual Studio 2005 Web Deployment Project which is
configured to add the AllowPartiallyTrustedCallers attribute to the
assemblies.

However I still get a SecurityException with the message "That assembly does
not allow partially trusted callers"
The top 2 frames of the call stack are
ASP.default.aspx..ctor()
__ASP.FastObjectFactory_app_web_default_aspx_cdcab 7d2_muaz0ibj.Create_ASP_default.aspx()
How do I find out WHAT assembly is meant with THAT?

Jul 3 '08 #2
"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:39**********************************@microsof t.com...
if you apply the AllowPartiallyTrustedCallers attribute to an assembly, to
run it in a mediumn trust enviroment, it must be strongly named, and
installed in the gac. you host probably did not install your page
assemblies
in the gac, so the first load of a page gets the error.
Do you mean that my website assemblies (the compiled pages) must be
installed in GAC or Odbc.NET ?
How am I supposed to do updates on the site when the host doesn't allow me
to install assy's into GAC??

Jul 4 '08 #3
One way is to complain. I have found that admins have all sorts of weird
security policy without understanding the implications of these policies. On
the other hand, they may have a very straight forward way to address your
issue. You won't know until you inform them of the problem you are having.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Download OWC Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $15.00
-------------------------------------------------------
"Joris van Lier" <wh*****@hotmail.comwrote in message
news:13**********************************@microsof t.com...
"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:39**********************************@microsof t.com...
>if you apply the AllowPartiallyTrustedCallers attribute to an assembly,
to
run it in a mediumn trust enviroment, it must be strongly named, and
installed in the gac. you host probably did not install your page
assemblies
in the gac, so the first load of a page gets the error.

Do you mean that my website assemblies (the compiled pages) must be
installed in GAC or Odbc.NET ?
How am I supposed to do updates on the site when the host doesn't allow me
to install assy's into GAC??
Jul 8 '08 #4

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

Similar topics

15
by: Thomas Christmann | last post by:
Hi! I have a rather special question here. I'd like to write a wrapper for a .NET assembly, and register that on my server so that the people on my server call my assembly instead of the...
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...
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: srussell705 | last post by:
Having a hard time with this VS2005 VB 3tier winform app. I run teh app in debug mde just fine. I go to the folder for debug and click on the exe file. The JIT error comes up: ...
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...
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
ssnaik84
by: ssnaik84 | last post by:
Hello, I've recently added Quartz.net for scheduling of jobs in my website. It's working fine on my localhost. But, giving me problem on hosting server. Inner Ex:...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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 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.