For Programmers: Free Programming Magazines  


Home > Archive > MSDN > June 2006 > Upgarding smart client application to .net 2.0









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Upgarding smart client application to .net 2.0
arun.goel@gmail.com

2006-06-17, 8:03 am

Hi All,

I have recently upgraded a smartclient application to .net 2.0. What
really baffles me is that the app works fine in debug/release mode. But
when I create a setup package or try to run the .exe the offline
application block throws an exception on the following line of code...

offlineBlockInstance = OfflineBlockBuilder.Instance;

Following is the debug trace, I know I am missing something very basic
here, but I can't figure out what, has someone else faced a similar
problem??

Thanks,
Arun

Event Type: Error
Event Source: ExceptionManagerPublishedException
Event Category: None
Event ID: 0
Date: 07/06/2006
Time: 20:10:47
User: N/A
Computer:
Description:

General Information
****************************************
*****
Additional Info:
ExceptionManager.MachineName:
ExceptionManager.TimeStamp: 07/06/2006 20:10:47
ExceptionManager.FullName :
Microsoft.ApplicationBlocks.ExceptionManagement, Version=1.1.0.0,
Culture=neutral, PublicKeyToken=null
ExceptionManager.AppDomainName: Exertrack Exerlence Advisor.exe
ExceptionManager.ThreadIdentity :
ExceptionManager.WindowsIdentity: SANDEEP-SHIKHA\Sandeep

1) Exception Information
****************************************
*****
Exception Type: System.Exception
Message: The XML configuration document is invalid, the ScavengingInfo
section defines a type (assembly: '
Microsoft.ApplicationBlocks.Cache,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null',
type 'Microsoft.ApplicationBlocks.Cache.Scavenging.LruScavenging')
which an instance can't be created.
Data: System.Collections.ListDictionaryInternal
TargetSite: Microsoft.ApplicationBlocks.Cache.IScavengingAlgorithm
CreateInstance(Microsoft.ApplicationBlocks.Cache.CacheService,
Microsoft.ApplicationBlocks.Cache.ICacheStorage ,
Microsoft.ApplicationBlocks.Cache.ICacheMetadata)
HelpLink: NULL
Source: Microsoft.ApplicationBlocks.Cache

StackTrace Information
****************************************
*****
at
Microsoft.ApplicationBlocks.Cache.ScavengingInfo.CreateInstance(CacheService
cacheService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata)
at Microsoft.ApplicationBlocks.Cache.CacheService..ctor()

2) Exception Information
****************************************
*****
Exception Type: System.ArgumentNullException
Message: The cache storage cannot be null.
Parameter name: cacheStorage
ParamName: cacheStorage
Data: System.Collections.ListDictionaryInternal
TargetSite: Void
Microsoft.ApplicationBlocks.Cache.IScavengingAlgorithm.Init(Microsoft.ApplicationBlocks.Cache.CacheService,
Microsoft.ApplicationBlocks.Cache.ICacheStorage ,
Microsoft.ApplicationBlocks.Cache.ICacheMetadata, System.Xml.XmlNode)
HelpLink: NULL
Source: Microsoft.ApplicationBlocks.Cache

StackTrace Information
****************************************
*****
at
Microsoft.ApplicationBlocks.Cache.Scavenging.LruScavenging.Microsoft.ApplicationBlocks.Cache.IScavengingAlgorithm.Init(CacheService
cachingService, ICacheStorage cacheStorage, ICacheMetadata
cacheMetadata, XmlNode configSection)
at
Microsoft.ApplicationBlocks.Cache.ScavengingInfo.CreateInstance(CacheService
cacheService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com