SSMS extension exceptionWhy there is no ForEach extension method on IEnumerable?Catch multiple exceptions at once?What is the proper way to re-throw an exception in C#?What are your favorite extension methods for C#? (codeplex.com/extensionoverflow)Does C# have extension properties?How do I use Assert to verify that an exception has been thrown?sql server invalid object name - but tables are listed in SSMS tables listSSMS 2017 Changing font sizeSSMS expand specific databaseUnable to debug ssms extension in Visual Studio 2017

I have a unique character that I'm having a problem writing. He's a virus!

Apache ErrorDocument returns 404 in place of 302

Which module had more 'comfort' in terms of living space, the Lunar Module or the Command module?

What does this colon mean? It is not labeling, it is not ternary operator

BOOM! Perfect Clear for Mr. T

Prove that the limit exists or does not exist

Why is B♯ higher than C♭ in 31-ET?

What is the most remote airport from the center of the city it supposedly serves?

Upside-Down Pyramid Addition...REVERSED!

Position of past participle and extent of the Verbklammer

Can there be a single technologically advanced nation, in a continent full of non-technologically advanced nations?

How to apply differences on part of a list and keep the rest

How important is people skills in academic career and applications?

Multi-channel audio upsampling interpolation

Why do money exchangers give different rates to different bills?

Why do only some White Walkers shatter into ice chips?

Send iMessage from Firefox

How do I tell my manager that his code review comment is wrong?

Getting a W on your transcript for grad school applications

Why are prions in animal diets not destroyed by the digestive system?

Can a nothic's Weird Insight action discover secrets about a player character that the character doesn't know about themselves?

How long would it take for people to notice a mass disappearance?

Would glacier 'trees' be plausible?

Manager is threatening to grade me poorly if I don't complete the project



SSMS extension exception


Why there is no ForEach extension method on IEnumerable?Catch multiple exceptions at once?What is the proper way to re-throw an exception in C#?What are your favorite extension methods for C#? (codeplex.com/extensionoverflow)Does C# have extension properties?How do I use Assert to verify that an exception has been thrown?sql server invalid object name - but tables are listed in SSMS tables listSSMS 2017 Changing font sizeSSMS expand specific databaseUnable to debug ssms extension in Visual Studio 2017






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I want to build a simple SSMS extension for my needs. I created VSIX project and it works perfect within VS. But when I try to test within SSMS - it does nothing. I set up checkbox to copy content into Extensions folder of SSMS, I added SkipLoad to my registry. I can see my extension into menu, but when I click - nothing happens, Execute method isn't hitted.



When I see logs - I see the following exception for my extension's GUID:



<entry>
<record>2409</record>
<time>2019/03/22 21:55:41.171</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [CommandPackage]Source: &apos;Microsoft.VisualStudio.Shell.15.0&apos; Description: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.Shell.AsyncPackage.Microsoft.VisualStudio.Shell.Interop.IAsyncLoadablePackageInitialize.Initialize(IAsyncServiceProvider asyncServiceProvider, IProfferAsyncService profferAsyncService, IAsyncProgressCallback progressCallback)</description>
<guid>D88E201F-ECED-431B-8698-EB110F922E21</guid>
<hr>80004003 - E_POINTER</hr>
</entry>


enter image description here



enter image description here



Please advise



Execute method is very simple, but it isn't even hitted:



private async void Execute(object sender, EventArgs e)

await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
var dte = await package.GetServiceAsync(typeof(DTE)) as DTE;
Assumes.Present(dte);

if (dte.ActiveDocument == null)
return;

var selection = (TextSelection)dte.ActiveDocument.Selection;
var text = selection.



UPDATE:
I followed these instructions: https://www.codeproject.com/Articles/1243356/Create-Your-Own-SQL-Server-Management-Studio-SSMS
And month ago it seems to be worked, but now broken - probably after some updates of SSMS



UPDATE 2:



Maybe I am using a wrong version somewhere?










share|improve this question
























  • You can try to create extension for SSMS18. They removed Guid white list verification. Package IDs no longer needed to develop SSMS Extensions In the past, SSMS was selectively loading only well-known packages, thus requiring developers to register their own package. This is no longer the case.

    – vik_78
    Apr 2 at 12:22


















0















I want to build a simple SSMS extension for my needs. I created VSIX project and it works perfect within VS. But when I try to test within SSMS - it does nothing. I set up checkbox to copy content into Extensions folder of SSMS, I added SkipLoad to my registry. I can see my extension into menu, but when I click - nothing happens, Execute method isn't hitted.



When I see logs - I see the following exception for my extension's GUID:



<entry>
<record>2409</record>
<time>2019/03/22 21:55:41.171</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [CommandPackage]Source: &apos;Microsoft.VisualStudio.Shell.15.0&apos; Description: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.Shell.AsyncPackage.Microsoft.VisualStudio.Shell.Interop.IAsyncLoadablePackageInitialize.Initialize(IAsyncServiceProvider asyncServiceProvider, IProfferAsyncService profferAsyncService, IAsyncProgressCallback progressCallback)</description>
<guid>D88E201F-ECED-431B-8698-EB110F922E21</guid>
<hr>80004003 - E_POINTER</hr>
</entry>


enter image description here



enter image description here



Please advise



Execute method is very simple, but it isn't even hitted:



private async void Execute(object sender, EventArgs e)

await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
var dte = await package.GetServiceAsync(typeof(DTE)) as DTE;
Assumes.Present(dte);

if (dte.ActiveDocument == null)
return;

var selection = (TextSelection)dte.ActiveDocument.Selection;
var text = selection.



UPDATE:
I followed these instructions: https://www.codeproject.com/Articles/1243356/Create-Your-Own-SQL-Server-Management-Studio-SSMS
And month ago it seems to be worked, but now broken - probably after some updates of SSMS



UPDATE 2:



Maybe I am using a wrong version somewhere?










share|improve this question
























  • You can try to create extension for SSMS18. They removed Guid white list verification. Package IDs no longer needed to develop SSMS Extensions In the past, SSMS was selectively loading only well-known packages, thus requiring developers to register their own package. This is no longer the case.

    – vik_78
    Apr 2 at 12:22














0












0








0








I want to build a simple SSMS extension for my needs. I created VSIX project and it works perfect within VS. But when I try to test within SSMS - it does nothing. I set up checkbox to copy content into Extensions folder of SSMS, I added SkipLoad to my registry. I can see my extension into menu, but when I click - nothing happens, Execute method isn't hitted.



When I see logs - I see the following exception for my extension's GUID:



<entry>
<record>2409</record>
<time>2019/03/22 21:55:41.171</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [CommandPackage]Source: &apos;Microsoft.VisualStudio.Shell.15.0&apos; Description: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.Shell.AsyncPackage.Microsoft.VisualStudio.Shell.Interop.IAsyncLoadablePackageInitialize.Initialize(IAsyncServiceProvider asyncServiceProvider, IProfferAsyncService profferAsyncService, IAsyncProgressCallback progressCallback)</description>
<guid>D88E201F-ECED-431B-8698-EB110F922E21</guid>
<hr>80004003 - E_POINTER</hr>
</entry>


enter image description here



enter image description here



Please advise



Execute method is very simple, but it isn't even hitted:



private async void Execute(object sender, EventArgs e)

await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
var dte = await package.GetServiceAsync(typeof(DTE)) as DTE;
Assumes.Present(dte);

if (dte.ActiveDocument == null)
return;

var selection = (TextSelection)dte.ActiveDocument.Selection;
var text = selection.



UPDATE:
I followed these instructions: https://www.codeproject.com/Articles/1243356/Create-Your-Own-SQL-Server-Management-Studio-SSMS
And month ago it seems to be worked, but now broken - probably after some updates of SSMS



UPDATE 2:



Maybe I am using a wrong version somewhere?










share|improve this question
















I want to build a simple SSMS extension for my needs. I created VSIX project and it works perfect within VS. But when I try to test within SSMS - it does nothing. I set up checkbox to copy content into Extensions folder of SSMS, I added SkipLoad to my registry. I can see my extension into menu, but when I click - nothing happens, Execute method isn't hitted.



When I see logs - I see the following exception for my extension's GUID:



<entry>
<record>2409</record>
<time>2019/03/22 21:55:41.171</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [CommandPackage]Source: &apos;Microsoft.VisualStudio.Shell.15.0&apos; Description: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.Shell.AsyncPackage.Microsoft.VisualStudio.Shell.Interop.IAsyncLoadablePackageInitialize.Initialize(IAsyncServiceProvider asyncServiceProvider, IProfferAsyncService profferAsyncService, IAsyncProgressCallback progressCallback)</description>
<guid>D88E201F-ECED-431B-8698-EB110F922E21</guid>
<hr>80004003 - E_POINTER</hr>
</entry>


enter image description here



enter image description here



Please advise



Execute method is very simple, but it isn't even hitted:



private async void Execute(object sender, EventArgs e)

await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
var dte = await package.GetServiceAsync(typeof(DTE)) as DTE;
Assumes.Present(dte);

if (dte.ActiveDocument == null)
return;

var selection = (TextSelection)dte.ActiveDocument.Selection;
var text = selection.



UPDATE:
I followed these instructions: https://www.codeproject.com/Articles/1243356/Create-Your-Own-SQL-Server-Management-Studio-SSMS
And month ago it seems to be worked, but now broken - probably after some updates of SSMS



UPDATE 2:



Maybe I am using a wrong version somewhere?







c# .net ssms visual-studio-extensions ssms-2017






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 at 23:42







Alex Ovechkin

















asked Mar 22 at 22:21









Alex OvechkinAlex Ovechkin

692418




692418












  • You can try to create extension for SSMS18. They removed Guid white list verification. Package IDs no longer needed to develop SSMS Extensions In the past, SSMS was selectively loading only well-known packages, thus requiring developers to register their own package. This is no longer the case.

    – vik_78
    Apr 2 at 12:22


















  • You can try to create extension for SSMS18. They removed Guid white list verification. Package IDs no longer needed to develop SSMS Extensions In the past, SSMS was selectively loading only well-known packages, thus requiring developers to register their own package. This is no longer the case.

    – vik_78
    Apr 2 at 12:22

















You can try to create extension for SSMS18. They removed Guid white list verification. Package IDs no longer needed to develop SSMS Extensions In the past, SSMS was selectively loading only well-known packages, thus requiring developers to register their own package. This is no longer the case.

– vik_78
Apr 2 at 12:22






You can try to create extension for SSMS18. They removed Guid white list verification. Package IDs no longer needed to develop SSMS Extensions In the past, SSMS was selectively loading only well-known packages, thus requiring developers to register their own package. This is no longer the case.

– vik_78
Apr 2 at 12:22













0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55308520%2fssms-extension-exception%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55308520%2fssms-extension-exception%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript