Last post Apr 10, 2008 03:57 PM by mark peters
Apr 10, 2008 02:37 PM|mark peters|LINK
I have a .Net 2005 web app that is not defined as a class library. I don't put any of the classes in Namespaces (though I believe all classes are referenced as part of a Namespace).. So, how can I know what the Fully Qualified Type Name of a class is in
I'm using the Exception Handling Application Block and the declaration of the custom exception class and custom handler I have, both need the FQTN in the web.config file.. (but I don't know what to put there!)
Apr 10, 2008 02:59 PM|abhisheks|LINK
Why don't you try to use the class name of the page where you are putting the code. I think that should work.
Apr 10, 2008 03:57 PM|mark peters|LINK
Thanks for the reply!
The following is a sample of my Web.Config file generated using the Enterprise Library Configuration tool. I'm modifying the server level web.config in the framework directory to apply the policies to the whole machine ("..." means I cut out code):
<?xml version="1.0" encoding="utf-8"?>
<add name="Global Policy">
type="System.Exception, mscorlib, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089"
type="MySample.AppMessageExceptionHandler, App_Code.7fg7bvaz, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
name="Application Message Handler" />
<add name="Notify Policy">
type="MySample.BusinessLayerException, App_Code.7fg7bvaz, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
Currently, I got the type specification for the two classes referenced in MySample by using the Enterprise Library Configuration tool and browsing to a DLL created in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\...
Every other entry I've tried results in a "Namespace can't be resolved for class ..." error when I run the web app.
I tried what I think you suggested as:
and it still gave me the error... It seems like it wants the fully qualified name from the assembly... I'm just not sure where the assembly (dll) is?
THANKS!! for any help