How to get DEVPATH assemblies in the Add reference window in Visual Studio 2010? - visual-studio-2010

I want to add reference to an assembly that is in the Devpath folder. But it does not appear in the Add Reference Window.
the C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config is updated with :
<runtime>
<developmentMode developerInstallation="true"/>
</runtime>
The environment variable DEVPATH is set in system variable as
C:\SharedAssemblies
I try to add the reference directly into the project file :
<Reference Include="AssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=123456789, processorArchitecture=MSIL">
But MSBuild do not look at the devpath folder and returns
warning MSB3245: Could not resolve this reference. Could not locate the assembly...
How does this work ?
If I add the assembly to the GAC, the Fusion log show me that the devpath folder is used :
*** Entrée du journal Binder d'assembly (28/11/2012 # 15:09:07) ***
L'opération a réussi.
Résultat de liaison : hr = 0x0. L’opération a réussi.
Gestionnaire des assemblys chargé à partir de : C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Exécution sous l'exécutable c:\users\User\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe
--- Un journal des erreurs détaillé suit.
=== Informations d'état de liaison préalable ===
JRN : utilisateur = User
JRN : DisplayName = AssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=123456789
(Fully-specified)
JRN : Appbase = file:///c:/users/User/documents/visual studio 2010/Projects/ConsoleApplication1/ConsoleApplication1/bin/Debug/
JRN : DEVPATH = C:\SharedAssemblies
JRN : PrivatePath initial = NULL
JRN : base dynamique = NULL
JRN : base de cache = NULL
JRN : AppName = NULL
Assembly appelant : Microsoft.VisualStudio.HostingProcess.Utilities, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
===
JRN : cette liaison démarre dans le contexte de chargement de default.
JRN : utilisation du fichier de configuration de l'application : c:\users\User\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe.Config
JRN : utilisation du fichier de configuration de l'ordinateur à partir de C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
JRN : référence post-stratégie : AssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=123456789
JRN : un assembly a été trouvé dans le chemin d'accès DEVOVERRIDE C:\SharedAssemblies\AssemblyName.DLL

Adding the registry key
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\DEVPATH]#="C:\SharedAssemblies"
does the job.
MSDN reference

Related

Error on Open Kb Genexus 17 in Genexus 18

========== Preserve Knowledge Base style based on themes started ==========
No version update was required.
Failed: Preserve Knowledge Base style based on themes
I receive this error in every single KB when i close on Genexus 17 and Open on Genexus 18.
Timestamp: 13/02/2023 14:09:47
Message: HandlingInstanceID: 24c7ba00-4ede-4a8d-b273-6b13d512b349
An exception of type 'Artech.Common.Diagnostics.GxException' occurred and was caught.
-------------------------------------------------------------------------------------
02/13/2023 14:09:47
Type : Artech.Common.Diagnostics.GxException, Artech.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=6f5bf81c27b6b8aa
Message : Cannot access a disposed object.
Object name: 'ObjectSelectorControl'.
Source :
Help link :
Exception Data
Product : GeneXus 18
Version : 18.0.167910 U1
Exception.Severity : Error
TargetSite :
HResult : -2146232832
Stack Trace : The stack trace is unavailable.
Additional Info:
MachineName : MACHINNENAME
TimeStamp : 13/02/2023 17:09:47
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=3.1.0.0, Culture=neutral, PublicKeyToken=79a65ef946496ecc
AppDomainName : GeneXus.exe
ThreadIdentity : MACHINNENAME\WINDOWSUSER
WindowsIdentity : MACHINNENAME\WINDOWSUSER
Inner Exception
---------------
Type : System.ObjectDisposedException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Cannot access a disposed object.
Object name: 'ObjectSelectorControl'.
Source : System.Windows.Forms
Help link :
ObjectName : ObjectSelectorControl
TargetSite : Void CreateHandle()
HResult : -2146232798
Stack Trace : at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at Artech.Core.UI.ToolWindows.ObjectSelectorControl.StopPainting()
at Artech.Core.UI.ToolWindows.ObjectSelectorControl.OnUpdateDataSource(List`1 items)
at Artech.Core.UI.ToolWindows.ObjectSelectorControl.set_Objects(List`1 value)
at Artech.Core.UI.ToolWindows.WorkWithObjectsEditor.Artech.Core.UI.ToolWindows.IObjectBrowser.UpdateControl(ObjectBrowserHelperResult result)
at Artech.Core.UI.ToolWindows.ObjectBrowserHelper.WorkerRunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
at System.ComponentModel.RunWorkerCompletedEventHandler.Invoke(Object sender, RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)
Category: Default Category
Priority: 0
EventId: 100
Severity: Error
Title:Genexus Application Exception
Machine: MACHINNENAME
Application Domain: GeneXus.exe
Process Id: 6420
Process Name: C:\Program Files (x86)\GeneXus\GeneXus18\GeneXus.exe
Win32 Thread Id: 3696
Thread Name:
Extended Properties: AdvancedInformation.Product - GeneXus 18
AdvancedInformation.Version - 18.0.167910 U1
Exception.Severity - Error

Couldn't connect to my Oracle database with Tableau Desktop

I'm trying to use my oracle data in Tableau but I couldn't connect to my database. I'm using Oracle SID. Here the message error i get:
Erreur au niveau de la base de données Oracle (12541) : ORA-12541: TNS
: pas de processus d'écoute Impossible de se connecter au serveur
Oracle "desktop-49t8ps8". Vérifiez que le serveur est en cours
d'exécution et que vous disposez des droits nécessaires pour accéder à
la base de données demandée.
Which translates as:
Oracle database error (12541): ORA-12541: TNS: no listener Unable to connect to Oracle server "desktop-49t8ps8". Check that the server is running and that you have the necessary rights to access the requested database.
edit :

Jython, websphere : Operation getStatsObject not in ModelMBeanInfo

Could you please help me to get the current value of ActiveCount (ThreadPoolModule) in websphere ?
Below you can find my code and the error generated :
perfName = AdminControl.completeObjectName ('name=WebContainer,type=ThreadPool,process=G5-WLS,*')
perfOName = AdminControl.makeObjectName (perfName)
sigs = ['javax.management.ObjectName', 'java.lang.Boolean']
jvmName = AdminControl.completeObjectName ('name=WebContainer,type=ThreadPool,process=G5-WLS,*')
params = [AdminControl.makeObjectName (jvmName), java.lang.Boolean ('false')]
jvmStats=AdminControl.invoke_jmx (perfOName, 'getStatsObject', params, sigs)
ActiveCount=jvmStats.getStatistic( 'ActiveCount').getCurrent()
Error in line 6 :
wsadmin> jvmStats=AdminControl.invoke_jmx (perfOName, 'getStatsObject', params, sigs)
WASX7015E: Exception reçue lors de l'exécution de la commande : " jvmStats=AdminControl.invoke_jmx (perfOName, 'getStatsObject', params, sigs)"; informations sur l'exception :
javax.management.MBeanException
javax.management.ServiceNotFoundException: Operation getStatsObject not in ModelMBeanInfo
Sorry I have found the answer :
perfName = AdminControl.completeObjectName ('type=Perf,process=G5-WLS,*')
perfOName = AdminControl.makeObjectName (perfName)
sigs = ['javax.management.ObjectName', 'java.lang.Boolean']
threadPoolName = AdminControl.completeObjectName ('name=WebContainer,type=ThreadPool,process=G5-WLS,*')
params = [AdminControl.makeObjectName (threadPoolName), java.lang.Boolean ('false')]
jvmStats=AdminControl.invoke_jmx (perfOName, 'getStatsObject', params, sigs)
ActiveCount=jvmStats.getStatistic( 'ActiveCount').getCurrent()
And the result :
wsadmin>print ActiveCount
1

Access to windows server share prompt for credentials on Windows 7

Since I have restarted one of my DC (I have previously check if it owned FSMO roles), windows 7 domain computers ask for credentials to access network shares.
Bellow the prompt Windows, there is an error message about wrong credentials.
I have check the credential store with no success.
No problem with Windows XP clients with same user account.
No error in event log (I have enable the account audit functionnality).
Reboot of file server and clients do nothing.
Thanks for your help.
In addition, we have lot of entries in the event log 4625:
Sujet :
ID de sécurité : NULL SID
Nom du compte : -
Domaine du compte : -
ID d’ouverture de session : 0x0
Type d’ouverture de session : 3
Compte pour lequel l’ouverture de session a échoué :
ID de sécurité : NULL SID
Nom du compte : username
Domaine du compte : domain.local
Informations sur l’échec :
Raison de l’échec : Une erreur s’est produite lors de l’ouverture de session.
État : 0xc000006d
Sous-état : 0x0
Informations sur le processus :
ID du processus de l’appelant : 0x0
Nom du processus de l’appelant : -
Informations sur le réseau :
Nom de la station de travail : computer
Adresse du réseau source : -
Port source : -
Informations détaillées sur l’authentification :
Processus d’ouverture de session : NtLmSsp
Package d’authentification : NTLM
Services en transit : -
Nom du package (NTLM uniquement) : -
Longueur de clé : 0
Cet événement est généré lorsqu’une demande d’ouverture de session échoue. Il est généré sur l’ordinateur sur lequel l’accès a été tenté.
Le champ Objet indique le compte sur le système local qui a demandé l’ouverture de session. Il s’agit le plus souvent d’un service, comme le service Serveur, ou un processus local tel que Winlogon.exe ou Services.exe.
Le champ Type d’ouverture de session indique le type d’ouverture de session qui a été demandé. Les types les plus courants sont 2 (interactif) et 3 (réseau).
Les champs relatifs aux informations sur le processus indiquent quel est le compte et le processus sur le système qui ont demandé l’ouverture de session.
Les champs relatifs aux informations sur le réseau indiquent la provenance de la demande d’ouverture de session distante. Le nom de la station de travail n’étant pas toujours disponible, peut rester vide dans certains cas.
Les champs relatifs aux informations d’authentification fournissent des détails sur cette demande d’ouverture de session spécifique.
- Les services en transit indiquent les services intermédiaires qui ont participé à cette demande d’ouverture de session.
- Le nom du package indique quel a été le sous-protocole qui a été utilisé parmi les protocoles NTLM.
- La longueur de la clé indique la longueur de la clé de session générée. Elle a la valeur 0 si aucune clé de session n’a été demandée.
I have found the solution.
This is the technet link that addresses this problem.
I have installed on my DC the KB3002657-v2 and things are back to normal.
Thx.

Dynamics CRM 2015, Unable to connect to plugin registration tool SDK

I am using Microsoft Dynamics CRM 2015 online trial version.
I got an error while trying to connect to plugin registration tool in the SDK 2015.
I am using windows seven 64-bit.
The full stack trace message is this:
Source : mscorlib
Method : HandleReturnMessage
Date : 25/02/2015
Time : 14:22:21
Error : Une faute non sécurisée ou incorrectement sécurisée a été reçue de l'autre partie. Voir le FaultException interne pour le code et les détails de la faute.
Stack Trace : Server stack trace:
à System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)
à System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
à System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
à System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
à System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
à System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
à System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
à Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustContract.Issue(Message message)
à Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr)
à Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateLiveIdInternal(ClientCredentials clientCredentials, SecurityTokenResponse deviceToken, String keyType)
à Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(ClientCredentials clientCredentials, SecurityTokenResponse deviceTokenResponse, String keyType)
à Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(ClientCredentials clientCredentials, SecurityTokenResponse deviceTokenResponse)
à Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateLiveIdInternal(AuthenticationCredentials authenticationCredentials)
à Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(AuthenticationCredentials authenticationCredentials)
à Microsoft.Xrm.Tooling.Connector.CrmWebSvc.ClaimsIFDFailOverAuth[T](IServiceManagement`1 servicecfg, Uri homeRealm, ClientCredentials userCredentials, ClientCredentials deviceCredentials, Int32 depthLevel, Boolean tryNetworkCred)
à Microsoft.Xrm.Tooling.Connector.CrmWebSvc.CreateAndAuthenticateProxy[T](IServiceManagement`1 servicecfg, Uri ServiceUri, Uri homeRealm, ClientCredentials userCredentials, ClientCredentials deviceCredentials, String LogString)
à Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, Uri homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)
à Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.QueryLiveDiscoveryServer(ClientCredentials liveCreds, Uri discoServer)
à Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.FindCrmOnlineDiscoveryServer(ClientCredentials liveCreds)
à Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)
Inner Exception Level 1 :
Source : Not Provided
Method : Not Provided
Date : 25/02/2015
Time : 14:22:21
Error : Authentication Failure
Stack Trace : Not Provided
I know this is the obvious answer, but it looks like the credentials you provided may not be correct, or you are trying to connect to the wrong Online Region. I would try selecting "Don't Know" as the option for the Online Region, and try connecting again.

Resources