cancel
Showing results for 
Search instead for 
Did you mean: 

ASP.net Hello World Error

We are attempting to set up the C# Hello World within an ASP.net website. Our project currently has ChargeCreditCard.cs imported from the sample code, and an index.cshtml that calls ChargeCreditCard.Run as soon as the page loads.

 

When we test the page, we are given the following error message:

"FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.

AuthorizeNet.Environment.GetProperty(string propertyName)

TypeInitializationException: The type initializer for 'AuthorizeNet.Util.HttpUtility' threw an exception.

AuthorizeNet.Util.HttpUtility.GetPostUrl(Environment env)"

 

Using breakpoints, we have determined that the error is thrown when "controller.Execute();" is called on line 66. We can't determine the cause of the error.

 

Can anyone explain the solution to this error, or provide us with a proper guide on setting up a Hello World transaction using ASP.net?

axongroup
Member
0 REPLIES 0