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

.NET 2.0 Medium Trust Issue - CyberSource Payment Processing

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!

Jun 22 '07 #1
1 1585
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.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Jordan M." <jo***********@gmail.comwrote in message
news:11**********************@o11g2000prd.googlegr oups.com...
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!

Jun 23 '07 #2

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

Similar topics

0
by: Michael Howes | last post by:
I have a webservice and use WSE so a user can upload a good sized file. The entire ASP.Net projects, web.config sets a Medium trust level IIS is set up to use "Integrated Windows authentication"...
0
by: Stu | last post by:
I x-posted this in the enhancements group as well, looking for some help: Need help with a CAS issue with WSE3. Enable an asp.net2 webapp to use WSE3. Create a new webservice in the app via...
0
by: AmitKu | last post by:
I am trying to do a URL post using HttpWebRequest, but it fails because I am hosting on Network Solutions, and their servers are all medium trust. Apparently HttpWebRequest doesn't work on medium...
7
by: AmitKu | last post by:
I am trying to do a URL post using HttpWebRequest, but it fails because I am hosting on Network Solutions, and their servers are all medium trust. Apparently HttpWebRequest doesn't work on medium...
3
by: Mukesh | last post by:
Hi all I have Created an web application using VS 2005, asp.net2.0, Ajax Extensions 1.0, Ent Lib 3.1 , MS sql Server 2005, ajax Control tool kit Version 1.0.10618.0
6
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
I have configuration data for a web application stored in a file galleryserverpro.config located in a config folder off the root application. Web.config references this file like this:...
4
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
Is it possible for a medium trust web application to read the Membership providers? The following throws a SecurityException: MembershipSection membershipSection =...
5
by: Michael Howes | last post by:
I'm upgrading a VS 2003/.Net 1.1 ASP.Net application to VS 2008/.Net 3.0 The application uses an older version of the Microsoft Data Blocks for database access. The version in the...
6
by: mfaisalwarraich | last post by:
Hello Dear Developers, I am sorry if this thread gona bother you but i have googled around about the PHP Credit Card Processor tutorials but i could not find any good tutorial that can help me...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.