Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Mon, 5 Jun 2006 11:17:02 -0700,    group: microsoft.public.dotnet.distributed_apps        back       


Enterprise Library (June 2005) Exception Handling Policy Error   
We have connected our middle tier components (from a asp.net front end) to 
our new SharePoint controls and cannot figure out why we keep getting a 
Policy Exception. We have modified the Enterprise Library code to use a 
centralized configuration file (so we don't need them in each web part) using 
this http://weblog.gpconsulting.com/archive/2005/06/23/159.aspx as a guide, 
even though it is for the newer EL. Any recommendations on what we're missing 
here as everything was working fine when we had added our policies 
(configuration) to the web.config file for our ASP.NET application. We didn't 
put any EL Exception code  inside the Web Parts (they just rethrow exceptions)

"System.IO.FileNotFoundException: File or assembly name 
Microsoft.Practices.EnterpriseLibrary.Common, or one of its dependencies, was 
not found.
File name: "Microsoft.Practices.EnterpriseLibrary.Common"

Server stack trace: 
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationSettings..ctor(String applicationName)
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationSettings..ctor()
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationSettingsLoader.Build(XmlNode node)
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationSettingsLoader.Build(String configurationFile)
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationFile.GetConfig(String configKey)
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationBuilder.ReadMetaConfiguration()
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationBuilder.LoadMetaConfiguration(String configurationFile)
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationBuilder..ctor()
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManager..ctor()
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManager.get_Current()
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManager.GetCurrentContext()
   at 
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(Exception ex, String policyName)
   at 
CorporateNamespace.CorporateApplication.DataAccessService.DataConnection.GetConnectionString(String 
environment, String application, String role) in 
C:\CorporateApplication\Dev\DataAccessService\DataConnection.vb:line 211
   at System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, 
Boolean fExecuteInContext)
   at 
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]: 
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationSettings..ctor(String applicationName)
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationSettings..ctor()
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationSettingsLoader.Build(XmlNode node)
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationSettingsLoader.Build(String configurationFile)
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationFile.GetConfig(String configKey)
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationBuilder.ReadMetaConfiguration()
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationBuilder.LoadMetaConfiguration(String configurationFile)
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationBuilder..ctor()
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManager..ctor()
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManager.get_Current()
   at 
Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManager.GetCurrentContext()
   at 
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(Exception ex, String policyName)
   at 
CorporateNamespace.CorporateApplication.DataAccessService.DataAccessSql.RequestData(String 
environment, String application, String role, String accountName, String 
instruction, CommandType instructionType, String parameters, String 
tableMapping) in 
C:\CorporateApplication\Dev\DataAccessService\DataAccessSql.vb:line 508
   at System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, 
Boolean fExecuteInContext)
   at 
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [1]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage 
reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& 
msgData, Int32 type)
   at 
CorporateNamespace.CorporateApplication.DataAccessService.DataAccessSql.RequestData(String 
environment, String application, String role, String accountName, String 
instruction, CommandType instructionType, String parameters, String 
tableMapping) in 
C:\CorporateApplication\Dev\DataAccessService\DataAccessSql.vb:line 477
   at 
CorporateNamespace.CorporateApplication.BaseRequestService.BaseRequestManager.RequestData(String 
parameters, String tableMapping) in 
C:\CorporateApplication\Dev\BaseServices\BaseRequestService\BaseRequestManager.vb:line 216

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Practices.EnterpriseLibrary.Common, 
Version=1.1.0.0, Culture=neutral, PublicKeyToken=d72c7fd2919e2298
 (Fully-specified)
LOG: Appbase = file:///C:/Inetpub/wwwroot/CustomerWebControls
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file 
(C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from 
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: Microsoft.Practices.EnterpriseLibrary.Common, 
Version=1.1.0.0, Culture=neutral, PublicKeyToken=d72c7fd2919e2298
LOG: Attempting download of new URL 
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET 
Files/Customerwebcontrols/30044e45/e6326e67/Microsoft.Practices.EnterpriseLibrary.Common.DLL.
LOG: Attempting download of new URL 
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET 
Files/Customerwebcontrols/30044e45/e6326e67/Microsoft.Practices.EnterpriseLibrary.Common/Microsoft.Practices.EnterpriseLibrary.Common.DLL.
LOG: Attempting download of new URL 
file:///C:/Inetpub/wwwroot/CustomerWebControls/bin/Microsoft.Practices.EnterpriseLibrary.Common.DLL.
LOG: Attempting download of new URL 
file:///C:/Inetpub/wwwroot/CustomerWebControls/bin/Microsoft.Practices.EnterpriseLibrary.Common/Microsoft.Practices.EnterpriseLibrary.Common.DLL.
LOG: Attempting download of new URL 
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET 
Files/Customerwebcontrols/30044e45/e6326e67/Microsoft.Practices.EnterpriseLibrary.Common.EXE.
LOG: Attempting download of new URL 
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET 
Files/Customerwebcontrols/30044e45/e6326e67/Microsoft.Practices.EnterpriseLibrary.Common/Microsoft.Practices.EnterpriseLibrary.Common.EXE.
LOG: Attempting download of new URL 
file:///C:/Inetpub/wwwroot/CustomerWebControls/bin/Microsoft.Practices.EnterpriseLibrary.Common.EXE.
LOG: Attempting download of new URL 
file:///C:/Inetpub/wwwroot/CustomerWebControls/bin/Microsoft.Practices.EnterpriseLibrary.Common/Microsoft.Practices.EnterpriseLibrary.Common.EXE.
"
date: Mon, 5 Jun 2006 11:17:02 -0700   author:   j0ey

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us