Mihail Stoynov's blog!
Surrender your ego
Sunday, March 02, 2008
dasBlog, medium trust and pingbacks
I had an issue for quite a while with pingbacks in
dasBlog
:
Error:
System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, ... failed.
at ...
at newtelligence.DasBlog.Runtime.Proxies.WeblogUpdatesClientProxy.Ping(String weblogName, String weblogUrl)
at newtelligence.DasBlog.Runtime.BlogDataServiceXml.PingWeblogsWorker(Object argument)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Net.WebPermission
It comes up that medium trust allows opening connections only to originHost (I guess localhost).
Here's how I solved it:
go to
%windir%\Microsoft.
NET
\Framework\{version}\CONFIG\web_mediumtrust.config
and find
<IPermission class="WebPermission" ...
and add some additional URIs:
<IPermission
class="WebPermission"
version="1">
<ConnectAccess>
<URI uri="$OriginHost$"/>
<!-- [Mihail Stoynov]
dasBlog
needs it for pingbacks START -->
<URI uri="
http://rpc.weblogs.com/RPC2
"/>
<URI uri="
http://rpc.technorati.com/rpc/ping
"/>
<URI uri="
http://ping.blo.gs/
"/>
<URI uri="
http://rpc.pingomatic.com/
"/>
<URI uri="
http://ping.feedburner.com
"/>
<URI uri="
http://api.feedster.com/ping
"/>
<URI uri="
http://xping.pubsub.com/ping/
"/>
<URI uri="
http://api.my.yahoo.com/RPC2
"/>
<!-- [Mihail Stoynov]
dasBlog
needs it for pingbacks END -->
</ConnectAccess>
</IPermission>
These addresses were in
%
dasBlog
%\SiteConfig\WebServices.xml
Comments [0]
|
Trackback
OpenID
Please login with either your
OpenID
above, or your details below.
Name
E-mail
(will show your
gravatar
icon)
Home page
Remember Me
Comment (Some html is allowed:
a@href@title, blockquote@cite, strike
) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.
Enter the code shown (prevents robots):
Live Comment Preview
dasBlog theme by
Mads Kristensen
RSS feed
Search
Archives
November, 2008 (15)
October, 2008 (16)
September, 2008 (30)
August, 2008 (15)
July, 2008 (14)
June, 2008 (26)
May, 2008 (6)
April, 2008 (21)
March, 2008 (14)
February, 2008 (28)
November, 2007 (5)
October, 2007 (7)
September, 2007 (1)
August, 2007 (7)
July, 2007 (3)
June, 2007 (1)
Blog Stats
Total Posts: 203
This Year: 179
This Month: 0
This Week: 0
Comments: 80
Categories
Did you know
Java
rulez
Sucks
БГ
Blogroll
Michael Moore (no rss)
Links
BG-JUG
Copyright policy
No rights reserved.
(You are going to
copy stuff anyway :)
If you mention my
name, thank you.
2008, Mihail Stoynov