Scott Hanselman

Coming Tuesday - dasBlog 2.0 and Medium Trust

August 12, 2007 Comment on this post [4] Posted in ASP.NET | DasBlog
Sponsored By

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

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â„¢.

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

"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.

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 can't call to any other site that isn't 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.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service
August 12, 2007 22:16
That's great news Scott. The medium trust issue is very annoying, but I see why hosting providers use it. Personally I think High trust is "the golden middle way".
August 13, 2007 2:17
Hi, I'm using dasblog now and it work great except there's not a function for recent coments. I don't know whether it's a good question or not as I'm really a fresher to coding but imo this function should be quite necessary for most of the blog users. I really hope there should be an "official" macro for recent comments function. I have tried all my best to use different 3rd party macros and most of the alternative ways to make it happen but no luck. Jforsythe's macro is the best one I've tried but it still have some problem with ordering the comments. Could you please kindly consider this function in the upcoming version of Dasblog as it's so good? Thank you very much for your time for all the work on dasblog project.
August 13, 2007 2:27
Leo - Good idea. It's hard because of the way DasBlog stores the comments next to the entries, but we'll take a look. There is an RSS Feed for the comments across posts if that helps?
August 15, 2007 19:31
Yes, I noticed there is a RSS feed for all the comments. Currently I'm using this feed to check the recent comments. The disadvantage is maybe only the blog master or some one absolutly fancy you will subscribe this feed. Most of the visitor would just leave you a msg but when they come back again to see whether the blog owner has replied them yet they just cannot find the entry (if you get quite a lot entries).

Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.