Tips and Tricks in a world of Mix

Posts tagged ‘Silverlight’

Working with Oracle from SqlServer 20008 with Services–the Architecture part 1

At the present project I’ve encountered a problem of working with Oracle through the portal of SqlServer .

q: What is the need for it ?

a: Reduction of development time ..

 

So , I have at my project a few tasks :

  1. Create a DB schema and fill it out with temporary data.
  2. Create quickly a code corresponding with database
  3.  Add sources of Oracle to SQL SEVRER .
  4. Include handle of UDT objects .
  5. use it – The download link for SSMA for Oracle.  
  6. Be able to work with web services , maybe RIA services ,  especially with Oracle UDT objects .  This is a sample of Grid Silverlight through RIA Services .

 

If I’d start doing all this things through the procedures of Oracle I would need at least one DB programmer working on it for about a month and a half I think , and then I’d need a .Net programmer that would work on his end for the same amount of time , probably not in parallel , so it would prolong the development in 2 , maybe even more.

 

The goal is to create a DB  in SqlServer and create corresponding entities automatically .

Then create RIA services per entity . (Well RIA Services is really a luxury , so we’ll see how it goes ) .

(more…)

Advertisements

Silverlight–Formatting Xaml – beautify

1. In VS2008 or VS2010 go to Tools –> Options

2. Expand Text Editor -> XAML -> Formatting –> Spacing

image

 

image

 

 

3. Under "Attribute Spacing" check "Position each attribute on separate line".

4. If you prefer, you can also put the first attribute on the same line as the tag by checking the box.  I use this setting because it isn’t offensive and still saves a little space.

image

Now, whenever you edit XAML in Visual Studio, press "Ctrl+K+D" and Visual Studio will reformat the XAML as desired.

image

if you check

Position first attribute on same line as start tag it’ll look like this :

image

I think that I preffer the second option.

Unhandled Error in Silverlight Application Code : 2103 – Invalid or malformed application : Check manifest

 

Line: 54
Error: Unhandled Error in Silverlight Application
Code: 2103   
Category: InitializeError      
Message: Invalid or malformed application: Check manifest   

(more…)

Ria Services DomainServices missing

image

image

image

using System.ServiceModel.DomainServices.Hosting;
using System.ServiceModel.DomainServices.Server;
using System.ServiceModel

 

try to take it from  :

C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Libraries\Server\

 

If you don’t have it goto -  http://www.silverlight.net/getstarted/riaservices/

SvcTraceViewer.exe for Wcf debbuging – Silverlight and WCF – The remote server returned an error: NotFound

http://msdn.microsoft.com/en-us/library/ms732023.aspx

Insert into web.config in configuration tag :

 

<system.diagnostics>
    <trace autoflush="true" />
    <sources>
            <source name="System.ServiceModel" 
                    switchValue="Information, ActivityTracing"
                    propagateActivity="true">
            <listeners>
               <add name="sdt" 
                   type="System.Diagnostics.XmlWriterTraceListener" 
                   initializeData= "SdrConfigExample.e2e" />
            </listeners>
         </source>
    </sources>
</system.diagnostics>


Open the log file : SdrConfigExample.e2e through SvcTraceViewer : (more…)

Dll’s for DomainService

image

Pay attention that the Microsoft.Practices.Unity that by default installed in your Program Files folder is different from Silverlight Prism template .

Choose the one from Silverlight Prism template . I’m managing all third party or in a way special dll’s  in an External.Libs for each project – this makes the project portable .

It has to be in our case 1.2.0.0 version.

Prism – module composition with WPF and Silverlight – download and build dll’s

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=387c7a59-b217-4318-ad1b-cbc2ea453f40&displaylang=en

download

CompositeApplicationGuidance-Oct2009.exe

run with destination folder.

Enter the dest folder –> CAL –> open sln –> build –> get the dll’s.

Nessasary dll’s are – “..\CAL\Silverlight\Composite.UnityExtensions\Bin\Debug”

  • Microsoft.Practices.Composite.dll
  • Microsoft.Practices.Composite.Presentation.dll
  • Microsoft.Practices.Composite.UnityExtensions.dll
  • Microsoft.Practices.ServiceLocation.dll
  • Microsoft.Practices.Unity.dll

Now you are  good to go.

Have a nice composition of modules in WPF or Silverlight.

God speed!

Tag Cloud

%d bloggers like this: