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

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현