Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

.NET 2.0 Medium Trust Issue - CyberSource Payment Processing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jordan M. - 22 Jun 2007 21:39 GMT
Hi,

Hopefully someone can help or at least point me in the right
direction...

I have developed a site that uses the CyberSource system to process
credit cards. All works great locally on my dev. computer. When I
upload to my main server (Shared Hosting, setup with Medium Trust), I
get an error that says "That assembly does not allow partially trusted
callers.".

If the server admins, for testing purposes, set the site to Full
Trust, then the page works perfectly. However, they are unwilling to
leave it that way.

Does anyone know how I can resolve this issue? How can I get this code
to run in Medium Trust? Any suggestions for the server admins to
isolating this and getting it to run?

Thanks!
Mark Fitzpatrick - 23 Jun 2007 14:29 GMT
It's very hard to understand exactly what is requiring full trust. What
assembly is the error referring to? One thing you can try, is if there's a
configuration entry in the web.config for an assembly group you can try
adding requirePermission="false".

Your best bet though is to first see if the assembly in question can even
run in partial trust. Some absolutely cannot not matter what you try since
they require features that aren't available in partial trust environments.
Test locally by adding <trust  level="Medium" /> to your local config file
(in the system.web section). This will give you a similar environment to
your host and help you debug. You'll need to remove this configuration
before publishing though or you'll receive an error on the host.

Signature

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

> Hi,
>
[quoted text clipped - 16 lines]
>
> Thanks!

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.