即将到来的星期二-dasBlog 2.0和Medium Trust

Well, the plan was to get dasBlog running on Medium Trust and 2.0 and releasing quickly.

好吧,计划是要使dasBlog在Medium Trust和2.0上运行并快速发布。

Of course, the best laid plans of mice and men, right?

当然,老鼠和男人最好的计划,对吧?

We've set the date for the dasBlog 2.0 Medium Trust Release for this coming Tuesday. Personally, I'm compiling it with Visual Studio 2008 with no problems, and I've recently got it dasBlog compiling and running on IIS7 on Vista 64 with very little trouble. It's Not Scary™.

我们已定下周二即将发布dasBlog 2.0中等信任版本的日期。 就我个人而言,我使用Visual Studio 2008进行编译时没有问题,最近,我使用dasBlog进行了编译并在Vista 64上的IIS7上运行,几乎没有什么麻烦。 这不是吓人™。

Tony Bunce has a fine write-up on the issues we ran into with dasBlog on Medium Trust. Here's some highlights:

对于我们与Medium Trust上的dasBlog遇到的问题, Tony Bunce进行了很好的撰写。 这里有一些亮点:

"The goal of medium trust is for hosting providers to provide functional ASP.NET 2.0 hosting while also protecting against rogue or malicious applications. Unfortunately that protection comes at the cost of application flexibility. ...There are a few features that are limited in a medium trust environment: SMTP on alternative ports and Mail to Weblog via POP3...dasBlog will let you know that you don't have these privileges by displaying warnings on the configuration page.

“中等信任的目标是使托管服务提供商能够提供功能性的ASP.NET 2.0托管,同时还可以防止流氓或恶意应用程序。不幸的是,保护功能是以牺牲应用程序灵活性为代价的。...一个中等信任的环境:备用端口上的SMTP和通过POP3 ...发送到Weblog的邮件通过dasBlog通过在配置页上显示警告,使您知道您没有这些特权。

There is some good news though, these limitations won't affect most users.  Many hosting providers that run limited trust environments don't run in the default medium trust, but rather a "modified full trust".  In that case you may already have all the permissions you need for all of the features to work."

虽然有一些好消息,但这些限制不会影响大多数用户。 运行有限信任环境的许多托管服务提供商不是以默认的中等信任运行的,而是“修改后的完全信任”的。 在这种情况下,您可能已经拥有了所有功能正常运行所需的所有权限。

Go check out his post for more details. The most interesting issue we bumped into was that you aren't supposed to be able to call out via HTTP on the server side to any other connections unless they match your originURL in your web.config. In other words, my blog at www.hanselman.com can't call to any other site that isn't hanselman.com. However, you can set you originUrl to a regular expression like ".*" and then you can connect anywhere. Phil Haack noticed this and got the fix from Cathal Connollys.

去检查他的帖子了解更多详情。 我们碰到的最有趣的问题是,除非服务器上的HTTP.URL与您的web.config中的originURL匹配,否则您就不能通过服务器端的HTTP调用该服务器。 换句话说,我在www.hanselman.com上的博客无法调用不是hanselman.com的任何其他网站。 但是,可以将originUrl设置为“。*”之类的正则表达式,然后可以在任何地方连接。 菲尔·哈克(Phil Haack)注意到了这一点,并从卡塔尔·康诺利斯(Catha Connollys)得到了解决。

翻译自: https://www.hanselman.com/blog/coming-tuesday-dasblog-20-and-medium-trust

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值