Wednesday, March 7, 2012

Registry entries not found

I have a Notification Services instance/application running on the same machine that runs the website that manages the Subscribers. The instance is registered and it is running perfectly fine as a Windows service.

However, when running the subscription-management website i get the following error:

"The registry entries for the specified instance of Notification Services could not be found."

Please note, that the website is running on the same machine as the instance (and the SQL Server as well).

Any suggestions on how to solve this problem will be greatly appreciated.

Thanks.

Double check the string you are using to specify the instance name. It should be what you've defined in the following node of the ICF.

<!--Instance name-->
<InstanceName>MyInstance</InstanceName>

It's not the name of the service.

HTH...

Joe|||

Thanks for your reply.

Yes I know that the service name and the instance name is not the same. My instance name is PWNotifications and the name of the service (which is running fine by the way - chronicle tables are updated as scheduled) is NS$PWNotifications.

The error I get is in the ASP.NET code when this statement gets executed:

new Instance("PWNotifications");

It is very likely that there are some security-restrictions of the process running ASP.NET, I haven't looked into that yet, but the research I done so far tells my that this error is not security related - it is simply a matter of the service not being found.

I have also checked the registry - there is plenty of NS$PWNotifications-related nodes in there.

Another thing that might be relevant: The subscription-management part (the website) was originally written for an application running in .NET 1.x and Notification Services running on MS SQL 2000. It has now been converted to .NET 2.0, but otherwise it has not been changed. Is the [new Instance("PWNotifications")] syntax obsolete in the NS 2005 API?

/Henrik

|||

The problem is solved.

I had not updated the Microsoft.SQLServer.NotificationServices.dll used by the webproject from version 2.x to 9.x.

/Henrik

No comments:

Post a Comment