Raven Db 可以在 Winhost 上运行吗? [英] Can Raven Db run on Winhost?

查看:56
本文介绍了Raven Db 可以在 Winhost 上运行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Winhost 上以嵌入式模式运行 Raven Db,但我收到了以下堆栈跟踪的安全异常:

I'm trying to run Raven Db in embeddedmode on Winhost, but I get a securityexception with following stacktrace:

   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +31
   System.Security.CodeAccessPermission.Demand() +46
   System.Net.NetworkInformation.IPGlobalProperties.GetIPGlobalProperties() +53
   Raven.Database.Util.PortUtil.FindPort() in PortUtil.cs:34
   Raven.Database.Util.PortUtil.GetPort(String portStr) in PortUtil.cs:17
   Raven.Database.Config.InMemoryRavenConfiguration.Initialize() in InMemoryRavenConfiguration.cs:109
   Raven.Database.Config.RavenConfiguration.LoadConfigurationAndInitialize(IEnumerable`1 values) in RavenConfiguration.cs:30
   Raven.Database.Config.RavenConfiguration..ctor() in RavenConfiguration.cs:19
   Raven.Client.Embedded.EmbeddableDocumentStore.get_Configuration() in EmbeddableDocumentStore.cs:45
   Raven.Client.Embedded.EmbeddableDocumentStore.set_DataDirectory(String value) in EmbeddableDocumentStore.cs:69
   StingyPrice.MvcApplication.Application_Start() in Global.asax.cs:42

我的应用程序在完全信任(内部)模式下运行,但从该例外情况来看,我大胆假设 Raven 永远不会运行,除非他们放松安全策略.

My application is running in full trust (internal) mode but judging from that exception I'm making a bold assumption that Raven will never run unless they loosen their security policies.

我错了还是可以在 Winhost 上运行 Raven Db?此外,如果这是不可能的,可以运行 Raven Db 的共享网络托管服务提供商的列表将不胜感激.:-)

Am I wrong or is it possible to run Raven Db at Winhost? Also if it's not possible, a list of shared web hosting providers that can run Raven Db would be much appreciated. :-)

推荐答案

你可以试试 www.winhost.com 如下所述:

You can try www.winhost.com as described here:

如何在共享托管环境中运行 RavenDB?

它具有如此理想的允许完全信任,这是在 RavenDB 的情况下应该寻找的东西,以避免当前的安全权限问题......

It has the so desired Full Trust Allowed which is something one should look for in the case of RavenDB to avoid the current security permissions problems...

注意:我刚刚试过这个主机,可以确认它在完全信任的情况下与 RavenDB 一起工作得很好...... :-)

NOTE: I just tried this host and can confirm that it works great with RavenDB in Full Trust... :-)

这篇关于Raven Db 可以在 Winhost 上运行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆