cancel
Showing results for 
Search instead for 
Did you mean: 

Test Account Problems with C# in ASP.NET MVC Application

Hi All,

 

I am new with Authorize.Net. I followed everything from https://developer.authorize.net/integration/fifteenminutes/csharp,

I set up the test account.

I created a ASP.NET MVC application in VS 2008.

 

After following the Step:5, when I build the code,the environment is returning the following errors

 

Error 1: The type or namespace name 'HttpPostAttribute' could not be found (are you missing a using directive or an assembly refe\rence?)
Error 2: The type or namespace name 'HttpPost' could not be found (are you missing a using directive or an assembly reference?)

 

I performed teh following steps to manuver this error

1) The AuthorizeNet.dll reference is added in the MVC web application project

2) The AuthorizeNet.Helpers.dll reference is added in the MVC web application project

 3) In HomeController class file, I try to add a reference as

using AuthorizeNet;

using AuthorizeNet.Helpers

 

but nothing worked :-(

 

Please let me know how to resolve this issue. Any help will be appreciated

 

 

aliahmad
Member
4 REPLIES 4

For knowledge, I am setting up teh test Account with DIRECT POST METHOD.

aliahmad
Member

Step 5 of the FifteenMinutes should be ammended to replace this:
[HttpPost]

With this:

[AcceptVerbs(HttpVerbs.Post)]

   This is a change from one version of ASP.NET MVC to another - I think from MVC 1 to MVC 2 (2 favors the shorter syntax).

 

 

Thank you,

 

Elaine

Elaine
Trusted Contributor
Trusted Contributor

Hi I would like to ask if where did you get the AuthorizeNet.Helpers.dll? I downloaded the SDK for Csharp but I can't find it.

arnels84
Member

anet_dotnet_sdk-1.7.1.zip\AuthorizeNet.Helpers\bin\Release