I've ran into an issue while releasing application using ClickOnce. The application got downloaded successfully on the client, but then it failed during deploy with the "Value does not fall within the expected range" error.
The issue is that ClickOnce doesn't support having the same application version twice on the machine. In our case, i first installed a "Test" version (different ClickOnce deploy folder) to make sure the app works as expected. Then i did deploy to live ClickOnce folder and tried to run the app on the same computer. The "Live" version exhibited the above error.
Solution is: increment the live version, problem solved.
Friday, September 12, 2008
Friday, September 05, 2008
Diff tool for C# source code
The diff tool which is part of VS 2005 (TFS) is very basic and any complex diff is impossible to resolve in it.
This page has a nice list of tools available:
http://codebetter.com/blogs/patricksmacchia/archive/2008/04/28/diff-tools-to-see-source-files-changes.aspx
I used to use Araxis long time ago and it was brilliant. I'll check out WinMerge and DiffMerge now to see if free tool can do the trick. Will post more info here once I'm done evaluating.
This page has a nice list of tools available:
http://codebetter.com/blogs/patricksmacchia/archive/2008/04/28/diff-tools-to-see-source-files-changes.aspx
I used to use Araxis long time ago and it was brilliant. I'll check out WinMerge and DiffMerge now to see if free tool can do the trick. Will post more info here once I'm done evaluating.
Wednesday, July 02, 2008
SQL 2005 32 bit on Vista 64 bit
I've decided to upgrade my work system to Vista 64bit (mainly due to larger memory). As I go on installing stuff, i keep running into various issues which I'll try to post here.
SQL 2005 Developer Edition (32 bit).
First issue is with the compatibility check-list - namely IIS and ASP.Net
This KB article outlines which features need to be turned on Vista in order for Reporting Services to work.
This link describes how to fix ASP.Net by running following:
SQL 2005 Developer Edition (32 bit).
First issue is with the compatibility check-list - namely IIS and ASP.Net
This KB article outlines which features need to be turned on Vista in order for Reporting Services to work.
This link describes how to fix ASP.Net by running following:
cscript %SystemDrive%\inetpub\AdminScripts\adsutil.vbs set w3svc/AppPools/Enable32bitAppOnWin64 1
Thursday, May 01, 2008
Read and parse Excel data from clipboard using Javascript
IE7 prevent clipboard from being read - you can enable it in the title-bar (blocked content). For Firefox read this info.
Following sample reads data from clipboard and tries to parse them and format back to table.
// prepare result
var resE = document.getElementById("result");
var res = "";
resE.innerHTML = "";
// read clipboard
var s = window.clipboardData.getData("Text");
// parse clipboard data
var lines = s.split(String.fromCharCode(13,10));
if (s.indexOf(String.fromCharCode(13,10)) == -1 || s.indexOf(String.fromCharCode(9)) == -1)
{
res = "(invalid data)";
}
else
{
var cols = lines[0].split(String.fromCharCode(9));
res = "Table size: " + lines.length + "x" + cols.length + "
";
res += "";
";
}
// output result
resE.innerHTML = res;
Following sample reads data from clipboard and tries to parse them and format back to table.
// prepare result
var resE = document.getElementById("result");
var res = "";
resE.innerHTML = "";
// read clipboard
var s = window.clipboardData.getData("Text");
// parse clipboard data
var lines = s.split(String.fromCharCode(13,10));
if (s.indexOf(String.fromCharCode(13,10)) == -1 || s.indexOf(String.fromCharCode(9)) == -1)
{
res = "(invalid data)";
}
else
{
var cols = lines[0].split(String.fromCharCode(9));
res = "Table size: " + lines.length + "x" + cols.length + "
";
res += "
| " + (cols[j] == "" ? "~" : cols[j]); } res += " |
}
// output result
resE.innerHTML = res;
Friday, December 14, 2007
Iterating through Enum
Every time i need to iterate through enum, i forget how to do it... so, for the last time:
foreach(byte b in Enum.GetValues(typeof(CounterPartyVO.CounterPartyTypes)))
Console.WriteLine("{0} : {1}"
, b
, Enum.GetName(typeof(CounterPartyVO.CounterPartyTypes), b)
);
foreach(byte b in Enum.GetValues(typeof(CounterPartyVO.CounterPartyTypes)))
Console.WriteLine("{0} : {1}"
, b
, Enum.GetName(typeof(CounterPartyVO.CounterPartyTypes), b)
);
Tuesday, December 11, 2007
ReSharper
Just ran into this add-in and it seems extremely usefull - ReSharper. I especially like the null detection (nightmare with junior devs)... at $199 looks like a good deal to me.
Also, Elegant Code is definately worth keeping an eye on - can't wait for some more in-depth feedback on the VS 2008 stuff (especially testing, since i'm still not ready to give up n-unit).
Also, Elegant Code is definately worth keeping an eye on - can't wait for some more in-depth feedback on the VS 2008 stuff (especially testing, since i'm still not ready to give up n-unit).
Friday, December 07, 2007
Graphs on Web
Google came up with yet another cool service - graphs!
Here's kind of SDK and there's also very nice article about it (in czech though).
There's also a paid site here - i believe it's $69 or so. Pretty cool!
Here's kind of SDK and there's also very nice article about it (in czech though).
There's also a paid site here - i believe it's $69 or so. Pretty cool!
Subscribe to:
Posts (Atom)