Link to home
Start Free TrialLog in
Avatar of JRockFL
JRockFLFlag for United States of America

asked on

Type.GetType returning null

Please look at the screen shot.
Type.GetType() is returning null.

I have a reference to the assembly BaitShop.Payment.AuthorizeNetUser generated imagefrom BaitShop.BusinessLogic
Avatar of kaufmed
kaufmed
Flag of United States of America image

What value does Data.Payment.GetAssemblyForDefaultGateway return?
Avatar of p_davis
p_davis

Can you post the code for that method
Are you checking for null and returning a default value
Avatar of JRockFL

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.AuthorizeNet.AuthorizeNetProcessor, BaitShop.Payment.AuthorizeNet";

        public static string GetAssemblyForDefaultGateway()
        {
            return GATEWAY;
        }
    }
}
Did you try making the private member static
Avatar of JRockFL

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?

?System.Reflection.Assembly.Load("BaitShop.Payment.AuthorizeNet")
ASKER CERTIFIED SOLUTION
Avatar of JRockFL
JRockFL
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JRockFL

ASKER

This is the correct solution