JRockFL
asked on
Type.GetType returning null
What value does Data.Payment.GetAssemblyFo rDefaultGa teway return?
Can you post the code for that method
Are you checking for null and returning a default value
Are you checking for null and returning a default value
ASKER
Here is the code. If you look in the immediate window of the screen shot, it returns null.
namespace BaitShop.Data
{
public class Payment
{
private const string GATEWAY = "BaitShop.Payment.Authoriz eNet.Autho rizeNetPro cessor, BaitShop.Payment.Authorize Net";
public static string GetAssemblyForDefaultGatew ay()
{
return GATEWAY;
}
}
}
namespace BaitShop.Data
{
public class Payment
{
private const string GATEWAY = "BaitShop.Payment.Authoriz
public static string GetAssemblyForDefaultGatew
{
return GATEWAY;
}
}
}
Did you try making the private member static
ASKER
If you look at the immediate window, it is returning null.
Well either way, would make your public method a public property
You haven't modified the namespace(s) within AuthorizeNetProcessor.cs, correct? And the class name matches the filename, yes?
If you break on that line, and then enter the following in the Immediate Window, do you get a good result back?
If you break on that line, and then enter the following in the Immediate Window, do you get a good result back?
?System.Reflection.Assembl y.Load("Ba itShop.Pay ment.Autho rizeNet")
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is the correct solution