tag:blogger.com,1999:blog-7485373130684237832.post6545926672823040832..comments2022-04-03T17:44:18.578+01:00Comments on T-SQL Tidy Blog: How to write a SQL Server Management Studio Add-in for Denali (CTP3) (Part 2)Unknownnoreply@blogger.comBlogger5125tag:blogger.com,1999:blog-7485373130684237832.post-80231213631420872172013-07-24T21:18:49.636+01:002013-07-24T21:18:49.636+01:00Did you solve FindNode problem ?Did you solve FindNode problem ?grothaghttps://www.blogger.com/profile/04413709108903310286noreply@blogger.comtag:blogger.com,1999:blog-7485373130684237832.post-15868549533174298932013-01-15T08:58:04.219+00:002013-01-15T08:58:04.219+00:00I've got the same problem. Did You solve it?I've got the same problem. Did You solve it?jerryhttps://www.blogger.com/profile/07948797119973617944noreply@blogger.comtag:blogger.com,1999:blog-7485373130684237832.post-88204017932252936592012-12-22T00:38:03.929+00:002012-12-22T00:38:03.929+00:00I am also having major issues trying to compile a ...I am also having major issues trying to compile a working addin. I believe I have referenced the proper libraries but when I try to implement ObjectExplorerService, It throws an error "Unable to cast object of Type Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService to type Microsoft.SqlServer.Management.SqlStudio.Explorer.ContextService"<br /><br />I am hoping the community will share info on a working Explorer interface!tsweb8033https://www.blogger.com/profile/05597659521437982734noreply@blogger.comtag:blogger.com,1999:blog-7485373130684237832.post-39373135530401440992012-12-09T06:07:24.732+00:002012-12-09T06:07:24.732+00:00Excellent post. I'm implementing something si...Excellent post. I'm implementing something similar to what you have in the Source Controled version. I'm adding a pair of items to the object explorer for databases. So far it is kind of working there is one segment that is giving me trouble in two ways. This is also in SQL Sever 2012 <br /><br />Below is the problem code.<br /><br /> INodeInformation node = objectExplorer.FindNode(navigationContext.Context);<br /> if(node.Parent.InvariantName.Equals("Databases"))<br /> {<br /> if (_databaseMenu == null)<br /> {<br /> string value = typeof(IMenuHandler).ToString();<br /><br /> _databaseMenu = (HierarchyObject)node.GetService(typeof(IMenuHandler));<br /> String wtf = _databaseMenu.ToString();<br /> RestoreMenuItem rst = new RestoreMenuItem();<br /> _databaseMenu.AddChild(string.Empty, rst);<br /> }<br /> <br /> }<br /><br />This works but it gives me two entries in the context menu because I think the call is being made aschynchronously twice to the change method. This is a nuisance but I do have a way around it. The other problem is more severe the FindNode method depending on how you are clicking around in management studio can seemingly randomly take forever. It does finish eventually but much later. Do you know of any work arounds for those problems?Anonymoushttps://www.blogger.com/profile/13519645212407502322noreply@blogger.comtag:blogger.com,1999:blog-7485373130684237832.post-50361074635606848512012-04-08T13:52:56.784+01:002012-04-08T13:52:56.784+01:00I am having problem when i downloaded your source ...I am having problem when i downloaded your source code and trying to use it please assist thank you.<br />Here is the screen shot<br />https://picasaweb.google.com/109227880271946894828/April82012blOGGyhttps://www.blogger.com/profile/11707122619450972476noreply@blogger.com