Re: SQLite VS2013 available

2014-01-14 Thread osjasonroberts
Thanks for the info Greg, there’s also SQLite for Windows Runtime store apps 
which I’ve been using - you can install the extension: 
http://visualstudiogallery.msdn.microsoft.com/1d04f82f-2fe9-4727-a2f9-a2db127ddc9a






Jason Roberts
Journeyman Software Developer

Twitter: @robertsjason
Blog: http://DontCodeTired.com
Pluralsight Courses: http://bit.ly/psjasonroberts





From: Greg Keogh
Sent: ‎Tuesday‎, ‎14‎ ‎January‎ ‎2014 ‎3‎:‎28‎ ‎PM
To: ozDotNet






Good news everyone! On a whim I had a look and found that the SQLite folks have 
released this file:




http://system.data.sqlite.org/downloads/1.0.90.0/sqlite-netFx451-setup-bundle-x86-2013-1.0.90.0.exe




Which has the latest ADO provider and SQLite runtime with VS2013 design 
support. I had to uninstall 1.0.89 and put this one in, but thank heavens you 
can add an EF 5 EDMX to your project and you get the designer. You can't add 
the NuGet EF 6 package to your project then attempt to use SQLite due to 
provider incompatibilities explained here. I can sacrifice EF 6 for 5 to get 
the nice designer experience with SQLite for now.




Greg K

RE: [OT] Surface 2 OR Surface Pro 2

2014-01-14 Thread Paul Glavich
I bought my daughter a Surface 2 Pro for Xmas so she could use it for school 
(in year 9 this year) and I really like it. Zippy and nice enough form factor. 
If it came with i7 I might have picked one up for myself.

 

-  Glav

 

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On 
Behalf Of Stephen Price
Sent: 02 January 2014 2:59 AM
To: ozDotNet
Subject: RE: [OT] Surface 2 OR Surface Pro 2

 

Given i have more tablets than i can poke a stick at, i think i can give you my 
take on it.

I have a desktop pc (my gaming rig) a surface RT (1 not 2), an asus tab RT, an 
asus gaming laptop, Samsung book 9 plus, dell venue 8.
Nexus 7, 10 and 4. And Nokia 1520. 

Use them all depending which is charged and what I'm doing... Favour the asus 
RT over surface, but to be honest i would not get Rt device. See dell venue 8. 
Best screen is Samsung (quad Hd is awesome, touch screen and great battery)
Love the venue 8, the size is right and i don't take laptop to work anymore, 
why Rt when you can get win 8.1  Love 6" phone (wp8 is good this time 
around).

Typed on my phone :)

If i had to choose just one device it would be the dell venue 8. Got VS premium 
installed on it and mouse, keyboard and external monitor! 

  _  

From: James Chapman-Smith  
Sent: ‎1/‎01/‎2014 6:44 PM
To: ozDotNet (ozdotnet@ozdotnet.com)  
Subject: [OT] Surface 2 OR Surface Pro 2

Hi folks,

 

I've made the decision to purchase either a Surface 2 or a Surface Pro 2, but 
I'm completely torn as to which one to get.

 

I just want a tablet device that I can use when travelling, sitting on the 
couch, or in bed. I want a keyboard with trackpad/mouse so the touch cover is 
fine for both. I don't think battery life will be a big issue. I'm likely to 
get HDMI adapter for a Pro.

 

My choices are do I get a Surface 2 as my mobile computing device and use 
desktop PCs at home and work OR do I get a Surface Pro 2 and use it for both 
home and work?

 

Will a Surface Pro 2 really be a laptop/desktop replacement PC or is it a pain 
with the small screen and single USB port? Or is it just an overblown toy and 
I'll miss my laptop?

 

Can anyone give me any argument for one or the other?

 

Cheers.

 

James.



Web API Debugging

2014-01-14 Thread Greg Keogh
I accidentally solved the problem of how to debug and break a Web API app
in Visual Studio. I had to add a plain htm file to the project so I could
redirect there for help when a bad url was requested. That bit of
controller code looks like this, just in case it's of interest:

string authority = Request.RequestUri.GetLeftPart(UriPartial.Authority);
string url = string.Format("{0}/{1}AuthApiHelp.htm", authority,
Request.RequestUri.Segments[1]);
return Redirect(url);
I set the htm file in "Set as Start Page" and when I hit F5 it fires up
with that page open, but I can do all the usual debugging. D'Oh, why didn't
I do that before?

Greg K


Re: Web API Debugging

2014-01-14 Thread David Burstin
Hi Greg,

Glad you got it fixed. I had tried multiple different approaches to try to
replicate your problem, but just couldn't find anything helpful.

Happy New Year mate.

Cheers
Dave

Sent from my flux capacitor. Please excuse brevity and any odd autocorrect
errors.
On 15/01/2014 1:33 PM, "Greg Keogh"  wrote:

> I accidentally solved the problem of how to debug and break a Web API app
> in Visual Studio. I had to add a plain htm file to the project so I could
> redirect there for help when a bad url was requested. That bit of
> controller code looks like this, just in case it's of interest:
>
> string authority = Request.RequestUri.GetLeftPart(UriPartial.Authority);
> string url = string.Format("{0}/{1}AuthApiHelp.htm", authority,
> Request.RequestUri.Segments[1]);
> return Redirect(url);
> I set the htm file in "Set as Start Page" and when I hit F5 it fires up
> with that page open, but I can do all the usual debugging. D'Oh, why didn't
> I do that before?
>
> Greg K
>


Mixing platforms

2014-01-14 Thread Greg Keogh
Folks, I'm coding in a 64-bit Windows. I thought a project compiled with
Platform Any CPU could load and use classes in another library compiled as
Platform x86. But I'm wrong, and surprised.

My sanity check is a tiny DOS command with Any CPU referencing and calling
a method in another library with Platform x86, it dies with
BadImageFormatException.

Has something changed, or am I forgetting something?

Greg K


Re: Mixing platforms

2014-01-14 Thread Jano Petras
Hi Greg,

You have 32bit runtime installed on that box?


J.

On Wednesday, 15 January 2014, Greg Keogh  wrote:
> Folks, I'm coding in a 64-bit Windows. I thought a project compiled with
Platform Any CPU could load and use classes in another library compiled as
Platform x86. But I'm wrong, and surprised.
> My sanity check is a tiny DOS command with Any CPU referencing and
calling a method in another library with Platform x86, it dies with
BadImageFormatException.
> Has something changed, or am I forgetting something?
> Greg K


Re: Mixing platforms

2014-01-14 Thread Thomas Koster
Greg,

On 15 January 2014 16:46, Greg Keogh  wrote:

> Folks, I'm coding in a 64-bit Windows. I thought a project compiled with
> Platform Any CPU could load and use classes in another library compiled as
> Platform x86. But I'm wrong, and surprised.
>

A windows *process* is either 32-bit or 64-bit, never both. There is no
such thing as an "Any CPU" *process*. A 64-bit process cannot load 32-bit
object code, ever[1].

You are probably getting confused because an "Any CPU" assembly can be
loaded into either a 32-bit or 64-bit process.

I am guessing that you are trying to load a mixed-mode assembly that
contains native object code. If you are targeting 64-bit windows, you must
use a version of the library with the native code compiled for x86-64.

[1] http://msdn.microsoft.com/en-us/library/windows/desktop/aa384231.aspx

--
Thomas Koster


Re: Mixing platforms

2014-01-14 Thread Greg Keogh
>
> You have 32bit runtime installed on that box?
>

I guess so, I have seen the pairs of folders down under the Windows
folders. I thought you had no choice about which "Platform" of Framework
runtimes are installed, as it was chosen at install time for the OS
environment -- Greg


Re: Download BizSpark Older Licences Software

2014-01-14 Thread Scott Barnes
Same issue I had and the Key's wont' work post Expiry either. Recently I
had a HDD fail and had to reinstall Windows 8.1 Pro  used the bizspark
key and nope... nothing.

Office also didn't work. Visual Studio didn't work.. basically for the
first time since 2007 i'm now in the MSDN cold and now i'm writing
Java... WILL CODE .NET FOR FOOD.. :0 - that and I had to  mooch off my
works MSDN access.


---
Regards,
Scott Barnes
http://www.riagenic.com


On Mon, Jan 13, 2014 at 11:05 AM, Jiri Kosar  wrote:

>  Oh ok, sorry, I misunderstood. If I’m reading correctly and assuming
> that it was SQL 2008 R2 standard, the full file name is should be
> en_sql_server_2008_r2_standard_x86_x64_ia64_dvd_521546.iso . Maybe you can
> google the filename, download it from somewhere else and use
> http://www.microsoft.com/en-us/download/details.aspx?id=11533 to verify
> integrity that it was not compromised (http://thesqldude.com/tag/iso/
>
> ) . I hope that people can’t yet generate collisions with SHA1 as they can
> do with MD5.
>
>
>
> This is definitely not a recommended solution, but I think that all of us
> had a server down in some stage and could not afford to wait couple days.
> If you can get file from official source that is always the best.
>
>
>
> Good luck
>
> Jiri
>
>
>
> *Jiri Kosar*
>
> *Technical Specialist*
>
> _
>
> *ASI Solutions *
> Lakes Business Park, 8 Lord Street, Botany NSW 2019
>
>
>
> Ph:   +61 2 9384 8000 Fax:   +61 2 9666 5655
>
> Dir:   +61 2 9384 8021
>
> jko...@asi.com.au  www.asi.com.au
>
> [image: Description: Description: Description: Description:
> http://www.brocadejapan.com/sites/default/files/cert_bcnp%281%29.jpg][image:
> Description: cid:image002.jpg@01CD75AA.7C020650][image: 
> A10_CE_Logo.png]*[image:
> Description: cid:image004.jpg@01CD53EA.1059DDB0]*
>
>
>
> *From:* ozdotnet-boun...@ozdotnet.com [mailto:
> ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Corneliu I. Tusnea
> *Sent:* Monday, 13 January 2014 10:54 AM
> *To:* ozDotNet
> *Cc:* Esther Mosad
> *Subject:* Re: Download BizSpark Older Licences Software
>
>
>
> Jiri,
>
>
>
> I have all the licence keys as I had backups of them I just don't have
> access to the media itself for the installation packages.
>
>
>
> Regards,
>
> Corneliu.
>
>
>
>
>
> On Mon, Jan 13, 2014 at 10:28 AM, Jiri Kosar  wrote:
>
>  Hi Corneliu,
>
>
>
> just an idea, do you have your server backup ? It looks like the key is
> actually stored in registry and the registry is physically a file which you
> can open on another machine using regedt32/import. Maybe you can restore
> registry file, open it and read the key ?
>
>
>
> They do it in SQL, but still reading from registry:
>
> http://www.dbaservices.com.au/news/how-to-find-the-sql-server-product-key/
>
>
>
> Registry file location:
>
>
> http://serverfault.com/questions/302906/what-is-the-locations-of-the-registry-files-in-windows-2008-r2
>
>
>
> Thank you
>
> Jiri
>
>
>
> *Jiri Kosar*
>
> *Technical Specialist*
>
> _
>
> *ASI Solutions*
> Lakes Business Park, 8 Lord Street, Botany NSW 2019
>
>
>
> Ph:   +61 2 9384 8000 Fax:   +61 2 9666 5655
>
> Dir:   +61 2 9384 8021
>
> jko...@asi.com.au  www.asi.com.au
>
> [image: Description: Description: Description: Description:
> http://www.brocadejapan.com/sites/default/files/cert_bcnp%281%29.jpg][image:
> Description: cid:image002.jpg@01CD75AA.7C020650][image: 
> A10_CE_Logo.png]*[image:
> Description: cid:image004.jpg@01CD53EA.1059DDB0]*
>
>
>
> *From:* ozdotnet-boun...@ozdotnet.com [mailto:
> ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Andrew Coates (DPE
> AUSTRALIA)
> *Sent:* Monday, 13 January 2014 9:54 AM
> *To:* ozDotNet; Esther Mosad
> *Subject:* RE: Download BizSpark Older Licences Software
>
>
>
> Adding Esther, our BizSpark Evangelist.
>
>
>
> Doesn’t look like she’s back on deck until next Monday though.
>
>
>
> Cheers
>
>
>
> Andrew Coates, ME, MCPD, MCSD MCTS, Developer Evangelist, Microsoft, 1
> Epping Road, NORTH RYDE NSW 2113
> Ph: +61 (2) 9870 2719 • Mob +61 (416) 134 993 • Fax: +61 (2) 9870 2400 •
> http://blogs.msdn.com/acoat
>
> *Sent from the **new Office* 
>
>
>
> *From:* ozdotnet-boun...@ozdotnet.com [
> mailto:ozdotnet-boun...@ozdotnet.com ] *On
> Behalf Of *Corneliu I. Tusnea
> *Sent:* Monday, 13 January 2014 9:00 AM
> *To:* ozDotNet
> *Subject:* Download BizSpark Older Licences Software
>
>
>
> Morning everyone,
>
>
>
> I have a question about downloading licensed software from Microsoft.
>
>
>
> We used to be part of the Bizspark program which was very good to us. Part
> of the program we got licences to various software including SQL Server
> Standard.
>
> Our BizSpark program finished and we exited happily.
>
>
>
> However now I just had a hardware failure and I want to reinstall on new
> hardware on