You're probably referencing the class from a different namespace and not using the "using" keyword to "bring in" the other namespace. Google for more information about namespaces and how they work.
I've downloaded the PayPal sample for C# from your LimeLM Web API Pack. When I open it in VS2012 I'm getting the following error in every file that is using PaymentSettings.cs file:
Error: The name PaymentSettings does not exist in the current context.
For example you get the above error in Payment.aspx.cs code behind file at the following line:
if ((PaymentSettings.UseAuthorizeNetCC || PaymentSettings.UseAuthorizeNetBank) && !PaymentSettings.AuthNetTest && !Request.IsSecureConnection){ ..... .....}
I can see your PaymentSettings.cs file exists in the root directory of the project. It seems it probably needs to be referenced somehow in, for example, Payment.aspx.cs code behind file that's showing the above error. Thanks..Saf
You're probably referencing the class from a different namespace and not using the "using" keyword to "bring in" the other namespace. Google for more information about namespaces and how they work.
Wyday,
I've not made any changes to this C# sample the project yet. Which namespace I need to include? On top of payment.aspx.cs there are two namespaces and then, after your response, I added "using LimeLM_API;" as follows. But still the same error. Is there something else I'm missing? Thanks..Saf
using System;using System.Web.UI;using LimeLM_API;
We're having no problems running our pre-built project. It sounds like you're heavily modifying it without understanding what you need to keep and what namespaces are.