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

How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?