我想在https上使用asp.net core 1.0运行Kestrel我试着关注这篇文章http://dotnetthoughts.net/how-to-setup-https-on-kestrel/
但它不适用于asp.net核心
它给出了错误
app.UseKestrelHttps(certificate)
错误是
错误CS1061'IOpplicationBuilder'不包含'UseKestrelHttps'的定义,并且没有可以找到接受类型'IApplicationBuilder'的第一个参数的扩展方法'UseKestrelHttps'(您是否缺少using指令或程序集引用?)
我在app.xaml.cs文件中创建了自己的自定义属性,我需要在我的一个viewmodel中访问此属性.当我尝试通过Application对象访问时,它不会显示.谁能帮我这个.
问候
我正在使用带有.net后端的Azure移动服务,MvvmCross使用基于Xamarin Pcl的解决方案.当我从Azure移动服务提供的默认浏览器界面以交互方式运行时,该服务会返回结果.我也在使用离线数据同步功能.我可以将数据推送到服务器并且它可以工作,但现在当我尝试从服务器提取数据时.
{Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException:无法完成请求.()at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient.d__18.MoveNext()---从抛出异常的先前位置开始的堆栈跟踪结束---在System的System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务). Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务task)在System.Runtime.CompilerServices.TaskAwaiter.GetResult()
在Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient.d__1d.MoveNext()---从以前的位置,其中的例外是堆栈跟踪的结尾抛出---在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(工作任务)在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(工作任务)在System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient.<RequestAsync>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()在Microsoft.WindowsAzure. MobileServices.MobileServiceTable.d__f.MoveNext()---从抛出异常的先前位置开始的堆栈跟踪结束---在System.Runtime.CompilerServices.TaskAwaiter.ThrowForN 的onSuccess(任务task)在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(工作任务)在System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Microsoft.WindowsAzure.MobileServices.MobileServiceTable.<ReadAsync>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()在Microsoft.WindowsAzure.MobileServices.Sync.PullAction.d__0.MoveNext() - -从以前的位置,其中的例外是在System.Runtime.CompilerServices抛出---在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(工作任务)在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务task)堆栈跟踪的结尾. TaskAwaiter.GetResult()
在Microsoft.WindowsAzure.MobileServices.Sync.TableAction.d__0.MoveNext()---从先前的位置堆栈跟踪,其中引发异常---在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess结束(任务任务)
位于Microsoft.WindowsAzure.MobileServices.Sync.Mobil的System.Runtime.CompilerServices.TaskAwaiter.GetResult()的System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)eServiceSyncContext.d__3b.MoveNext()---从先前的位置堆栈跟踪其中的例外是在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务task)抛出---在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(工作任务)结束at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceSyncContext.d__27.MoveNext()---从抛出异常的上一个位置的堆栈跟踪结束---在System.Runtime. CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务),位于System.Runtime.CompilerServices.TaskAwaiter.GetResult()的System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务),
位于AgLiveMobile.Core.Services.EmployeeService.d__4.MoveNext()}
我甚至调试了从客户端到服务器的服务,结果是来了,但我无法知道为什么会发生这种情况.我在我的Windows Phone 8.1设备上进行了Wifi连接测试.
请帮忙.