.NET 2.0 Medium Trust Issue - CyberSource Payment Processing

J

Jordan M.

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!
 
M

Mark Fitzpatrick

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top