Posts in Category: Community

Using the VS.NET Web Page Designer with mojoPortal

For a long time my use of MasterPages has prevented the use of the VS.NET designer in setting up page layout.  Its never really bothered me because I'm an old school html guy and really never use the designer anyway so I didn't look into it too hard.  Since then several people have asked and expressed their wish for it to work in the VS.NET designer.  Well big thanks go out to Jan Hussaarts for figuring out why it didn't work and how to easily fix it.

It wasn't a problem with MasterPages itself, it was code I added to make it get the skin setting from the SiteSettings object stored in the HttpContext. The problem was that at design time there is no HttpContext so all it needed was a check to see if HttpContext is null before using it and now it works in the designer!

Its commited to svn for those of you working with the VS.NET Solution.

A new Release of Slick Upload is out

Chris Hynes just posted a new release of SlickUpload. Hopefully it will work in mono, I'm going to test it for him this weekend since I'm already using it in mojoPortal. So far it only works with Windows installations of mojoPortal and I must admit I'm dubious that the new version will work in mono not because of any problem in SlickUpload but I'm dubious of mono not behaving the same as .NET on Windows. From my last investigation I already know they don't implement the HttpWorkerRequest.GetPreLoadedEntityBody or I should say in the responses I got from the mailing list they call returning null an implementation but under IIS the sub classes of HttpWorkerRequest do in fact return the portion of the request that is already loaded. The .NET documentation confirms that the super class does in fact return null but to me that just means its up to the sub class to implement it. One person on the list also pointed out that Cassini web server returns null here but I think thats too low a bar. The mono/apache platform needs to compete with Windows/IIS.

Anyway the reason I fear it won't work is I already tried checking for the null on the GetPreLoadedEntityBody call and calling .ReadEntityBody() if null is returned and it didn't work and the .NET documentation says the super class HttpWorkerRequest returns 0 when you call ReadEntityBody() so I'm speculating that mono will return 0  from the ReadEntityBody() method and call it an implementation even though on Windows/IIS the sub classes implement these methods much more usefully.

I will be so pleased if I'm wrong and not entirely surprised but a little, stay tuned to find out.