2016-09-28 34 views
-2

我用信号r技术及其正常工作在本地系统中,但是当我在Windows Server 2012上载网站不起作用signalr没有在服务器2012的窗户,但运作正常工作在本地系统

我从源数据库恢复备份到目标,并手动设置启用代理,但仍然没有。 代码使券商:ALTER DATABASE RankMonitorings SET NEW_BROKER with rollback immediate

有趣的是,信号R项目正在良好的Windows Server之前,这(对理性变革的结构,我不得不重新上传),但 我不知道发生了什么

回答

-2

我在创建一个数据库(不是从源数据库运行生成的脚本)后手动解决了只设置代理的问题!

主要的麻烦是狗屎脚本:

SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[SqlQueryNotificationStoredProcedure-58cab9e6-30d3-40f2-8eac-e3461d7b879a] AS BEGIN BEGIN TRANSACTION; RECEIVE TOP(0) conversation_handle FROM [SqlQueryNotificationService-58cab9e6-30d3-40f2-8eac-e3461d7b879a]; IF (SELECT COUNT(*) FROM [SqlQueryNotificationService-58cab9e6-30d3-40f2-8eac-e3461d7b879a] WHERE message_type_name = 'http://schemas.microsoft.com/SQL/ServiceBroker/DialogTimer') > 0 BEGIN if ((SELECT COUNT(*) FROM sys.services WHERE name = 'SqlQueryNotificationService-58cab9e6-30d3-40f2-8eac-e3461d7b879a') > 0) DROP SERVICE [SqlQueryNotificationService-58cab9e6-30d3-40f2-8eac-e3461d7b879a]; if (OBJECT_ID('SqlQueryNotificationService-58cab9e6-30d3-40f2-8eac-e3461d7b879a', 'SQ') IS NOT NULL) DROP QUEUE [SqlQueryNotificationService-58cab9e6-30d3-40f2-8eac-e3461d7b879a]; DROP PROCEDURE [SqlQueryNotificationStoredProcedure-58cab9e6-30d3-40f2-8eac-e3461d7b879a]; END COMMIT TRANSACTION; END GO /****** Object: StoredProcedure [dbo].[SqlQueryNotificationStoredProcedure-801dad69-a27c-4d23-b139-ec911341de43] Script Date: 9/28/2016 13:30:38 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[SqlQueryNotificationStoredProcedure-801dad69-a27c-4d23-b139-ec911341de43] AS BEGIN BEGIN TRANSACTION; RECEIVE TOP(0) conversation_handle FROM [SqlQueryNotificationService-801dad69-a27c-4d23-b139-ec911341de43]; IF (SELECT COUNT(*) FROM [SqlQueryNotificationService-801dad69-a27c-4d23-b139-ec911341de43] WHERE message_type_name = 'http://schemas.microsoft.com/SQL/ServiceBroker/DialogTimer') > 0 BEGIN if ((SELECT COUNT(*) FROM sys.services WHERE name = 'SqlQueryNotificationService-801dad69-a27c-4d23-b139-ec911341de43') > 0) DROP SERVICE [SqlQueryNotificationService-801dad69-a27c-4d23-b139-ec911341de43]; if (OBJECT_ID('SqlQueryNotificationService-801dad69-a27c-4d23-b139-ec911341de43', 'SQ') IS NOT NULL) DROP QUEUE [SqlQueryNotificationService-801dad69-a27c-4d23-b139-ec911341de43]; DROP PROCEDURE [SqlQueryNotificationStoredProcedure-801dad69-a27c-4d23-b139-ec911341de43]; END COMMIT TRANSACTION; END GO /****** Object: StoredProcedure [dbo].[SqlQueryNotificationStoredProcedure-8345ab79-269a-4027-84d4-e4673054fafc] Script Date: 9/28/2016 13:30:38 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[SqlQueryNotificationStoredProcedure-8345ab79-269a-4027-84d4-e4673054fafc] AS BEGIN BEGIN TRANSACTION; RECEIVE TOP(0) conversation_handle FROM [SqlQueryNotificationService-8345ab79-269a-4027-84d4-e4673054fafc]; IF (SELECT COUNT(*) FROM [SqlQueryNotificationService-8345ab79-269a-4027-84d4-e4673054fafc] WHERE message_type_name = 'http://schemas.microsoft.com/SQL/ServiceBroker/DialogTimer') > 0 BEGIN if ((SELECT COUNT(*) FROM sys.services WHERE name = 'SqlQueryNotificationService-8345ab79-269a-4027-84d4-e4673054fafc') > 0) DROP SERVICE [SqlQueryNotificationService-8345ab79-269a-4027-84d4-e4673054fafc]; if (OBJECT_ID('SqlQueryNotificationService-8345ab79-269a-4027-84d4-e4673054fafc', 'SQ') IS NOT NULL) DROP QUEUE [SqlQueryNotificationService-8345ab79-269a-4027-84d4-e4673054fafc]; DROP PROCEDURE [SqlQueryNotificationStoredProcedure-8345ab79-269a-4027-84d4-e4673054fafc]; END COMMIT TRANSACTION; END GO

这是从源脚本生成optained,因为我写一个脚本提到是事业服务代理不工作的ALTER DATABASE RankMonitorings SET NEW_BROKER with rollback immediate

感谢我

相关问题