{"action":"created","issue":{"url":"https://api.github.com/repos/olegsych/T4Toolbox/issues/5","labels_url":"https://api.github.com/repos/olegsych/T4Toolbox/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/olegsych/T4Toolbox/issues/5/comments","events_url":"https://api.github.com/repos/olegsych/T4Toolbox/issues/5/events","html_url":"https://github.com/olegsych/T4Toolbox/issues/5","id":76035330,"number":5,"title":"Could not load file or assembly 'T4Toolbox, Version=12.0.0.0, Culture=neutral, PublicKeyToken=null'","user":{"login":"Assam","id":4727391,"avatar_url":"https://avatars.githubusercontent.com/u/4727391?v=3","gravatar_id":"","url":"https://api.github.com/users/Assam","html_url":"https://github.com/Assam","followers_url":"https://api.github.com/users/Assam/followers","following_url":"https://api.github.com/users/Assam/following{/other_user}","gists_url":"https://api.github.com/users/Assam/gists{/gist_id}","starred_url":"https://api.github.com/users/Assam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Assam/subscriptions","organizations_url":"https://api.github.com/users/Assam/orgs","repos_url":"https://api.github.com/users/Assam/repos","events_url":"https://api.github.com/users/Assam/events{/privacy}","received_events_url":"https://api.github.com/users/Assam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/olegsych/T4Toolbox/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T15:59:57Z","updated_at":"2015-05-14T13:26:44Z","closed_at":null,"body":"Hi,\r\nAfter upgrading to latest version of T4Toolbox i am getting following exception:\r\n```\r\nError\t1\tErrors were generated when initializing the transformation object. The transformation will not be run.  The following Exception was thrown:\r\nSystem.IO.FileNotFoundException: Could not load file or assembly 'T4Toolbox, Version=12.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.\r\nFile name: 'T4Toolbox, Version=12.0.0.0, Culture=neutral, PublicKeyToken=null'\r\n\r\nServer stack trace: \r\n   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)\r\n   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)\r\n   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)\r\n   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)\r\n   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)\r\n   at System.Reflection.Assembly.Load(String assemblyString)\r\n   at System.UnitySerializationHolder.GetRealObject(StreamingContext context)\r\n   at System.Runtime.Serialization.ObjectManager.ResolveObjectReference(ObjectHolder holder)\r\n   at System.Runtime.Serialization.ObjectManager.DoFixups()\r\n   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)\r\n   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)\r\n   at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream stm)\r\n   at System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage.FixupForNewAppDomain()\r\n   at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[] reqStmBuff, SmuggledMethodCallMessage smuggledMcm, SmuggledMethodReturnMessage& smuggledMrm)\r\n   at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(Object[] args)\r\n\r\nException rethrown at [0]: \r\n   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)\r\n   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)\r\n   at System.IServiceProvider.GetService(Type serviceType)\r\n   at T4Toolbox.TransformationContext.GetService(Type serviceType)\r\n   at T4Toolbox.TransformationContext..ctor(TextTransformation transformation, StringBuilder generationEnvironment)\r\n   at T4Toolbox.TransformationContext.Initialize(TextTransformation transformation, StringBuilder generationEnvironment)\r\n   at Microsoft.VisualStudio.TextTemplatingBFAB6986108E94B1AC5A0E0C7B4E30903A3BB628F255F90A41F87609AC7BCC13849429B9F13396DC9DB3DC3A521BD2FFADF91307D99A8DB796F7F1B029FDB32F.GeneratedTextTransformation.Initialize() in c:\\'mypath'\\Model.tt:line 16\r\n   at CallSite.Target(Closure , CallSite , Object )\r\n   at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid1[T0](CallSite site, T0 arg0)\r\n   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.PerformTransformation()\r\n=== Pre-bind state information ===\r\nLOG: DisplayName = T4Toolbox, Version=12.0.0.0, Culture=neutral, PublicKeyToken=null\r\n (Fully-specified)\r\nLOG: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/\r\nLOG: Initial PrivatePath = NULL\r\nCalling assembly : (Unknown).\r\n===\r\n```\r\nI appreciate any help to solve this issue.\r\nRegards,\r\nAssam Zafar"},"comment":{"url":"https://api.github.com/repos/olegsych/T4Toolbox/issues/comments/102036254","html_url":"https://github.com/olegsych/T4Toolbox/issues/5#issuecomment-102036254","issue_url":"https://api.github.com/repos/olegsych/T4Toolbox/issues/5","id":102036254,"user":{"login":"olegsych","id":8355091,"avatar_url":"https://avatars.githubusercontent.com/u/8355091?v=3","gravatar_id":"","url":"https://api.github.com/users/olegsych","html_url":"https://github.com/olegsych","followers_url":"https://api.github.com/users/olegsych/followers","following_url":"https://api.github.com/users/olegsych/following{/other_user}","gists_url":"https://api.github.com/users/olegsych/gists{/gist_id}","starred_url":"https://api.github.com/users/olegsych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegsych/subscriptions","organizations_url":"https://api.github.com/users/olegsych/orgs","repos_url":"https://api.github.com/users/olegsych/repos","events_url":"https://api.github.com/users/olegsych/events{/privacy}","received_events_url":"https://api.github.com/users/olegsych/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T13:26:44Z","updated_at":"2015-05-14T13:26:44Z","body":"Thanks for reporting this, @Assam. Would you mind collecting more information from your environment?\r\n \r\n- Run the following command line to collect the codebase information the T4Toolbox package provides to Visual Studio? On my machine, I see entries that point to the T4Toolbox DLLs installed in my user extension cache.\r\n```\r\nget-childitem -path hkcu:\\SOFTWARE\\Microsoft\\VisualStudio\\12.0_Config\\RuntimeConfiguration -recurse | where-object {$_.GetValue(\"name\") -like \"T4Toolbox*\" }\r\n```\r\n\r\n- Run [fuslogvw](https://msdn.microsoft.com/en-us/library/e74a18c4.aspx), configure it to log all bindings to a custom folder and then repro the problem in Visual Studio. There will be a lot of bindings. You can find those relevant to T4Toolbox by running the following PowerShell command (\r\n```\r\nget-childitem -path C:\\YourFolder -recurse | where-object {$_.name -like \"*T4Toolbox*\" }\r\n```\r\nI see both successful and failed binding attempts for T4Toolbox assemblies in my environment. "}}