Bits of Info

Primarily technical blog on Lisp, .NET, C# development.

Friday, December 5, 2014

Error running Lightswitch app on a different machine

If you run into this error: Error 1 Cannot import the following key file: . The key file may be password protected. To correct this, try to import the certificate again or import the certificate manually into the current user’s personal certificate store. Client Error 2 Importing key file "ClientGenerated_1_TemporaryKey.pfx" was canceled. Client... Warning 3 The referenced component 'Microsoft.LightSwitch.Client.Internal' could not be found. Client... On the target machine: Go find the key file in your Project -> Client folder, double-click it and import it to the new machine. You will have to enter the password for the key. Source: social.msdn.microsoft.com

Friday, August 30, 2013

LightSwitch + XtraReports 12 to 13

A quick note about an issue I had trying to upgrade a Project to XtraReports 13.1 from 12.2. I installed the latest version of XtraReports as usual and ran the upgrade tool on my Project. Made all the final manual adjustments but could never get my Project to publish correctly. After a quick search on DevExpress forums I found out someone mentioning to not run the upgrade tool in this particular case, because it could corrupt the Project (maybe my case, don't know). Anyway, I reverted my changes in SVN, uninstalled 13.1, installed 12.2 and it worked fine after a few tweaks, mainly due to it being a slightly newer version. Later this month I will try the upgrade again, this time making all the changes manually to see if I get it working.

Tuesday, April 30, 2013

LightSwitch: How to associate a View with an existing Table

In LightSwitch 2012, the only way to create a link to a table from a view is to create a second DataSource for the views. It is not possible to create an artificial/manual reference if the two objects are in the same datasource.

Friday, December 7, 2012

LightSwitch Publish to Azure Issue

This one I got last week, as I was publishing an update for a LightSwitch application, to Azure. I made a change, published, all was good. Then I made some more changes, and when I tried to publish it again, I got this weird error about the authorization header:
Deployment failed : Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature
After some searching about this error on Google, I found out that this is a somewhat general error that might show up for different reasons. Great! After a lot of reading about the probable causes for the issue, I stumbled on this cryptic last post on one of the several MSDN topics on the subject:
Check your system time. it wrong. Problem solved - Artemov Ivan
Well, I had to check everything, so I went on and checked my clock. I had recently changed my motherboard so I thought there was a good chance my computer clock was messed up. Well, it wasn't. Then, suddenly it occurred to me that the Azure service was probably in an area that entered in daylight saving time. So I went ahead and added an hour to my computer clock, clicked the publish button and voilĂ , got it working! Back to work, then. Thanks, Artemov Ivan. EDIT: It turns out that after reinstalling SqlExpress2008 (I had only SqlExpress2012 installed), the system was finally able to publish without needing this weird computer clock workaround.

Tuesday, July 3, 2012

VMWare Player. Failed to lock the file error.

I had a power outage today while I was working with a virtual machine using the vmware player 4.0.4. When I got back to vmware and tried to start the virtual machine, I got this "VMware player cannot open disk ... Failed to lock the file" error message. After a little google search I found out that maybe a lock file could be causing this so I went to the folder where I had my virtual machine in and just deleted the lck file in the .vmdk.lck folder. Keeping it here for future reference.

Friday, November 4, 2011

Changing Connection String in Lightswitch

This has been annoying me on my work with Lightswitch, great tool for building business applications. Finally I found this information on a forum. It didn't get a high score there, but it was spot on.

With you want to change the connection strings in debug/release mode, search for Web.Config in project tree under the ServerGenerated folder. There you will find the connection string that is used by Lightswitch in design time.

You will have to close and reopen the solution so the change takes effect...

Thanks to Nehemiah Willis post at: Original forum post

Friday, July 22, 2011

Company Logo

I am finally in the process of starting my own business. Today, I received the logo/brand name. Here it is.


I am obviously biased, but I think it looks great.