Author Topic: exception has been thrown by the target of an invocation  (Read 22595 times)

oknkmn

  • Newbie
  • *
  • Posts: 5
exception has been thrown by the target of an invocation
« on: October 22, 2013, 12:49:24 pm »
kiosk da sifre girdikten sonra hata alıyorum     detay rapor

-----------------------------
[General Info]

Application: SambaPOS
Version:     2.99
Region:      tr
DB:          SQ
Machine:     MIE-BILGISAYAR
User:        mie
Date:        22.10.2013
Time:        18:40

User Explanation:

mie said ""
-----------------------------

[Exception Info 1]

Top-level Exception
Type:        System.Reflection.TargetInvocationException
Message:     Exception has been thrown by the target of an invocation.
Source:      mscorlib
Stack Trace: at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Inner Exception 1
Type:        System.Data.EntityException
Message:     The underlying provider failed on Open.
Source:      System.Data.Entity
Stack Trace: at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)
   at System.Data.EntityClient.EntityConnection.Open()
   at System.Data.Objects.ObjectContext.EnsureConnection()
   at System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
   at System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
   at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
   at System.Data.Objects.ELinq.ObjectQueryProvider.<GetElementFunction>b__2[TResult](IEnumerable`1 sequence)
   at System.Data.Objects.ELinq.ObjectQueryProvider.ExecuteSingle[TResult](IEnumerable`1 query, Expression queryRoot)
   at System.Data.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute(Expression expression)
   at System.Data.Entity.Internal.Linq.DbQueryProvider.Execute[TResult](Expression expression)
   at System.Linq.Queryable.SingleOrDefault[TSource](IQueryable`1 source, Expression`1 predicate)
   at Samba.Infrastructure.Data.SQL.EFWorkspace.Single[T](Expression`1 expression)
   at Samba.Services.AppServices.CheckPinCodeStatus(String pinCode)
   at Samba.Services.AppServices.LoginUser(String pinValue)
   at Samba.Modules.UserModule.UserModule.PinEntered(String pin)
   at Samba.Modules.UserModule.UserModule.<OnInitialization>b__2(EventParameters`1 x)
   at Microsoft.Practices.Prism.Events.EventSubscription`1.InvokeAction(Action`1 action, TPayload argument)
   at Microsoft.Practices.Prism.Events.EventSubscription`1.<>c__DisplayClass2.<GetExecutionStrategy>b__0(Object[] arguments)
   at Microsoft.Practices.Prism.Events.EventBase.InternalPublish(Object[] arguments)
   at Microsoft.Practices.Prism.Events.CompositePresentationEvent`1.Publish(TPayload payload)
   at Samba.Presentation.Common.ExtensionServices._PublishEvent[TEventsubject](TEventsubject eventArgs, String eventTopic)

Inner Exception 2
Type:        System.Data.SqlClient.SqlException
Message:     A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Source:      .Net SqlClient Data Provider
Stack Trace: at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
   at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity)
   at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, SqlConnection owningObject)
   at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, TimeoutTimer timeout)
   at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, TimeoutTimer timeout, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.SqlClient.SqlConnection.Open()
   at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)

-----------------------------

[Assembly Info]

mscorlib, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
System, Version=4.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
Samba.Infrastructure, Version=1.0.0.0
System.Windows.Forms, Version=4.0.0.0
System.Windows.Interactivity, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
PropertyTools.Wpf, Version=2011.3.4771.32620
Microsoft.Practices.EnterpriseLibrary.Validation, Version=5.0.414.0
Samba.Domain, Version=1.0.0.0
System.Drawing, Version=4.0.0.0
System.Management, Version=4.0.0.0
UIControls, Version=1.0.0.0
System.Core, Version=4.0.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Persistance.Data, Version=1.0.0.0
Samba.Services, Version=1.0.0.0
Samba.Localization, Version=1.0.0.0
Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0
mscorlib, Version=2.0.0.0
FlexButton, Version=1.0.0.0
WindowsFormsIntegration, Version=4.0.0.0

-----------------------------

[System Info]

Operating System
-Microsoft Windows 7 Home Basic
--CodeSet = 1254
--CSDVersion = Service Pack 1
--CurrentTimeZone = 180
--FreePhysicalMemory = 211472
--OSArchitecture = 32-bit
--OSLanguage = 1055
--ServicePackMajorVersion = 1
--ServicePackMinorVersion = 0
--Version = 6.1.7601

Machine
-MIE-BILGISAYAR
--Manufacturer = INTELR
--Model = AWRDACPI
--TotalPhysicalMemory = 502849536
--UserName = mie-Bilgisayar\mie

-----------------------------


akadir

  • Jr. Member
  • **
  • Posts: 69
Re: exception has been thrown by the target of an invocation
« Reply #1 on: October 27, 2013, 02:19:37 pm »
hata kodunu bilemiyorum , yardımcı olmaya çalışayım bildiğim kadarı ile. kiosk daha önce bağlanıyormuydu yokda ilk defamı bağlamaya çalışıyorsunuz ?

oknkmn

  • Newbie
  • *
  • Posts: 5
Re: exception has been thrown by the target of an invocation
« Reply #2 on: October 29, 2013, 09:55:03 am »
yaklaşık 2-3 aydır kullanıyoruz makineyi ama son 15 gündür bu problemle karşılaşıyorum.değişiklik olarak yeni modem aldım ve portlarını açtım hey normal.modem kaynaklı olabilir mi sorunum tek aklıma gelen bu

akadir

  • Jr. Member
  • **
  • Posts: 69
Re: exception has been thrown by the target of an invocation
« Reply #3 on: October 30, 2013, 01:29:52 am »
hata kodu veri tabanına erişememe ile ilgili.yeni öğrendim. muhtemelen ana makinada ayarlarda problem olabilir. yok ana makinaya başka client bağlanabiliyorsa bağlanan kioskta bir hata vardır. daha çok yardımcı olmak için kullandığınız win türünden ağın yapısına kadar ve ağda bulunan çalışan çalışmayan aygıt ve pc leri yazarsanız daha iyi olur.

oknkmn

  • Newbie
  • *
  • Posts: 5
Re: exception has been thrown by the target of an invocation
« Reply #4 on: October 30, 2013, 10:53:53 am »
kiosk dan ağ alt yapısına girdiğim zaman ana makineyi görebiliyorum tplink modem ağ alt yapısı olarak görünüyor.ana makineden baktığımda zaman zaman kiosk u göremiyorum arada gidip geliyor ve ağ alt yapısında modemim yazmıyo windows 7 kullanıyorum 2 switch ve 1 access point kullanıyorum

oknkmn

  • Newbie
  • *
  • Posts: 5
Re: exception has been thrown by the target of an invocation
« Reply #5 on: October 30, 2013, 12:31:57 pm »
data source=ppc-Bilgisayar; User ID=sa; Password=samba.1234;    yerel ayarlarım

akadir

  • Jr. Member
  • **
  • Posts: 69
Re: exception has been thrown by the target of an invocation
« Reply #6 on: October 31, 2013, 01:53:28 am »
ağı paylaştırdığın modeme kiosku direk bağlayarak deneyin. arada a.p olmadan be kablo ile . eğer bağlanırsa veri tabanı ayarları ve ana makina - client ağ ayarları tamamdır. yok bağlanmassa 2 ihtimal var
1)veri tabanı ayarlarında(başka pc bağlanabiliryorsa bu ihtimali elersiniz) yada ağ ayarlarında hata vardır. win 7 hp bilgisayarlar arası ortak bir ağ kurulum istemiyor modem ip si almış her aygıt ağa direk eklenebiliyor. win7 ultimate bir kere denk geldim bir ev ağı kurana kadar terminallerdeki yazıcıları ağa ekleyemedim. pc leri eklemede bir sorun yoktu.
2)bağlantı noktası arızası olabilir. kablonun bağlandığı eternet portu yada kablosuz bağlantıda kullanalan wifi aygıtı gibi. bunuda modeme kiosku direk kablo ile bağlayarak sonra pink atarak test edersiniz.pink  için dos kipini açıp satıra ping pc ipsini yazın .test sonuçlarına göre pcnin ağda olup olmadığını ne derece verimli olduğunu anlarsınız.

oknkmn

  • Newbie
  • *
  • Posts: 5
Re: exception has been thrown by the target of an invocation
« Reply #7 on: November 01, 2013, 09:00:25 am »
evet cmd de servera ping attıgımda bazen cevap alamıyorum sorun büyük ihtimal modemden kaynaklı değiştirip denicem yardım için teşekkürler