Deploying Distributed App

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roger R. Smith

    #1

    Deploying Distributed App

    I am writing an application similiar to MS PetShop application in framework.
    So I have the following:

    string path = "T1Solutions.SQ LServerDAL";

    string className = "T1Solutions.SQ LServerDAL.Quot e";

    return
    (T1Solutions.ID AL.IQuote)Assem bly.Load(path). CreateInstance( className);



    T1Solutions.SQL ServerDAL.Quote implements IQuote, but I seem to get a cast
    not valid error, and I do not see why at all.

    Any ideas?

    I am getting:

    System.InvalidC astException: Specified cast is not valid.

    Server stack trace:
    at T1Solutions.DAL Factory.Quote.C reate()
    at T1Solutions.BLL .QuoteInsert.Ge tQuote(Int32 quoteId)
    at System.Runtime. Remoting.Messag ing.Message.Dis patch(Object target,
    Boolean fExecuteInConte xt)
    at
    System.Runtime. Remoting.Messag ing.StackBuilde rSink.SyncProce ssMessage(IMess a
    ge msg, Int32 methodPtr, Boolean fExecuteInConte xt)

    Exception rethrown at [0]:
    at System.Runtime. Remoting.Proxie s.RealProxy.Han dleReturnMessag e(IMessage
    reqMsg, IMessage retMsg)
    at System.Runtime. Remoting.Proxie s.RealProxy.Pri vateInvoke(Mess ageData&
    msgData, Int32 type)
    at T1Solutions.BLL .QuoteInsert.Ge tQuote(Int32 quoteId)
    at
    T1Solutions.T1S olutionsWebServ ice.ProcessFlow .QuoteControlle r.GetQuote(Int3 2
    quoteId)
    at T1Solutions.T1S olutionsWebServ ice.QuoteServic e.GetQuote(Int3 2 quoteId)


Working...