473,386 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

GetAssemblies() & WebService...

I'm using the AppDomain.CurrentDomain.GetAssemblies()
method to obtain a list of currently loaded assemblies.
This returns the expected assembly name and version
values.
However, if I make a webservice call and then call
AppDomain.CurrentDomain.GetAssemblies() it returns an
additional assembly name, with gibberish values such
as "udmsmlb1", "janolvnq", etc. and always a version
number "0.0.0.0".

What is this additional value thats being returned?

TIA
Jul 19 '05 #1
4 2415
Norm Dotti <no***@knorrassociates.com> wrote:
I'm using the AppDomain.CurrentDomain.GetAssemblies()
method to obtain a list of currently loaded assemblies.
This returns the expected assembly name and version
values.
However, if I make a webservice call and then call
AppDomain.CurrentDomain.GetAssemblies() it returns an
additional assembly name, with gibberish values such
as "udmsmlb1", "janolvnq", etc. and always a version
number "0.0.0.0".

What is this additional value thats being returned?


Are you doing anything like regular expressions, which may create a
temporary assembly for the compiled code? (I don't know for sure that
it does, but I wouldn't be surprised...)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Jul 19 '05 #2
This would be because WebServices use XML Serialization, which works by
generating and loading a dynamically generated assembly. This provides
significant performance benefits to this type of serialization.

You should not really need to worry about this. If it is creating a leakage
situation for you, you can work around this by running the WebServices
calls in a different App-Domain which can then be unloaded.
--------------------
Content-Class: urn:content-classes:message
From: "Norm Dotti" <no***@knorrassociates.com>
Sender: "Norm Dotti" <no***@knorrassociates.com>
Subject: GetAssemblies() & WebService...
Date: Thu, 10 Jul 2003 14:09:46 -0700
Lines: 13
Message-ID: <02****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNHJ5cyNXjwvYz3Rjehtzt4CyGVyA==
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:100811
NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
X-Tomcat-NG: microsoft.public.dotnet.general

I'm using the AppDomain.CurrentDomain.GetAssemblies()
method to obtain a list of currently loaded assemblies.
This returns the expected assembly name and version
values.
However, if I make a webservice call and then call
AppDomain.CurrentDomain.GetAssemblies() it returns an
additional assembly name, with gibberish values such
as "udmsmlb1", "janolvnq", etc. and always a version
number "0.0.0.0".

What is this additional value thats being returned?

TIA

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.

Jul 19 '05 #3
Using AppDomain.CurrentDomain.GetAssemblies() on the
client side does not return the Web Service assembly name
nor assemblies referenced by the webservice. Temporarily,
I've written a webmethod that returns assembly names and
versions in a dataset. I'd like to acheive this without
hitting the webservice. What is the best way to get web
reference assemblies and its referenced assemblies on the
client?

TIA
-----Original Message-----
This would be because WebServices use XML Serialization, which works bygenerating and loading a dynamically generated assembly. This providessignificant performance benefits to this type of serialization.
You should not really need to worry about this. If it is creating a leakagesituation for you, you can work around this by running the WebServicescalls in a different App-Domain which can then be unloaded.--------------------
Content-Class: urn:content-classes:message
From: "Norm Dotti" <no***@knorrassociates.com>
Sender: "Norm Dotti" <no***@knorrassociates.com>
Subject: GetAssemblies() & WebService...
Date: Thu, 10 Jul 2003 14:09:46 -0700
Lines: 13
Message-ID: <02****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNHJ5cyNXjwvYz3Rjehtzt4CyGVyA==
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:100811 NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
X-Tomcat-NG: microsoft.public.dotnet.general

I'm using the AppDomain.CurrentDomain.GetAssemblies()
method to obtain a list of currently loaded assemblies.
This returns the expected assembly name and version
values.
However, if I make a webservice call and then call
AppDomain.CurrentDomain.GetAssemblies() it returns an
additional assembly name, with gibberish values such
as "udmsmlb1", "janolvnq", etc. and always a version
number "0.0.0.0".

What is this additional value thats being returned?

TIA
--

This posting is provided "AS IS" with no warranties, and

confers no rights.Use of included script samples are subject to the terms specified athttp://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to thismessage are best directed to the newsgroup/thread from which theyoriginated.

.

Jul 19 '05 #4
This would be best posted as a separate question on
microsoft.public.dotnet.framework.webservices

--------------------
| Content-Class: urn:content-classes:message
| From: "Norm Dotti" <no***@knorrassociates.com>
| Sender: "Norm Dotti" <no***@knorrassociates.com>
| References: <02****************************@phx.gbl>
<ya**************@cpmsftngxa06.phx.gbl>
| Subject: RE: GetAssemblies() & WebService...
| Date: Fri, 11 Jul 2003 09:11:51 -0700
| Lines: 79
| Message-ID: <06****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNHxyNZ7Z8xIARSTMuYhPKRAgTUmQ==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:100897
| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Using AppDomain.CurrentDomain.GetAssemblies() on the
| client side does not return the Web Service assembly name
| nor assemblies referenced by the webservice. Temporarily,
| I've written a webmethod that returns assembly names and
| versions in a dataset. I'd like to acheive this without
| hitting the webservice. What is the best way to get web
| reference assemblies and its referenced assemblies on the
| client?
|
| TIA
|
| >-----Original Message-----
| >This would be because WebServices use XML Serialization,
| which works by
| >generating and loading a dynamically generated assembly.
| This provides
| >significant performance benefits to this type of
| serialization.
| >
| >You should not really need to worry about this. If it is
| creating a leakage
| >situation for you, you can work around this by running
| the WebServices
| >calls in a different App-Domain which can then be
| unloaded.
| >--------------------
| >> Content-Class: urn:content-classes:message
| >> From: "Norm Dotti" <no***@knorrassociates.com>
| >> Sender: "Norm Dotti" <no***@knorrassociates.com>
| >> Subject: GetAssemblies() & WebService...
| >> Date: Thu, 10 Jul 2003 14:09:46 -0700
| >> Lines: 13
| >> Message-ID: <02****************************@phx.gbl>
| >> MIME-Version: 1.0
| >> Content-Type: text/plain;
| >> charset="iso-8859-1"
| >> Content-Transfer-Encoding: 7bit
| >> X-Newsreader: Microsoft CDO for Windows 2000
| >> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| >> Thread-Index: AcNHJ5cyNXjwvYz3Rjehtzt4CyGVyA==
| >> Newsgroups: microsoft.public.dotnet.general
| >> Path: cpmsftngxa06.phx.gbl
| >> Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.general:100811
| >> NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
| >> X-Tomcat-NG: microsoft.public.dotnet.general
| >>
| >> I'm using the AppDomain.CurrentDomain.GetAssemblies()
| >> method to obtain a list of currently loaded assemblies.
| >> This returns the expected assembly name and version
| >> values.
| >> However, if I make a webservice call and then call
| >> AppDomain.CurrentDomain.GetAssemblies() it returns an
| >> additional assembly name, with gibberish values such
| >> as "udmsmlb1", "janolvnq", etc. and always a version
| >> number "0.0.0.0".
| >>
| >> What is this additional value thats being returned?
| >>
| >> TIA
| >>
| >
| >
| >--
| >
| >This posting is provided "AS IS" with no warranties, and
| confers no rights.
| >Use of included script samples are subject to the terms
| specified at
| >http://www.microsoft.com/info/cpyright.htm
| >
| >Note: For the benefit of the community-at-large, all
| responses to this
| >message are best directed to the newsgroup/thread from
| which they
| >originated.
| >
| >.
| >
|

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Norm Dotti | last post by:
I'm using the AppDomain.CurrentDomain.GetAssemblies() method to obtain a list of currently loaded assemblies. This returns the expected assembly name and version values. However, if I make a...
0
by: JohnSmith | last post by:
Hi, I'm consuming a webservice which returns an XMLNode with VB.NET and XSLT and sending the output to Response.OutputStream If I feed the returned XMLNode directly in the transform method, I...
7
by: Thomas | last post by:
Hi all! Currently I have a web application that consists of a classic frameset. I would like to rebuild the application and just use tables or layers. The problem is, that some parts of the...
0
by: Krissy | last post by:
Hi all, I am practically tearing my hair out here!! In my global.asax file, I have in the Application_error() sub a call to a sub in a library file. What I aim to do is to log the error in...
0
by: Victor | last post by:
I have a XML webservice on IIS 5.1 with self-issued certificate. My ActiveX tryes to invoke a webservice method using class CSecureEvtSyncSocket from msdn sample...
5
by: | last post by:
Hi, How long do webservice objects live for? In particular, if i have static variables filled with data from a static constructor in a webservice, how long will that data persist? thxs
3
by: Karl | last post by:
Can Javascript code catch an exception thrown in an ASP.NET webservice? (Using XMLHTTPRequest object to send the SOAP message to the webservice.) If so, what't the Javascript syntax please? TIA
2
by: Peter | last post by:
I have a Web page which calls a WebService, this web service call might take few seconds to up 30 min I was thinking of having a webpage query the webservice every minute to keep it form timing...
0
by: Gabriel Ferrarini | last post by:
The following code show me all assemblies attached to the project. ================================= For Each asm In AppDomain.CurrentDomain.GetAssemblies() MessageBox.Show(asm.Location) ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.