Reply
Highlighted
Member
Posts: 2
Registered: ‎03-21-2011

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

 

 

Highlighted
Member
Posts: 2
Registered: ‎03-21-2011

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

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

Highlighted
Trusted Contributor
Posts: 451
Registered: ‎08-21-2009

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

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

Highlighted
Member
Posts: 2
Registered: ‎10-15-2012

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

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.

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

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

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