by matt
30. January 2009 16:52
I was asked today how to go about downloading a file as a response to a server request. I think last time I had to do that was in that days of ASP.Classic.
Anyhow, incase you are interested, the following code will allow you to download content through the browser and should bring up the browser save dialogue.
// Load a lovely file (yep - I'm not too concerned about permissions here) and
// read it into a buffer
FileStream fs = new FileStream(@"C:\TestXMLFile.xml", FileMode.Open);
long fileSize = fs.Length;
byte[] fileBuffer = new byte[Convert.ToInt32(fileSize)];
fs.Read(fileBuffer, ...
[More]
by Dan Matthews
30. January 2009 12:12
I was recently working with a client to deploy an EPiServer site and we came across a rather strange problem. The EPiServer Manager installed fine, but when I tried to set up a web site (with a database or not it doesn't matter) we were getting the following error reported: System.InvalidOperationException: The installation failed, and the rollback has been performed. ---> System.IO.DirectoryNotFoundException: The system cannot find the path specified. (Exception from HRESULT: 0x80070003) at System.DirectoryServices.Interop.UnsafeNativeMethods.IAds.PutEx(Int32 lnControlCode, String bst...
[More]
by Dan Matthews
16. January 2009 11:23
I've been thinking a bit about why EPiServer hits the 'sweet spot' for companies so nicely, and I think maybe the answer lies in its balance of feature coverage and market position. It knows where its strong point is - Content Management - but doesn't ignore the other areas. It also aims at the mid-market but is capable of scaling up or down, which is a sadly neglected approach. So many companies are being forced to choose between an self-declared 'Enterprise' solution or a self-confessed 'Entry Level' solution. Problem is, the Enterprise solutions are over-specified and over-priced for their ...
[More]
4b9763fa-51a8-492b-b09c-b626d9e47084|0|.0
Tags:
EPiServer