Click here to Skip to main content
15,914,225 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Managed C++ server side executables ? Pin
Heath Stewart10-Nov-03 6:09
protectorHeath Stewart10-Nov-03 6:09 
GeneralRe: Managed C++ server side executables ? Pin
Jerry Evans10-Nov-03 6:57
Jerry Evans10-Nov-03 6:57 
GeneralSetup Program Pin
kersyanti5-Nov-03 23:23
kersyanti5-Nov-03 23:23 
GeneralRe: Setup Program Pin
Mike Dimmick6-Nov-03 2:17
Mike Dimmick6-Nov-03 2:17 
Questionhow to delete one file in network share folder with .NET Pin
don7cry5-Nov-03 16:06
don7cry5-Nov-03 16:06 
AnswerRe: how to delete one file in network share folder with .NET Pin
Al Gardner7-Nov-03 1:34
Al Gardner7-Nov-03 1:34 
AnswerRe: how to delete one file in network share folder with .NET Pin
jparsons8-Nov-03 12:12
jparsons8-Nov-03 12:12 
GeneralProblems with Exception Management Application Block Pin
Andy Hochstetler5-Nov-03 16:06
Andy Hochstetler5-Nov-03 16:06 
I'm having difficulty getting the Microsoft Application Block for Exception Management working. In particular, I'm trying to customize the DefaultPublisher so that it uses a custom log source in the EventLog.

Here are some of my constraints, many of which I've overcome.

1) I wanted the assembly deployed to the GAC so that more than one app could share it.

2) My apps are web apps, so I had to deal with security issues regarding getting a custom log source set up.

OK, so I created my strong names for the ExceptionManagement and Interfaces assemblies, and got both installed to the GAC. No problem. I used the INSTALLUTIL.EXE to run the custom installer for the ExceptionManagement assembly.

So far so good. I manually created the registry key and string value for my log source.

Next, I set up the web.config file. Here's the way I had it set up the first time:
<configSections>
<section name="exceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler, Microsoft.ApplicationBlocks.ExceptionManagement" />
</configSections>
<exceptionManagement>
<publisher assembly="Microsoft.ApplicationBlocks.ExceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher"
logName="Application" applicationName="My App Log Source" />
</exceptionManagement>

Now when I generated an exception, several were logged using my custom log source, including several that it was unable to find the type for the section handler. Well, I figured out that it was because I had an assembly in the GAC and hadn't fully qualified the names.

So I fixed the web.config to be:

<configSections>
<section name="exceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler,Microsoft.ApplicationBlocks.ExceptionManagement, System, Version=1.0.1404.32518, PublicKeyToken=d16c1e31f52ae760, Culture=neutral" />
</configSections>
<exceptionManagement>
<publisher assembly="Microsoft.ApplicationBlocks.ExceptionManagement"
type="Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher, System,
Version=1.0.1404.32518, PublicKeyToken=d16c1e31f52ae760, Culture=neutral" logName="Application" applicationName="My App Log Source" />
</exceptionManagement>

Well, now to the point I'm at now. I get an internal exception that has the following detail. I'm at wits end! Any help would greatly be appreciated!!!

Thanks,
Andy



1) Exception Information
*********************************************
Exception Type: System.Configuration.ConfigurationException
Message: Exception creating section handler. (E:\Users\All Users\Documents\Dev\dotNet\AcssExtranet\Web\web.config line 5)
BareMessage: Exception creating section handler.
Filename: E:\Users\All Users\Documents\Dev\dotNet\AcssExtranet\Web\web.config
Line: 5
TargetSite: System.Configuration.IConfigurationSectionHandler GetFactory(System.String)
HelpLink: NULL
Source: System.Web

StackTrace Information
*********************************************
at System.Web.Configuration.HttpConfigurationRecord.GetFactory(String configKey)
at System.Web.Configuration.HttpConfigurationRecord.Evaluate(String configKey, SectionRecord section)
at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String configKey, Boolean cacheResult)
at System.Web.HttpContext.GetConfig(String name)
at System.Web.Configuration.HttpConfigurationSystemBase.System.Configuration.IConfigurationSystem.GetConfig(String configKey)
at System.Configuration.ConfigurationSettings.GetConfig(String sectionName)
at Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exception exception, NameValueCollection additionalInfo)

2) Exception Information
*********************************************
Exception Type: System.IO.FileNotFoundException
Message: File or assembly name Microsoft.ApplicationBlocks.ExceptionManagement, or one of its dependencies, was not found.
FileName: Microsoft.ApplicationBlocks.ExceptionManagement
FusionLog: === Pre-bind state information ===
LOG: DisplayName = Microsoft.ApplicationBlocks.ExceptionManagement, Culture=neutral, PublicKeyToken=d16c1e31f52ae760
(Partial)
LOG: Appbase = file:///E:/Users/All Users/Documents/Dev/dotNet/AcssExtranet/Web
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: Microsoft.ApplicationBlocks.ExceptionManagement, Culture=neutral, PublicKeyToken=d16c1e31f52ae760
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/extranet/742de6b4/69ece159/Microsoft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/extranet/742de6b4/69ece159/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL file:///E:/Users/All Users/Documents/Dev/dotNet/AcssExtranet/Web/bin/Microsoft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL file:///E:/Users/All Users/Documents/Dev/dotNet/AcssExtranet/Web/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/extranet/742de6b4/69ece159/Microsoft.ApplicationBlocks.ExceptionManagement.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/extranet/742de6b4/69ece159/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.EXE.
LOG: Attempting download of new URL file:///E:/Users/All Users/Documents/Dev/dotNet/AcssExtranet/Web/bin/Microsoft.ApplicationBlocks.ExceptionManagement.EXE.
LOG: Attempting download of new URL file:///E:/Users/All Users/Documents/Dev/dotNet/AcssExtranet/Web/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.EXE.

TargetSite: System.Type GetType(System.String, Boolean)
HelpLink: NULL
Source: mscorlib

StackTrace Information
*********************************************
at System.Type.GetType(String typeName, Boolean throwOnError)
at System.Web.Configuration.HttpConfigurationRecord.GetFactory(String configKey)

For more information, see Help and Support Center at

Andy Hochstetler

GeneralDoEvents kill Callback - Help needed! Pin
Vacationistas5-Nov-03 9:07
Vacationistas5-Nov-03 9:07 
General.NET Version 7.0 and 7.1 incompatability Pin
Showme805-Nov-03 4:48
Showme805-Nov-03 4:48 
GeneralRe: .NET Version 7.0 and 7.1 incompatability Pin
J. Dunlap5-Nov-03 8:42
J. Dunlap5-Nov-03 8:42 
GeneralThats easy.. Pin
E.L. Golpe10-Nov-03 6:20
E.L. Golpe10-Nov-03 6:20 
GeneralBeginner's Localization question Pin
Anonymous4-Nov-03 6:03
Anonymous4-Nov-03 6:03 
GeneralRe: Beginner's Localization question Pin
Colin Angus Mackay7-Nov-03 14:10
Colin Angus Mackay7-Nov-03 14:10 
GeneralRe: Beginner's Localization question Pin
Anonymous9-Nov-03 22:44
Anonymous9-Nov-03 22:44 
GeneralRe: Beginner's Localization question Pin
Colin Angus Mackay10-Nov-03 2:14
Colin Angus Mackay10-Nov-03 2:14 
QuestionHow to use Memory-mapped files in .Net? Pin
Chen Venkataraman3-Nov-03 9:49
Chen Venkataraman3-Nov-03 9:49 
AnswerRe: How to use Memory-mapped files in .Net? Pin
Douglas Troy10-Nov-03 5:32
Douglas Troy10-Nov-03 5:32 
QuestionHow to Use 2 connection objects in a single sql statement in c# Pin
kaling3-Nov-03 0:49
kaling3-Nov-03 0:49 
AnswerRe: How to Use 2 connection objects in a single sql statement in c# Pin
Colin Angus Mackay3-Nov-03 2:06
Colin Angus Mackay3-Nov-03 2:06 
AnswerRe: How to Use 2 connection objects in a single sql statement in c# Pin
Peter Zajac3-Nov-03 2:44
Peter Zajac3-Nov-03 2:44 
AnswerRe: How to Use 2 connection objects in a single sql statement in c# Pin
kaling9-Nov-03 21:04
kaling9-Nov-03 21:04 
GeneralTo staty with XP or not?!?! Pin
Sarvesvara (BVKS) Dasa1-Nov-03 6:25
Sarvesvara (BVKS) Dasa1-Nov-03 6:25 
GeneralRe: To staty with XP or not?!?! Pin
Paul Watson2-Nov-03 23:21
sitebuilderPaul Watson2-Nov-03 23:21 
GeneralRe: To staty with XP or not?!?! Pin
Sarvesvara (BVKS) Dasa3-Nov-03 2:51
Sarvesvara (BVKS) Dasa3-Nov-03 2:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.