Click here to Skip to main content
15,887,346 members
Home / Discussions / C#
   

C#

 
Generalexcel references Pin
arkiboys4-Feb-08 22:31
arkiboys4-Feb-08 22:31 
GeneralRe: excel references Pin
Giorgi Dalakishvili4-Feb-08 22:47
mentorGiorgi Dalakishvili4-Feb-08 22:47 
GeneralRe: excel references Pin
arkiboys4-Feb-08 22:49
arkiboys4-Feb-08 22:49 
GeneralRe: excel references Pin
Giorgi Dalakishvili4-Feb-08 22:50
mentorGiorgi Dalakishvili4-Feb-08 22:50 
GeneralGrid View Editing Pin
rcnairc2k4-Feb-08 22:16
rcnairc2k4-Feb-08 22:16 
QuestionCheck for an enpty picturebox control Pin
Ofori Boadu4-Feb-08 22:11
Ofori Boadu4-Feb-08 22:11 
GeneralRe: Check for an enpty picturebox control Pin
Giorgi Dalakishvili4-Feb-08 22:20
mentorGiorgi Dalakishvili4-Feb-08 22:20 
QuestionUsing Offline Application Block Pin
Søren Christensen4-Feb-08 21:38
Søren Christensen4-Feb-08 21:38 
Hi
I'm developing a small desktop client and I'm using the Offline Application Block. When I run my application (both in Debug and Release mode) in Visual Studio 2005 it works fine, but when I publish my application it won't run. I hope someone out there can point me in the right direction since I'm having a hard time finding a solution.

The error:
<br />
Timestamp: 05-02-2008 08:23:14<br />
Message: HandlingInstanceID: 6dadd0fb-233b-44ba-829e-fb4963a24de1<br />
An exception of type 'System.Reflection.TargetInvocationException' occurred and was caught.<br />
-------------------------------------------------------------------------------------------<br />
02/05/2008 09:23:14<br />
Type : System.Reflection.TargetInvocationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089<br />
Message : Exception has been thrown by the target of an invocation.<br />
Source : mscorlib<br />
Help link : <br />
Data : System.Collections.ListDictionaryInternal<br />
TargetSite : System.Object _InvokeMethodFast(System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeTypeHandle)<br />
Stack Trace :    at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)<br />
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)<br />
   at System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)<br />
   at Microsoft.Practices.ObjectBuilder.CreationStrategy.InitializeObject(IBuilderContext context, Object existing, String id, ICreationPolicy policy)<br />
   at Microsoft.Practices.ObjectBuilder.CreationStrategy.BuildUpNewObject(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)<br />
   at Microsoft.Practices.ObjectBuilder.CreationStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)<br />
   at Microsoft.Practices.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)<br />
   at Microsoft.Practices.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)<br />
   at Microsoft.Practices.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)<br />
   at Microsoft.Practices.ObjectBuilder.SingletonStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)<br />
   at Microsoft.Practices.ObjectBuilder.TypeMappingStrategy.BuildUp(IBuilderContext context, Type t, Object existing, String id)<br />
   at Microsoft.Practices.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[] transientPolicies)<br />
   at Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[] transientPolicies)<br />
   at Microsoft.Practices.CompositeUI.Collections.ServiceCollection.BuildFirstTimeItem(Type typeToBuild, Type typeToRegisterAs, Object item)<br />
   at Microsoft.Practices.CompositeUI.Collections.ServiceCollection.Build(Type typeToBuild, Type typeToRegisterAs, Object serviceInstance)<br />
   at Microsoft.Practices.CompositeUI.Collections.ServiceCollection.AddNew[TService,TRegisterAs]()<br />
   at BI2ActiveSalesClient.Infrastructure.Library.SmartClientApplication`2.AddServices()<br />
   at Microsoft.Practices.CompositeUI.CabApplication`1.Run()<br />
   at BI2ActiveSalesClient.Infrastructure.Shell.ShellApplication.RunInReleaseMode()<br />
<br />
Additional Info:<br />
<br />
MachineName : XXXXXXXX<br />
TimeStamp : 05-02-2008 08:23:14<br />
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null<br />
AppDomainName : DefaultDomain<br />
ThreadIdentity : <br />
WindowsIdentity : XXXXXXXXXXX<br />
	Inner Exception<br />
	---------------<br />
	Type : System.TypeInitializationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089<br />
	Message : The type initializer for 'Microsoft.ApplicationBlocks.Cache.CacheManager' threw an exception.<br />
	Source : Microsoft.ApplicationBlocks.Cache<br />
	Help link : <br />
	TypeName : Microsoft.ApplicationBlocks.Cache.CacheManager<br />
	Data : System.Collections.ListDictionaryInternal<br />
	TargetSite : Microsoft.ApplicationBlocks.Cache.CacheManager GetCacheManager()<br />
	Stack Trace :    at Microsoft.ApplicationBlocks.Cache.CacheManager.GetCacheManager()<br />
	   at Microsoft.ApplicationBlocks.SmartClient.Offline.OfflineBlockBuilder..ctor()<br />
	   at Microsoft.ApplicationBlocks.SmartClient.Offline.OfflineBlockBuilder.get_Instance()<br />
	   at BI2ActiveSalesClient.Infrastructure.ConnectionModule.Services.ConnectionManager..ctor()<br />
<br />
		Inner Exception<br />
		---------------<br />
		Type : System.TypeInitializationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089<br />
		Message : The type initializer for 'Microsoft.ApplicationBlocks.Cache.CacheService' threw an exception.<br />
		Source : Microsoft.ApplicationBlocks.Cache<br />
		Help link : <br />
		TypeName : Microsoft.ApplicationBlocks.Cache.CacheService<br />
		Data : System.Collections.ListDictionaryInternal<br />
		TargetSite : Microsoft.ApplicationBlocks.Cache.CacheService GetCacheService()<br />
		Stack Trace :    at Microsoft.ApplicationBlocks.Cache.CacheService.GetCacheService()<br />
		   at Microsoft.ApplicationBlocks.Cache.CacheManager..ctor()<br />
		   at Microsoft.ApplicationBlocks.Cache.CacheManager..cctor()<br />
<br />
			Inner Exception<br />
			---------------<br />
			Type : System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089<br />
			Message : The XML configuration document is invalid, the ScavengingInfo section defines a type (assembly: 'Microsoft.ApplicationBlocks.Cache', type 'Microsoft.ApplicationBlocks.Cache.Scavenging.LruScavenging') which an instance can't be created.<br />
			Source : Microsoft.ApplicationBlocks.Cache<br />
			Help link : <br />
			Data : System.Collections.ListDictionaryInternal<br />
			TargetSite : Microsoft.ApplicationBlocks.Cache.IScavengingAlgorithm CreateInstance(Microsoft.ApplicationBlocks.Cache.CacheService, Microsoft.ApplicationBlocks.Cache.ICacheStorage, Microsoft.ApplicationBlocks.Cache.ICacheMetadata)<br />
			Stack Trace :    at Microsoft.ApplicationBlocks.Cache.ScavengingInfo.CreateInstance(CacheService cacheService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata)<br />
			   at Microsoft.ApplicationBlocks.Cache.CacheService..ctor()<br />
			   at Microsoft.ApplicationBlocks.Cache.CacheService..cctor()<br />
<br />
				Inner Exception<br />
				---------------<br />
				Type : System.ArgumentNullException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089<br />
				Message : The cache storage cannot be null.<br />
Parameter name: cacheStorage<br />
				Source : Microsoft.ApplicationBlocks.Cache<br />
				Help link : <br />
				ParamName : cacheStorage<br />
				Data : System.Collections.ListDictionaryInternal<br />
				TargetSite : Void Microsoft.ApplicationBlocks.Cache.IScavengingAlgorithm.Init(Microsoft.ApplicationBlocks.Cache.CacheService, Microsoft.ApplicationBlocks.Cache.ICacheStorage, Microsoft.ApplicationBlocks.Cache.ICacheMetadata, System.Xml.XmlNode)<br />
				Stack Trace :    at Microsoft.ApplicationBlocks.Cache.Scavenging.LruScavenging.Microsoft.ApplicationBlocks.Cache.IScavengingAlgorithm.Init(CacheService cachingService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata, XmlNode configSection)<br />
				   at Microsoft.ApplicationBlocks.Cache.ScavengingInfo.CreateInstance(CacheService cacheService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata)<br />


Thanks in advance

Søren
QuestionHow to display data dynamically Pin
NarVish4-Feb-08 20:25
NarVish4-Feb-08 20:25 
AnswerRe: How to display data dynamically Pin
J a a n s4-Feb-08 21:24
professionalJ a a n s4-Feb-08 21:24 
GeneralRe: How to display data dynamically Pin
NarVish6-Feb-08 23:20
NarVish6-Feb-08 23:20 
Generaldatalist paging with master pages Pin
chithra.r4-Feb-08 19:42
chithra.r4-Feb-08 19:42 
GeneralRe: datalist paging with master pages Pin
J a a n s4-Feb-08 21:16
professionalJ a a n s4-Feb-08 21:16 
GeneralWindows Service Pin
CodingLover4-Feb-08 19:04
CodingLover4-Feb-08 19:04 
GeneralRe: Windows Service Pin
CKnig4-Feb-08 20:02
CKnig4-Feb-08 20:02 
GeneralRe: Windows Service Pin
CodingLover4-Feb-08 21:06
CodingLover4-Feb-08 21:06 
GeneralRe: Windows Service Pin
Vikram A Punathambekar4-Feb-08 21:51
Vikram A Punathambekar4-Feb-08 21:51 
GeneralRe: Windows Service Pin
CKnig4-Feb-08 22:10
CKnig4-Feb-08 22:10 
GeneralRe: Windows Service Pin
CodingLover5-Feb-08 0:03
CodingLover5-Feb-08 0:03 
Questionhow to make my own controls in c# Pin
E_Gold4-Feb-08 18:30
E_Gold4-Feb-08 18:30 
AnswerRe: how to make my own controls in c# Pin
sindhutiwari4-Feb-08 18:41
sindhutiwari4-Feb-08 18:41 
AnswerRe: how to make my own controls in c# Pin
Ajay.k_Singh4-Feb-08 19:00
Ajay.k_Singh4-Feb-08 19:00 
QuestionTCP/IP Keep Alive Time [modified] Pin
sindhutiwari4-Feb-08 18:23
sindhutiwari4-Feb-08 18:23 
QuestionAvoid Duplicate Entry in Text File Pin
D i x y4-Feb-08 17:55
D i x y4-Feb-08 17:55 
GeneralRe: Avoid Duplicate Entry in Text File Pin
Christian Graus4-Feb-08 18:01
protectorChristian Graus4-Feb-08 18:01 

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.