我正在使用DNN 7.3.4开发一个网站。我是这里的信号员。
我已为ffprobe 2.webm
ffprobe version N-86175-g64ea4d1 Copyright (c) 2007-2017 the FFmpeg
developers built with gcc 6.3.0 (GCC) configuration: --enable-gpl --
nable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2
--
nable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-
ontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --
nable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --
nable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-
ibmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
ibopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-
ibsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-
ibtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --
nable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
ibx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --
nable-zlib libavutil 55. 63.100 / 55. 63.100 libavcodec 57.
96.101
7. 96.101
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 90.100 / 6. 90.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Input #0, matroska,webm, from '2.webm':
Metadata:
encoder : libwebm-0.2.1.0
creation_time : 2017-05-04T14:59:01.639000Z
Duration: 00:02:35.16, start: 0.000000, bitrate: 32 kb/s
Stream #0:0(eng): Audio: opus, 48000 Hz, mono, fltp (default)
Stream #0:1(eng): Video: vp8, yuv420p(progressive), 640x480, SAR 1:1 DAR
4:3, 14.99 tbr, 1k tbn, 1k tbc (default)
执行了此脚本。
AUM_DoNotRewriteRegEx
在我的页面中
IF NOT EXISTS (SELECT * FROM dnn_hostsettings WHERE SettingName = 'AUM_DoNotRewriteRegEx' )
insert into dnn_hostsettings
(SettingName
, SettingValue
, SettingIsSecure
, CreatedByUserId
, CreatedOnDate
, LastModifiedByUserId
, LastModifiedOnDate
)
values(
'AUM_DoNotRewriteRegEx'
,'/DesktopModules/|/Providers|/LinkClick\.aspx|/SignalR'
, 0
, -1
, GETDATE()
, -1
, GETDATE()
)
GO
IF EXISTS (SELECT * FROM dnn_hostsettings WHERE SettingName = 'AUM_DoNotRewriteRegEx' and SettingValue not like '%/signalr%' )
update dnn_hostsettings
set settingValue = (select settingValue + '|/signalr' from dnn_hostsettings where settingname = 'AUM_DoNotRewriteRegEx')
where settingname = 'AUM_DoNotRewriteRegEx'
GO
答案 0 :(得分:2)
我认为你错过了在你的应用程序中启动signalR hub的OwinStartup类。在我的github上看这个名为DnnLogAnalyzer的项目。我有一个名为Startup.cs的类,它挂接到OwinStartup并启动应用程序的signalR hub。
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(DotNetNuclear.Modules.LogAnalyzer.Components.Startup))]
namespace DotNetNuclear.Modules.LogAnalyzer.Components
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
...
app.MapSignalR();
}
}
}
如果您是DNNHero.com订阅者,还可以查看我的分步教程,了解有关获取SignalR working in your DNN application的提示。
答案 1 :(得分:2)
经过巨大的R& D我找到了这个
我的owin startup class
没有开始。我已经在web配置中拥有这些密钥以自动启动owin
<add key="owin:AutomaticAppStartup" value="true" />
<add key="owin:appStartup" value="MyNamespace.MyStartupClass" />
但owin startup class
在这样做之后才开始。
然后我发现Microsoft.Owin.Host.SystemWeb
负责启动owin startup class
。我错过了在我的项目中添加dll
。添加Microsoft.Owin.Host.SystemWeb
owin
后,成功注册中心路由。