473,657 Members | 2,585 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.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 1597
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 requirePermissi on="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.goo glegroups.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
1252
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" I get an access denied msg in the client when trying to call the webservice method. If I change the trust level in the web.config to Full everything works fine. Because of things beyond my control the ASP.Net app has to run with Medium
0
1212
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 Add New Item WebService Alter code for webservice so the service inherits from SoapService, instead of the defaults, like so: (this forces your service to use
0
1103
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 trust. Is there any way to do URL posting in a medium trust environment? I'm hoping I don't need to switch hosts because of this. Thanks in advance, Amit
7
2242
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 trust. Is there any way to do URL posting in a medium trust environment? I'm hoping I don't need to switch hosts because of this. Btw I've posted this a 3rd time now because I've yet to receive any replies whatsoever. I've called around...
3
2820
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
1702
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: <galleryServerPro configSource="config\galleryserverpro.config"/> I built a custom configuration settings class (inherited from ConfigurationSection) to access this data and it works great in Full Trust. However, in Medium Trust I get a SecurityException...
4
4166
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 = (MembershipSection)WebConfigurationManager.GetSection("system.web/membership"); I have custom sections in my web.config where I specify requirePermission="false", which allows them to be read in medium trust, but it does not seem possible to do this for the membership...
5
2338
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 Microsoft.ApplicationBlocks.Data.dll is 2.0 The call to SqlConnection.Open() fails after I upgrade to .Net 3.0 The application runs under a tweaked version of Medium trust. After the upgrade and the call to .Open() fails if I change the trust to Full the...
6
2365
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 learning Credit Card processing. I dont wan't to ask for the pre-build code so i can use it but i want to learn how i can use the code and what this code is exactly doing. I am not here to ask somebody to do my job but i want to learn so please i...
0
8310
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7333
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2731
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1620
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.