.NETGURU
reflection/assembly/file dependancies...
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngcs' list.


Robert Chartier

here's the situation:

im generating proxy assemblies from web service @ runtime
i have a custom class which holds this actual assembly, among other things
i serialize this custom class to my database

then i deserailize, and everything is fine.

I then delete the actual .DLL from my app's bin directory for just the
generated proxy class

then i again attempt to deserialize, and it throws an error. cannot find
the dependancy.

ERROR: "File or assembly name Proxy_iON, or one of its dependencies, was
not found."

"Proxy_iON" is the generated proxy class..

my questions:

1. is there a way to break this dependancy during deserialization? I want
to directly use the loaded assembly in my custom class on remote boxes and
avoid having to send around the actual generated proxy assembly (DLL file)
with it.

2. i want to avoid custom serialization, but will this solve my issue?

Robert Chartier
Author and Developer
604-975-5590
Click here to reveal e-mail address
http://www.aspalliance.com/nothingmn/

Reply to this message...
 
    
Robert Chartier

fixed.

i had a brain fart and assume for some dumb reason that the actual assembly
i was "holding" in my custom class was also serialized (actual byte data),
but it isnt.. duh

i decided to grab the byte[] version of the assembly, and pack that into
the serialzied object, and then upon deserialization i unpack and then
loadfrom(newasmlocation) for the assembly

if you put any thought into a response.thanks.

/rob

At 01:25 PM 7/19/2002 -0700, you wrote:

[Original message clipped]

Robert Chartier
Author and Developer
604-975-5590
Click here to reveal e-mail address
http://www.aspalliance.com/nothingmn/

Reply to this message...
 
    
Mark Bruce
hmm, does deleting the dll from the bin directory cause the problem? try not deleting the dll in your process...
Robert Chartier wrote:
here's the situation:

im generating proxy assemblies from web service @ runtime
i have a custom class which holds this actual assembly, among other things
i serialize this custom class to my database

then i deserailize, and everything is fine.

I then delete the actual .DLL from my app's bin directory for just the
generated proxy class

then i again attempt to deserialize, and it throws an error. cannot find
the dependancy.

ERROR: "File or assembly name Proxy_iON, or one of its dependencies, was
not found."

"Proxy_iON" is the generated proxy class..

my questions:

1. is there a way to break this dependancy during deserialization? I want
to directly use the loaded assembly in my custom class on remote boxes and
avoid having to send around the actual generated proxy assembly (DLL file)
with it.

2. i want to avoid custom serialization, but will this solve my issue?

Robert Chartier
Author and Developer
604-975-5590
Click here to reveal e-mail address
http://www.aspalliance.com/nothingmn/

| [aspngcs] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngcs.asp = JOIN/QUIT

---------------------------------
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
Reply to this message...
 
    
Robert Chartier

the problem is that the machine that the proxy is created on will most
likely not be the machine that will execute it.

create on one machine, save in db on another machine, execute on yet
another (most likely a collection of others will need it)

At 03:45 PM 7/19/2002 -0700, you wrote:

[Original message clipped]

Robert Chartier
Author and Developer
604-975-5590
Click here to reveal e-mail address
http://www.aspalliance.com/nothingmn/

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification