accessing marshaled_data using DBStorage !!
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > accessing marshaled_data using DBStorage !!




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    accessing marshaled_data using DBStorage !!  
Ravi Shankar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-02-04 11:21 PM

Ok. I located that and trying to do something using
VB.Net as so..

(i've included the mscscorelib.dll and Commerce 1.0
object) as com references into the project

Imports Microsoft.CommerceServer.Interop
Imports Microsoft.CommerceServer.RunTime
Imports Microsoft.CommerceServer.RunTime.Configuration

Dim oCouponGroup As New Dictionary
Dim oCouponCollection As New
System.Collections.Specialized.HybridDictionary
Dim gOrderGroupID As Guid
Dim sOrderGroupID As String
Dim sUserID As String = "{0D93ED9A-1837-4FD6-8966-
D635FB011DC6}"

oDBStorage = New
Microsoft.CommerceServer.Interop.Orders.DBStorage
oDBStorage.InitStorage(oTransactionResource.Item
("connstr_db_transactions"), "CouponGroup", "coupongroup_i
d
user_id", "Commerce.Dictionary", "marshaled_data", "d_Date
LastChanged")

gOrderGroupID = System.Guid.NewGuid()
oCouponGroup.Value("coupongroup_id") =
gOrderGroupID.ToString()

oCouponGroup.Value("user_id") = sUserID
oCouponGroup.Value("coupon_collection") =
oCouponCollection

oCouponGroup.Value("total_coupons") =
oCouponCollection.Count

oDBStorage.InsertData(vbNull, CType(oCouponGroup, Object))

But it fails at this call with an error of
type 'System.Runtime.InteropServices.COMException' thats
says "Type Mismatch"

I have a feeling its to do with which Dictionary
Defintion is getting picked up but if I get the same
error if I use the IDictionary.. (and instantiate it as
Dictionary)

Can someone help !
>-----Original Message-----
>Sometime back there was a discussion on
>accessing/processing marshaled_data !!!
>
>I can't seem to locate those threads.. Could someone
>throw fresh light on the topic please.
>
>Regards.
>.
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:01 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register