Sunday, March 18, 2012

Include file gone in Visual Studio 11?

No, it is not gone. You're project is just running.

Hope this blog saves you a couple of minutes.

Monday, June 20, 2011

Change address of click once deployment to Azure

Sometimes you would like to change the address where your application update. I searched the .net without finding an answer, or the answers said it was not possible. However I gave it a try and it works for me.

The situation I was facing was that my server hosting partner by accident erased all the data on my disks. Not so happy I cancelled the contract and moved everything I had to Azure. The only thing left was the client installation files.

Step by step guide:

You'll need an Azure storage acccount and a Storage Explorer like Cloud Storage Studio by Cerebrata.

Create a container in your Azure Storage named after your application.

In Visual Studio click the Publish tab in your project. Copy your old publishing folder location so you'll remember it and enter a local path instead (eg c:\temp\myapp\)

In Installation Folder URL, add the storage address + your containername (e.g. http://yourstoragename.blob.core.windows.net/myapp/)

Publish the application and then copy the installation files find under you local path to the storage account. If you use Cloud Storage Studio you can just drag the files and folders to your container.

Now, put your old publishing folder path back in Visual Studio but leave the installation folder instact and publish once again.

For the next release, dont forget to add the local path when publishing and to copy the new files to the cloud.

Thats it! As most things with Azure, it is really simple.

Monday, September 13, 2010

Findprivatekey.exe or not....

I Was really frustrated today trying to find the tool Findprivatekey.exe. However there is no need, at least if you are running Windows 2008. In the certificate console you can just right click the certificate choose All Tasks and manage private keys... There... you can set the rights for the certificate now.

Wednesday, February 10, 2010

Choosing between Wordpress, Drupal and other CMS

I'm not a Unix nerd. I run my sites on Microsoft Windows 2008 with MSSQL database installed. But when it comes to CMS and Open Source, sad to say, Microsoft isn't there YET.

After struggling with Drupal for 4 days, following examples in books, configuring etc, Drupal did not do what I wanted it to. I run the software on a dedicated server with Windows 2008 and almost all examples, books and forums are for Unix nerds. I really like Unix, but I never got around to learning it so at the same time I hate it. So I had to drop the Drupal site because it was giving to much headace before I even got the site up.

In 4 hours I configured Wordpress for my needs, A few pages, a wiki and a forum. Then another day to fix adds, SEO and add some content and I'm up and running. Most of the time was spent on looking for a suitable theme. There are a lot of themes for Wordpress, not so for drupal.

What happens now is that I'm forced to alter PHP in the themes to get the layout working as I want it to. So in the end, I don't know what is best in the long run.

Summary: To get a site up and running quickly, good looking, Wordpress is the winner. If you like to fiddle around with technical issues, Drupal is for you. I wish there was something in between, lika a wordpress plugin for Drupal.

Anyway, I just wanted to share that since I didn't find much about this issue on the net.


Ny tjänst för ekonomer och andra som arbetar med redovisning

Idag har jag lagt upp en ny hemsida: http://www.redovision.se/

Den är ett hjälpverktyg för människor som arbetar med redovisining (bokföring) eller ekonomi i allmänhet.

Varmt välkomna!

Sunday, January 24, 2010

Redirect 301 in IIS7 HTML

It took me a while to figure this one out, but it is really simple.

I moved a file on my site: http://www.luxuryspa.se/massage.html to http://www.luxuryspa.se/spa/massage.html.

Ooops... people had published links to the old adress and suddenly they'd get a 404 - File or directory not found Error. It showed up in Googles Webmaster Tools.

So I googled the problem and there was little advice on how to handle the problem with html-files on IIS. This is how you do it:

  1. Create a file with the name you'd like to redirect from. In my case massage.html and save it in the old location (I just wrote "301 Redirect to http://www.luxuryspa.se/spa/massage.html" in the file so I know what it is)
  2. Start the IIS Manager and go to the directory for your old location. Select the newly created file and right click it. Choose Switch to features view.
  3. Now you can see the file to the left and it is selected. So go ahead and double click HTTP Redirect and fill out the form. For me: http://www.luxuryspa.se/spa/massage.html and status code 301.
That's it!

Thursday, November 12, 2009

Microsoft File Transfer Manager

Today I received my Technet Subscription. I started to download but got an unexpected error code 12037.

After a while trying on different computers and OS i finally unchecked the HTTPS under Options. Then it worked.

Hope this helps some one else. I didn't find anything usefull on the Internet.