473,226 Members | 1,581 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,226 software developers and data experts.

Assembly and Type Name

Hi,

When I want to specify a type \in web.config or app.config files, I have to
type it like this:

type="Microsoft.WCF.Documentation.EnforceGreetingF aultBehavior,
HostApplication, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"

The name is usually long especially if it is a strongly named assembly and
we have to type PublicKeyToken.

Is there any tool that I can use to copy and paste the type name?

Thank you,
Max
Jun 27 '08 #1
5 3196
I don't know if there is an easier way - but I usually just throw
something like below into the code and copy it from the output
window...

Debug.WriteLine(typeof(AttributeCollection).Assemb lyQualifiedName);
Jun 27 '08 #2
For the full type name you need to put in configuratin file, it is actually
called "Assembly qualified name". For complex type and assmebly, I usually
use the following code to print them out:

==================
Type type = typeof(System.Net.Cookie);

string fullname = type.AssemblyQualifiedName;

Response.Write("<br/>" + fullname);
=========================

Or you can also use some tool such as reflector to inspect assembly's
FullName and append them to the Full typename so as to make up the Full
assembly qualified type name.

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Max2006" <al*******@newsgroup.nospam>
Subject: Assembly and Type Name
Date: Tue, 24 Jun 2008 20:56:43 -0400
>
Hi,

When I want to specify a type \in web.config or app.config files, I have
to
>type it like this:

type="Microsoft.WCF.Documentation.EnforceGreeting FaultBehavior,
HostApplication, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"

The name is usually long especially if it is a strongly named assembly and
we have to type PublicKeyToken.

Is there any tool that I can use to copy and paste the type name?

Thank you,
Max
Jun 27 '08 #3
Hi Steven,

Could you refer me to any documentation that explains the syntax for
"Assembly qualified name"?

I had a look at this:

http://msdn.microsoft.com/en-us/library/k8xx4k69.aspx

However, it doesn't explain the ``endpointValidate`` section here:

"Microsoft.ServiceModel.Samples.EndpointValidateEl ement, endpointValidate,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"

Thank you for help,
Max

"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:hu**************@TK2MSFTNGHUB02.phx.gbl...
For the full type name you need to put in configuratin file, it is
actually
called "Assembly qualified name". For complex type and assmebly, I
usually
use the following code to print them out:

==================
Type type = typeof(System.Net.Cookie);

string fullname = type.AssemblyQualifiedName;

Response.Write("<br/>" + fullname);
=========================

Or you can also use some tool such as reflector to inspect assembly's
FullName and append them to the Full typename so as to make up the Full
assembly qualified type name.

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>>From: "Max2006" <al*******@newsgroup.nospam>
Subject: Assembly and Type Name
Date: Tue, 24 Jun 2008 20:56:43 -0400
>>
Hi,

When I want to specify a type \in web.config or app.config files, I have
to
>>type it like this:

type="Microsoft.WCF.Documentation.EnforceGreetin gFaultBehavior,
HostApplication, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"

The name is usually long especially if it is a strongly named assembly and
we have to type PublicKeyToken.

Is there any tool that I can use to copy and paste the type name?

Thank you,
Max
Jun 27 '08 #4
On Jun 25, 4:52 pm, "Max2006" <alanal...@newsgroup.nospamwrote:
Could you refer me to any documentation that explains the syntax for
"Assembly qualified name"?

I had a look at this:

http://msdn.microsoft.com/en-us/library/k8xx4k69.aspx

However, it doesn't explain the ``endpointValidate`` section here:

"Microsoft.ServiceModel.Samples.EndpointValidateEl ement, endpointValidate,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
Yes it does - that's the name of the assembly containing
EndPointValidateElement.

It's a slightly odd name for an assembly, admittedly, but it's
basically okay.

See http://msdn.microsoft.com/en-us/libr...ifiedname.aspx
for some more examples.

Jon
Jun 27 '08 #5
Hi Max,

As for the Assembly Qaulified name, it is actually combined with two parts:

1. The full type name

2. The full assemby name

For the type's fullname, it's quite straightforard, just
[Namespace]+[TypeName]

For assembly full name, you can refer to the following reference:

#Assembly Names
http://msdn.microsoft.com/en-us/libr...69(VS.71).aspx

#Assembly Display Names
http://blogs.msdn.com/suzcook/archiv.../29/57137.aspx

a full assembly name contains [AssemblyName], [Version],[Culture],[Public
Key Token]

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "Max2006" <al*******@newsgroup.nospam>
References: <E6**********************************@microsoft.co m>
<hu**************@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: Assembly and Type Name
Date: Wed, 25 Jun 2008 11:52:23 -0400
>
Hi Steven,

Could you refer me to any documentation that explains the syntax for
"Assembly qualified name"?

I had a look at this:

http://msdn.microsoft.com/en-us/library/k8xx4k69.aspx

However, it doesn't explain the ``endpointValidate`` section here:

"Microsoft.ServiceModel.Samples.EndpointValidateE lement, endpointValidate,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"

Thank you for help,
Max

"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:hu**************@TK2MSFTNGHUB02.phx.gbl...
>For the full type name you need to put in configuratin file, it is
actually
called "Assembly qualified name". For complex type and assmebly, I
usually
use the following code to print them out:

==================
Type type = typeof(System.Net.Cookie);

string fullname = type.AssemblyQualifiedName;

Response.Write("<br/>" + fullname);
=========================

Or you can also use some tool such as reflector to inspect assembly's
FullName and append them to the Full typename so as to make up the Full
assembly qualified type name.

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you.
Please
>feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

================================================= =
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
>ications.
================================================= =
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>>>From: "Max2006" <al*******@newsgroup.nospam>
Subject: Assembly and Type Name
Date: Tue, 24 Jun 2008 20:56:43 -0400
>>>
Hi,

When I want to specify a type \in web.config or app.config files, I have
to
>>>type it like this:

type="Microsoft.WCF.Documentation.EnforceGreeti ngFaultBehavior,
HostApplication, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"

The name is usually long especially if it is a strongly named assembly
and
>>>we have to type PublicKeyToken.

Is there any tool that I can use to copy and paste the type name?

Thank you,
Max
Jun 27 '08 #6

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

Similar topics

3
by: Atul Godbole | last post by:
Suppose an assembly "Main" is using class "A" from another Assembly "Dep" as follows : A a = new A(); a.MethodOne(); At what time is the call to MethodOne linked to the actual MSIL (method...
11
by: Neo | last post by:
Does anyone know how to get a list of the types in an Assembly without actually loading the Assembly into your app domain?
4
by: Jonathan Roewen | last post by:
Hi I've got loading assemblies dynamically done (wasn't too difficult). Now I want to lookup a static function in the loaded assembly, and if found, return it somehow, and call it from my app. So...
1
by: Julia | last post by:
Can some one please explain me the following: "In your plugin config section, use the assembly name like "Class, Assembly, Culture, Version, PublicKeyToken" so that you can just use...
0
by: Namratha Shah \(Nasha\) | last post by:
Hi All, Assembly linker is a tool which is used to create an assembly by combining one or more .netmodules and resource files. In simple words an .netmodule is an IL file that does not have ...
4
by: V. Jenks | last post by:
I'm using reflection to dynamically load an assembly and even though I'm sure the assembly is present, I keep getting an error telling me the "assembly or one of its references can't be found". ...
2
by: Thomas T. Veldhouse | last post by:
Hello. I have been working with a client of mine on their seriazation code and we seem to have run into an issue when we migrated from .NET 1.1 to .NET 2.0. We have a framework of business...
14
by: Monty | last post by:
Hello, I have created a solution which has both a web UI and a winform UI, the latter is just for administrators. The Web UI (a Web Application Project) and the winform project both...
1
by: nish85 | last post by:
Hi, i have uploaded my sit to web server goddady.com i have a button to download dyanmically generated excel file.This button is ajax enabled.....When i am click on this button it will popup a...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.