Gorgo.Live.ToString()

Mariusz, Gorzoch tech Blog

Archive for November 2011

SharePoint 2010 pre-requisites download links

leave a comment »

I get a task today to install SharePoint 2010 on the server which has no connection to internet. I get installer, placed in on the server, installed virtual-clone, mounted drive and hit setup.exe… and after a while I get a message : “no connection to internet” :(. As you probably aware in order to install SP2010 you need to install bunch of other tools/extension and if there is no connection to internet you need to get them manually. The problem is that Microsoft on the official site just place list of the required item without links. What you can find bellow is list with links (assuming you are performing installation on Windows Server 2008 R2):

1. Hotfix for Microsoft Windows (KB976462) : https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=23806 = “Windows6.1-KB976462-v2-x64.msu”

2. Microsoft SQL Server 2008 Native Client : http://go.microsoft.com/fwlink/?LinkId=123718&clcid=0x409  = “sqlncli.mis”

3. Windows Identity Foundation (KB974405) : http://www.microsoft.com/downloads/en/details.aspx?FamilyID=eb9c345f-e830-40b8-a5fe-ae7a864c4d76&displaylang=en = “Windows6.1-KB974405-x64.msu”

4. Microsoft Sync Framework Runtime v.1.0 (x64bit) : http://www.microsoft.com/download/en/details.aspx?id=15391 (just pick up “SyncSetup_en.x64.zip” file) = “SyncSetup_en.x64.zip”

Once you unzip this file, the think with you need is located in “Microsoft Sync Framework”. Just install this by running “Synchronization.exe” from that folder.

5. Microsoft Chart Controls for Microsoft .NET Framework 3.5 : http://www.microsoft.com/download/en/details.aspx?id=14422 = “MSChart.exe”

6. Microsoft Filter Pack 2.0 : Grab it from SharePoint 2010 installation CD, you can find it in folder = “{CDDrive}\PrerequisteInstallerFiles\FilterPack” = “FilterPack.exe”

7. Microsoft SQL Server 2008 Analysis Services ADOMD.NET : http://go.microsoft.com/fwlink/?LinkId=123699&clcid=0x409 = “SQLSERVER2008_ASOLEDB10.msi”

8. Microsoft Server Speech Platform Runtime (x64) : http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=16789 (please pick-up x64 version) = “Platform\x86\SpeechPlatformRuntime.msi”

and after installing those all things you will get to :

image

“product key” screen 🙂

good luck!

Written by Mariusz Gorzoch

25 November 2011 at 11:14

Posted in SharePoint 2010

SilverLight to JavaScript

leave a comment »

Did you know that you can really easy expose methods from your SilverLight classes to Javascript? I didn’t, but I know now that this is really simple. Here is what you need to do in order to achieve that:

1. Mark the class you want to expose from SilverLight with [ScriptableType]

2. Mark method you want to expose from you class with [ScriptableMemeber]

3. Inside you class constructor you need to call :

HtmlPage.RegisterScriptableObject("bridge", this);

with will register you time in the plug-in and makes it by this available to JavaScript.

and you are almost done! The rest what you need to do is to call it properly from you JavaScript site. Bellow you can find simple snippet you can use for that:

image

You can see above method “buttonClick”. This method get instance of the plug-in (make sure to use id of the object which hosts your SilverLight app) and then call “content” method and on that method call the type we used in registration (=bridge). This give us instance of our class and now you can call your method. In my case signature of the method is like this:

public void ChangeLabel(string kto)
{
    label3.Content = kto;
}

but you can use as many arguments as you need.

Written by Mariusz Gorzoch

20 November 2011 at 16:04

Posted in SilverLight

If you can…

leave a comment »

Written by Mariusz Gorzoch

16 November 2011 at 22:02

Posted in Bez kategorii