Long Cloud Technologies
"... A Yankee in the Land of the Long White Cloud, Aotearoa ..."

Fun with WebDAV

I’m currently in the process of moving this blog from my old server (real piece of iron that was running me US$ 150 / month just to have hosted) to a new VPS from MyHosting (US$ 500 / year).

In trying to publish my new corporate website to (an ASP.NET MVC app) from Visual Studio 2010 to my server using WebDAV.

Sidenote: Microsoft has been trying to get rid of Front Page Server Extensions for a while…  They want us to move to WebDAV for all the reasons we used FPSE, and my new server is running Server 2008 R2 with IIS 7.5 which won’t allow you to install FPSE anymore.  With this cycle of product release MS has decided to force you to use WebDAV.  Configuration of WebDAV is a nightmare, either they need to allow installation / activation / configuration of WebDAV to be as easy as the former FPSE install, or they are going to have to back down (again) and allow FPSE to be run in IIS 7.5. 

So after 2 days of trying to figure out / activate / configure WebDAV it seemed that I finally got it working, so I go to publish my ASP.NET MVC 2.0 web site up to my new server using the Publish Feature in VS2010 for a solution and everything works, UNTIL we hit the “Views” folder, suddenly we get an error

405 - HTTP verb used to access this page is not allowed.

I fire up Expression 4, attach to the website using WebDAV and I can view and add and delete from any folder in the project (controllers, contents, etc) except the “View” folder.  With an MVC project that is pretty much a non starter.  So how did I fix it?  The usual way when MS doesn’t provide good management tools or error diagnostics, I use a sledge hammer (yeah I know my server isn’t a Black Box, but I don’t have time or the will to start trying the 101 different diagnostic pathways to determine what is going on).

I don’t recommend this fix, and someday when I have more time I will go in and figure out the exact necessary and sufficient minimal fix, but for now the answer was:

  1. Open IIS
  2. Select the root website that you want to publish to
  3. Click on the Handler Mappings
    image
  4. scroll down and find the WebDAV handler and click on it then in the Actions click on Editimage
    image
  5. Click on the Request Restrictions
    image
  6. Then click on the Verbs tab, and you will see something like this…
    image
    In my case the verbs in the list were: PROPFIND,PROPPATCH,MKCOL,PUT,COPY,DELETE,MOVE,LOCK,UNLOCK
  7. Make a copy of those verbs and store them somewhere (see step 11), cause you will want to come back later and unsledge hammer this fix.
  8. Finally just click the “all verbs” radio option and click OK
    image
  9. OK and Apply your way out, and you are good to go!
  10. publish away
  11. Now go back in and PUT the verbs BACK IN, otherwise WebDAV will decided it gets to handle all request before anyone else which must mucks with your site.

As I said, this is definitely a sledge hammer solution and I only recommend it as a work around.  I’ll try to do the 101 diagnostic tests in the next couple of weeks to determine what extra verb I need to add to allow the “View” folder to be accessed / modified.

What so weird is that it only happens on the “Views” folder, I would have expected the same verbs to be used with any of the folders that are published.  What makes the Views folder so unique that it has to use special verbs that the other folders don’t?

Posted on 26 Aug 10 12:13 by matthew.hintzen |

Bookmark this post with:

E-mail | Comments(0) | Comment RSS


Firefox is like the Cheese, It Stands Alone!

So one of my friends and former colleagues warned me today that my blog wasn’t working correctly with Google feedburner Link that Google generates (which isn’t really my fault) and that when he used the archive links to pull up the actual entry, he saw a whole bunch of spam at the bottom of the entry.  And he sent me screen shots

image

Ok, it’s not exactly spam, it’s Trackback links which the Evil Scum Lowlife f**kw*d spammers of the world have decided to ruin for the rest of us. I had actually “shut-off” my trackbacks, but it appears that they were still being allowed, at least that’s what it looks like from the screen shot I was sent!

So I immediately pull it up in my usual working browser and I don’t see the issue.

image

A second look show me that he is using ForeFix, FireFox, and as you can see, I’m using IE… So before I pull up FireFox to see if I can reproduce the error, I bring up the tie breaker Chrome.

image

Whoa, no problem there, so finally I open FireFox on my machine

image

DING, DING, DING, we have a Loser!

Ok, it is definitely my blog server (I shouldn’t be serving up those links), but still, FireFix is doing something wrong!

This blog entry is about my attempts to fix the problem on this blog (making this a recursive Blog entry, I love those types).

So let’s look at the page source from IE, Chrome and Firefox and see what we have:

And they all show the same thing, this is what we have:

Posted on
            10-Dec-09
         by Matthew C. Hintzen<br /><a href="/Blogs/archive/2009/12/10/refactoring-in-sql.aspx"> Link to this post
                </a>

        | Bookmark this post with: <span class="categories-post"><a href="http://del.icio.us/post?url=/Blogs/archive/2009/12/10/refactoring-in-sql.aspx&amp;title=Refactoring in SQL" title="Add to del.icio.us"><img src="/Blogs/themes/clean/images/delicious.png" border="0" /></a>

            <a href="http://digg.com/submit?phase=2&amp;url=/Blogs/archive/2009/12/10/refactoring-in-sql.aspx" title="Digg it"><img src="/Blogs/themes/clean/images/digg.png" border="0" /></a>

            <a href="http://technorati.com/cosmos/search.html?url=/Blogs/archive/2009/12/10/refactoring-in-sql.aspx" title="Technorati"><img src="/Blogs/themes/clean/images/technorati.png" border="0" /></a>

            <a href="http://www.facebook.com/share.php?u=/Blogs/archive/2009/12/10/refactoring-in-sql.aspx" title="Facebook"><img src="/Blogs/themes/clean/images/facebook.gif" border="0" /></a>

            <a href="http://reddit.com/submit?url=/Blogs/archive/2009/12/10/refactoring-in-sql.aspx&amp;title=Refactoring in SQL" title="Reddit"><img src="/Blogs/themes/clean/images/reddit.png" border="0" /></a></span><br />

        Tags:
            </div></div><div class="clear"> </div>

<!--
<div class="comments"><h3>Links to this post</h3><div class="comments-visitor"><span class="comments-intro">Klonopin.</span><p /><span class="comments-intro">
                Trackback from
                    <a href="http://www.viddler.com/explore/Klonopintkg">Snorting klonopin.</a>
                on 28 Mar 2009</span></div><div class="comments-author"><span class="comments-intro">Black shemale.</span><p /><span class="comments-intro">
                Trackback from
                    <a href="http://www.viddler.com/explore/shemale">Shemale galleries.</a>
                on 28 Mar 2009</span></div><div class="comments-visitor"><span class="comments-intro">Buy cheap phentermine.</span><p /><span class="comments-intro">
                Trackback from
                    <a href="http://www.kaboodle.com/buy_phentermine">Cheap phentermine free shipping.</a>
                on 28 Mar 2009</span></div><div class="comments-author"><span class="comments-intro">Shemale free.</span><p /><span class="comments-intro">
                Trackback from
                    <a href="http://www.viddler.com/explore/shemale">Shemale sex.</a>
                on 28 Mar 2009</span></div><div class="comments-visitor"><span class="comments-intro">Free gay porn video clips.</span><p /><span class="comments-intro">
                Trackback from
                    <a href="http://www.viddler.com/explore/free_gay_video">Free gay video free.</a>
                on 29 Mar 2009</span></div><div class="comments-author"><span class="comments-intro">Side effects of diovan.</span><p /><span class="comments-intro">
                Trackback from

And all the trackbacks are here on the page in the source, but they are commented out.  IE and Chrome pay attention to that comment out, but FireFox decided it was going to ignore it.  And for the record, the comment is properly closed.  Looking more carefully in the source from FireFox, here is a picture of how it is parsing the stuff (color-coded in the FireFox Source Viewer)..

image

You’ll notice that suddenly in the middle of  the commented out section, FireFox decides it’s no longer going to pay attention to that <!--  even though it hasn’t hit the terminating -->.

Browsers… what are you going to do.  Ok now that I KNOW its a bug in Firefox, let’s go fix my blog so the bug doesn’t show up.

I’m using Sharepoint to serve up my blog using the CKS:EBE blogging add-in.  So I go in to the Post.aspx and delete the commented out

<!--
<EBE:TrackBackLinks runat=”server” Transform-XslName="PostTrackBack.xsl" />
-->

Which the sharepoint server was actually rendering in-between comment indicators (and which makes sense if I had thought about it, so I admit it was originally my fault).

But still Firefox shouldn’t have done what it did.  I also went into Sharepoint lists and deleted all the trackback links from the database.  So all gone, bye bye now!

Posted on 11 Dec 09 08:27 by matthew.hintzen |

Bookmark this post with:

E-mail | Comments(0) | Comment RSS


Google Feedburner is mucking up links to this blog

If you are subscribed to this blog in feeds.feedburner, be aware that the links to the blog are being rendered incorrectly by Google.  I’m working on it to see if I can make a workaround for their bug.  Use http://www.longcloud.co.nz/Blogs/rss.xml instead.

Technorati Tags: Cold Pricklies

(Update on August 25th 2010, this whole blog has been moved so this no longer applies)

Posted on 11 Dec 09 08:15 by matthew.hintzen |

Bookmark this post with:

E-mail | Comments(0) | Comment RSS