I’m trying to get credit card processing for a friends website. The processing will be through authorize.net. The sample code is written in classic asp. I’ve been trying to run it, but the following piece is giving me an error:
objRequest = Server.CreateObject("Microsoft.XMLHTTP")
I’m getting the following error:
{“The component ‘Microsoft.XMLHTTP’ cannot be created. Apartment threaded components can only be created on pages with an <%@ Page aspcompat=true %> page directive.”}
How do I enable asp compatibility mode with the Razor engine? The page directive is not the same as aspx. I tried creating an aspx view for just that page, but of course it won’t use the master page and it threw a few other errors. I’d really like to get this working with Razor. Any thoughts? Thanks!
You will need to look at either the C# sample code or the VB.NET sample code (Depending on your language of choice).
They are written in ASP.NET format.
http://developer.authorize.net/downloads/samplecode