Posts

Showing posts from July, 2010

Managed COM server and COM client. How to subscribe to events of COM server?

hello wrote managed com server , com client in c#. when i’m trying reference com server in com client using code. type comtype = type.gettypefromprogid("my.comserver", true); object comobj = activator.createinstance(comtype); var comserver = (comserver)comobj; i reference new object instead of reference registered com server in rot. fix problem, use pinvoke cogetclassobject it works have problem. private void initcomserver(object sender, routedeventargs e) { object comserverinstance = null; var factory = ole32nativemethods.cogetclassobject(typeof(testcoclass).guid, registrationclasscontext.localserver, intptr.zero, typeof(iclassfactory).guid) iclassfactory; if (factory != null) { var iid = typeof(itestinterface).guid; factory.createinstance(null, iid, out comserverinstance); } this.comserver = (itestinterface)comserverinstance; } i don’t know

How to create a link that could open Bing maps application on a windows phone ?

hi ! i have developped web site in asp.net / vb.net map in 1 of page. have used bing maps api ajax. this works fine. on map, have put 1 pushpin infobox location of , other pushpin location (the location of phone under windows phone 7.5). i have gps coordinates of 2 pushpins. my problem : i put link called "itineraire" infobox of first pushpin opens bing maps application on windows phone user can way go location location. if not possible, @ least, link open bing maps application of windows phone, positionned on first location user click on button way position location. how ??? <html> <head> <title>test bing maps</title> <script charset="utf-8" type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&mkt=fr-fr"></script> <script type="text/javascript"> var map = null; var mycredential = "xxxxxxxxxxxxxx"

To learn ESB guidance

hi all, i thinking start using esb guidance in our biztalk project.   i looking reference learn implementing esb guidance, reference s tep step instructions on installing, designing, developing , implementing esb guidance in project . not big fan of microsoft documentation on subject. fyi, have seen website... http://www.quicklearn.com/library/default.aspx?page=getting-up-and-running-with-biztalk-esb-toolkit-20&ns=biztalk&aspxautodetectcookiesupport=1 i looking pointer book or article series learn esb guidance. thanks in advance.   hi, if looking more detailed information on esb guidance can @ esb toolkit site from biztalk development center or blogpost by dwight goines (he has written couple on esb). hth regards, steef-jan wiggers mvp & mcts biztalk server http://soa-thoughts.blogspot.com/ if answers question please mark accordingly   biztalk BizTalk Serve

Urgent!!Problem with webservice creation!!

hi guys,can tell me how configure port on our webservie should run while creation of webservices(incase dont want webservice run on default port).. when create webservice in vs2005 ,it runs webservice on arbitrarily selected port .further  wen try access same webservice  frm other machine  on  lan,it not able access tat webservice.  suppose on local machine ,the webservice url : http://localhost:2231/mywebservice/service.asmx wen try access same webservice comp on lan ,it doesnt open..the url typed : http://172.19.3.37:2231/mywebservice/service.asmx (\\172.19.3.37 being  ip address of comp on webservice resides).i hav disabled evry firewall also. plz help thanx in advance. hai microsoft                      think deployed app in development server . try 1 local iis , access app other location spcify ipaddress. Archived Forums A-B  &

Microsoft.Speech.Recognition Namespace - Supported Languages

hello all, i have managed use microsoft.speech.recognition namespace perform speech recognition using srgs grammars in english. what other languages supported? how can install additional recognition languages? want spanish, catalan , polish! does have microsoft speech server? tried install speech server & languages under windows 8 didn't succeed. please give me pointers because i'm lost.thank in advance! nikolas hi nikolas, the microsoft speech platform sdk 11 provides support 26 languages both speech recognition , speech synthesis (tts or text-to-speech). please check msdn document:  language support   luckily there are spanish, catalan , polish!language packs speech sdk 11: https://msdn.microsoft.com/en-us/library/hh378476.aspx however sdk , langauge pack must installed on computer running program. best  regards, kristin we trying better understand customer views on social support experience, participation in interview project appr

BizTalk Adapter Pack License expiration error but I didn't install the evaluation version

hi, just logged production machine haven't used in couple months testing. when ready go live...obiously problems start appearing out of no where! so trying update bindings in production , error: error saving properties. (system.argumentexception) specified address invalid. cannot obtain scheme binding validate address. (system.reflection.targetinvocationexception) exception has been thrown target of invocation. (microsoft.servicemodel.channels.common.adapterexception) the license microsoft biztalk adapter pack has expired. contact microsoft renew license.   i not think have installed evaluation versions on production machine. , verify, looked in control panel , not evaluation versions there. else? hi samual biztalk server 2009 requires licensed adapter pack licensed separately biztalk server should downloaded , payed separately  in biztalk 2010 adapter pack included   check thread can helpful please mark answer if helps. microsoft certified

polacies and vocabularies,

what dif between policies and vocabularies in bre?   hi, a policy logical grouping of rules. compose version of policy, save it, test applying facts. (and deploy it) you can create "business rule vocabularies" which are user-defined friendly names facts use in rule conditions , actions. vocabulary definitions make rules easier read, understand, , share among various workers within particular business domain.  vocabulary associated policy. the pro biztalk 2009 book gives detailed overview of bre. thanks, william  BizTalk Server  >  BizTalk Server General

Windows Service using C# to Transfer data between SQL Server and Oracle

  hi have developed windows service connects sql server 2000, reads data , writes 2 oracle 9i tables. have tested functionality placing code in asp.net 2.0 button click event. works good. have moved code function , placed in windows service application , called method in service_start().  elapsed_time() methods , set correctly.  service process installer --> account set 'user', allowing user enter user name , password during service start up. build successful. but when run service services console, getting message " the service on local computer stared , stopped. service stop automatically if have no work do, example, performance logs , alert service ".  applicatin event log  ' service cannot started. system.invalidoperationexception: executereader requires open , available connection. connection's current state closed.    @ system.data.sqlclient.sqlconnection.getopenconnection(string method) '. please note connecting remote sql server(in company domai

Leap Year Bug or What

this morning came in , started seeing errors 270/271 transactions. btw 4010 270/271 transactions. my edi pipeline version 3.0.1.0 my patches upto date os:win2k3r2 sp1 event type: error event source: biztalk server 2009 edi event category: none event id: 8114 date: 2/29/2012 time: 9:45:18 am user: n/a computer: server1 description: error encountered during parsing. x12 transaction set id '0001' contained in functional group id '1', in interchange id '002317203', sender id '12345     ', receiver id 'f00  ' being suspended following errors: error: 1 (field level error) segmentid: bht position in ts: 2 data element id: bht04__transactionsetcreationdate position in segment: 4 data value: 20120229 8: invalid date more information, see , support center @ http://go.microsoft.com/fwlink/events.asp. sv http://support.microsoft.com/kb/2435900 sv

If Statement Block of code best practice

i have silly question paying attention small stuff because plan on getting certified end of year or sometime next year. i read best practice use opening , closing brackets if statements in event or else adds code later.  this makes sense me not remember read when re-factoring code can uses compound statements , omit brackets make code cleaner.  which method best practice according microsoft? // if(boolean) // else // or else // or if(boolean) { // } else { // or else } its argument if want simple readable code or short one. thing keep simple , add braces break head on how turn 1 line , make impossible read. @ least thats opinion. please mark answered if answers question or unmark answered if did not. happy :) my site Visual Studio Languages  ,  .N

Add PDF attachment to OneNote page using Microsoft Graph API request

Image
hi, i want add pdf file onenote page (attachment + printout). has achieved this? page gets created , see pdf file shortcut. when click pdf file icon on onenote page message document corrupt. maybe binary stream not correct? know how correctly generate binary or mime stream pdf file? an example showed on page: https://graph.microsoft.io/graphdocuments/api-reference/beta/api/notes_post_pages.htm. not show how generate binary stream file. see blocks below code. binary stream generated using function:  function convertfiletobase64viafilereader(url, callback){ var xhr = new xmlhttprequest(); xhr.responsetype = 'blob'; xhr.onload = function() { var reader = new filereader(); reader.onloadend = function () { callback(reader.result); } reader.readasdataurl(xhr.response); }; xhr.open('get', url); xhr.send(); } --myapppartboundarycontent-dis-data; name="presentation" content-type: text/h

Serialization between C# type and tab-delimited format or string format

i have posted open source project serialize/deserialize c# class into/from tab-delimited format.  driving force exchange data between c# , r or excel. project contains string serialization/deserilization code exchange data between 2 c# applications using socket.  project contains extensive unit tests.  please enjoy. http://sourceforge.net/projects/expressivetype/ i in process of converting project in java.  wonder if has tools it. the project contains new concepts.  please send me feedbacks.  can either post feed here or send me directly @ chengpu@gmail.com . just checked sourceforce page. work mate !! u want free tool or paid tool? check one, seems good: http://tangiblesoftwaresolutions.com/product_details/csharp_to_java_converter_details.html sid Visual Studio Languages  , 

mobileServiceTable.includeTotalCount() in html Javascript

mobileservicetable.includetotalcount();  why returns record getting count. performance flaw. calling includetotalcount() instructs client ask server return count of items returned if no paging (skip / take) options use d. if don't use paging options, includetotalcount indeed match number of items returned, not performant. for example, in code below return total count, since no paging options specified, actual count of items returned same total count. var client = new windowsazure.mobileserviceclient(url, key); var table = client.gettable('todoitem'); table.includetotalcount().read().then(function(results) { var totalcount = results.totalcount; var actualcount = results.length; }); now, if paging (see below), values potentially different - if have 40 items in table, results.length 10 (because of 'take' call) , totalcount 40. var client = new windowsazure.mobileserviceclient(url, key); var table = client.gettable('todoitem'); table.take(10

Upgrading MQseries Adapter from BizTalk 2004 to BizTalk 2006

i have environment biztalk 2004 , mqseries adapter i’m upgrading biztalk 2006. have updated biztalk server , development computer , tried create couple of ports.     i getting error when trying send files   mqseries port.     this mqseries manager is in windows 2000 box. when checked blogs said need upgrade windows 2003 sp1.     i want know if can use same windows 2000 box , make work? may install sp4 ? if you're using biztalk 2006, you'll need install mqsagent component on mqseries machine.  support side side installation of mqsagent com+ component.  once run biztalk 2006 mqsagent configuration wizard, mqsagent2 com+ application created.  should work fine on win2k.   thanks, sarathy   BizTalk Server  >  BizTalk Server Adapters and Adapter Pack

Partition key not set in Event hub output

i have following query in stream analytics: select p2.gatewayid gatewayid,p2.deviceid, 'powerminute' property , p2.time, p2.value  output1 powerreading p2 timestamp time ... "output1" configured output event hub , have set "partition key column" gatewayid. yet, when @ messages in event hub, partitionkey null. message in event hub json , contains gatewayid element expected. ideas why partition key not set? and follow-up: message event hub array, contains 1 item, in cases, e.g. after stopping job , restarting start time being "last stopped time", there more 1 item in array. in test case gatewayid same, if there more 1 gatewayid in array, how partitionkey selected? reason doesn't work , there way fix it? do mean eventdata.partitionkey value in output event hub messages ? long gatewayid values being used hash , distribute events different eh partitions, need partitionkey set reason ?  this design way asa sends data output eh . whe

Map: Creating repeating records in destination document

hi all, i need create repeating nodes in destination document non repeating nodes in de source document. following (simplified) schema definition source document. <? xml  version = "1.0"   encoding = "utf-16" ?>   < xs:schema xmlns: b = "http://schemas.microsoft.com/biztalk/2003"   xmlns = "http://test.test"   targetnamespace = "http://test.test"  xmlns: xs = "http://www.w3.org/2001/xmlschema" >      < xs:element  name = "root" >        < xs:complextype >          < xs:sequence >            < xs:element  name = "field1"   type = "xs:string"   />            < xs:element  name = "field2"   type = "xs:string"   />            < xs:element  name = "record" >              < xs:complextype >                < xs:sequence >                  < xs:element  name =

Average Function Issue

hello gurus, i working on report in ssrs 2005 , add columns show average score, continually throws "group by" error. not seeing? select        avg(responses_2010.totalscore) avg_score, responses_2010.locality, responses_2010.section1totalpoints, responses_2010.section2totalpoints,                          responses_2010.section3totalpoints, responses_2010.section4totalpoints, responses_2010.section5totalpoints, responses_2010.section6totalpoints,                          responses_2010.section7totalpoints, responses_2010.section8totalpoints, responses_2010.section9totalpoints,                          responses_2010.section10totalpoints, responses_2010.totalscore, localities.localityname, localities.region from            responses_2010 right outer join                          localities on responses_2010.locality = localities.localityname where  (responses_2010.locality <> 'test locality') , (region in (@region))   thanks in advance!! try :-

Team Foundation Service DOWN November 8 2013

why tfs down???? team needs our work done & friday looking going unproductive day. updates on when up? hi, do still encoutner issue? team foundation service has maintenance on 11/08/2013, , might has effect connection. can access tf service account.   best regards, we trying better understand customer views on social support experience, participation in interview project appreciated if have time. helping make community forums great place. click here participate survey. Archived Forums V  >  Visual Studio Team Services

Why would this query return an error that mentions an entirely different database being offline?

trying list of fragmented indexes based on database name.  however,  select count(*) tablefragover80pctcount sys.dm_db_index_physical_stats (null, null, null, null, null )as ts inner join sys.tables t on t.[object_id] = ts.[object_id] inner join sys.indexes on i.[object_id] = ts.[object_id] inner join sys.databases db on ts.database_id = db.database_id db.name = 'my db name' , ts.avg_fragmentation_in_percent > 80.00 the error back  msg 942, level 14, state 4, line 1 database 'very different db' cannot opened because offline. i know there database on server offline, 2 or 3, not 1 im trying information about.  what cause above query have trouble getting index info caused entirely different database being offline? from sys.dm_db_index_physical_stats ( null , null, null, null, null )as ts see msdn sys.dm_db_index_physical_stats ;  first parameter database id ; if pass null here, databases scanned, offline one. olaf helper [ b

System Failure on Windows 2003

hello have windows server 2003 , today first time got evil blue screen of memory dump.  have sql server 2005 on server can loose data.  when rebooted , looked @ system logs here found   system failure 07/21/2011 the reason supplied user local\administrator last unexpected shutdown of computer is: other failure: system unresponsive  reason code: 0x8000005  bug id:  bugcheck string: 0x00000050 (0xb6bfc000, 0x00000000, 0x8083ffb8, 0x00000000)  comment: 0x00000050 (0xb6bfc000, 0x00000000, 0x8083ffb8, 0x00000000) for more information, see , support center at     can help hi,   please post in windows server forum, able assist better response. may ask memory dumps, since blue screen due memory issue. here forum link http://social.technet.microsoft.com/forums/en-us/category/windowsserver rgds, krishna http://blogs.sqlserver.in/ SQL Server

How to develop IOS/Android device compatible applications in sharepoint??

hi everyone, i have developed one web application in sharepoint 2013. per new requirement need display web app device compatible view. can please give me ideas on issue. is there option view web application mobile view else need redevelop application? i wanted display existing web application ios , android device view...... thanks in advance. phani kumar microsoft has introduced concept of device channels in sharepoint 2013 helps in enabling sharepoint sites mobile devices. have written blog post on how create device channels , use them in site. please have @ same , hope give idea how proceed on requirement. using device channels, can target site windows phone, iphone, android etc. http://myloveforsharepoint.blogspot.in/2013/08/device-channel-in-sharepoint-2013.html geetanjali arora | my blogs | SharePoint  , 

Replication & Synchronization

hi there, we developing system have e-commerce portal through can sell items @ shops of our vendors. website connected ms sql server standard edition , has fixed ip address. @ vendors end, providing them small pos software have ms sql express or compact edition connected internet. also, there no fixed ip address @ vendor's end. my question is, in scenario possible have real time bi-directional synchronization. is, if sold on vendor's side, gets reflected on central ms sql standard edition server (having fixed ip address) in real time , if sold on website gets reflected on vendor's panel (consisting ms sql express edition, dynamic ip address) in real time. i highly thankful if can suggest proper architecture achieving same. thanx in advance. Architecture  >  Architecture Ge

Which script references are best for deployment?

in starting html apps office, makes clear that it's best to use cdn reference office.js. description here: <!-- use cdn reference office.js when deploying app --> <!--<script src= "https://appsforoffice.microsoft.com/lib/1.0/hosted/office.js" ></script>--> <!-- use local script references office.js enable offline debugging --> < script src = "../scripts/office/1.0/microsoftajax.js" > </ script > < script src = "../scripts/office/1.0/office.js" > </ script > what imply other scripts? how ajax , jquery? keep local references deployment or should cdn references well? if latter, references should added? best wishes , in advance, daniel the benefits of content delivery networks twofold: 1 - cdn can potentially serve files user faster, may located physically closer user server, , reuse different web sites can mean script cached before user loads app. 2 - save on own

re: Xml Serialization

  hi people,   i losing mind on problem:   here classes:   code snippet [ xmlroot ( "baseflightsector" )] [ xmlinclude ( typeof ( flightsector ))] public class baseflightsector {} [ xmlroot ( "flightsector" )] public class flightsector : baseflightsector {} [ xmlroot ( "flightsectors" )] public class flightsectors : list < flightsector >{}         i proceed serialize these classes: code snippet flightsectors fs = new flightsectors (); flightsector f = new flightsector (); fs.add(f); using ( stringwriter sw = new stringwriter ()) { xmlserializer xs = new xmlserializer ( typeof ( flightsectors )); xmlserializernamespaces ns = new xmlserializernamespaces (); ns.add( string .empty, string .empty); xs.serialize(sw, fs, ns); console .writeline(sw.tostring()); }       and get:   flightsectors flightsector/ flightsectors   when want:  

console make a dll

Image
i able take existing console application written in c# 2008 , make dll. thenlike write new web forms page in c# 2010 pass information console app entered web form. can tell me how accomplish goal? hi. add console application in web forms solution. add reference web project: use classes console application in web project. Visual Studio Languages  ,  .NET Framework  >  Visual C#

How to access Query Parameter in Logic App

i sending query string parameter (bsbnumer) logic app this.<o:p></o:p>   https://prod-05.australiasoutheast.logic.azure.com:443/workflows/b187aef1f5/triggers/request/run? bsbnumber=123-456 &api-version=2016-06-01&sp=%2ftriggers%2frequest%2frun&sv=1.0&sig=abcd<o:p></o:p>   how can access inside logic app? <o:p>in older version of logic app use access like  @{triggers().outputs.body.queryparameters?['parametername']} </o:p>   thanks,<o:p></o:p> amrit sidhu<o:p></o:p> unfortunately today don't surface query parameters inside logic app - way pull today through api management pass-through.  i believe can use "set-header" api management policy :  context.request.url.querystring i've reached out api management team specify policy, added item our backlog push queries app logic app trigger.

Need help to see what I put in the array!

hello! i have problem program. it´s assignment school can not figure out problem is. program sodacrate, , supposed put sodas in sodacrate. made count price, working.  and loop stops after 25 times, , supposed able put in 25 sodas. doesn´t work when supposed able choose see have put in crate.  it demand crate array, not list. have been doing methods (i think it´s called) it´s bit messy. i´m gonna paste whole thing , maybe me see wrong.  i´m gonna make arrow can see in menu can choose see in crate, since things written in swedish.  hopefully can tell me wrong! thank you. class program { private static int amountbottles = 0; //hÃ¥ller reda pÃ¥ antal flaskor private static int totalprice = 0; //hÃ¥ller reda pÃ¥ det totala priset public static string[] bottles = new string[25]; //läskbacks-vektorn private static int choicesoda; public static string cocacola; public static string fanta; public static string ramlösa;

Issue resolving Sender and e

i've got mdi parent window (archaic technology, know, still gotta support it) menu has able respond changes made on child forms.  controls have selected text, instance, notify edit menu items in order toggle menus' enabled settings.  i'm attempting simplify code creating edit functions in mdi window, , having each control pass sender , eventargs parameters functions.  problem though have object sender , eventargs e in definition these methods, parameter names not resolve in function body.  inside try block, mention of these results in compiler warning (and of course code won't compile) of form "type or namespace 'sender' not found."  above try block, within function body, names resolve, until involve them in expression such "var t = typeof(sender)". i'm using visual studio 2010 sp1.  known issue vs, or doing wrong?  there reason why these parameter / names valid in event handler, not in function called event handler (passing

Contract Information API (Reflection like)?

hello, there libraries available getting contract information out of contract assemblies? although not important, have "reflection-like" api purpose. usage schematically: memberinfo member = //... contractinformation info = contractinformation.formember(member); foreach (precondition precondition in info.preconditions) console.writeline(precondition.condition); complete existing reflection apis. cheers winsharp93 we're getting there: can use cci ( http://cciast.codeplex.com/ ) programmatically access contracts. haven't put nice samples out there yet. we're hoping release @ least 1 of our tools on site you'd have example of how it. api isn't 1 outline above, cci object model different. add nice reflection-like layer on top in example. of course, cci open-source, maybe else can contribute layer? DevLabs  > 

Biztalk RFID Mobile and Windows CE 6.0

does biztalk rfid mobile support windows ce 6.0? here system requirements page , if scroll down shows rfid mobile: http://www.microsoft.com/biztalk/en/us/system-requirements.aspx . mentions support windows ce 5.0, not mention 6.0. not sure if intentional or not. thanks, if answers question, please use "answer" button | ben cline BizTalk Server  >  BizTalk Server RFID

Workflow Foundation Architecture - how to write wrapper for workflow?

i want use workflow foundation. looking implementing following requirements:   * workflow foundation implementation hidden/encapsulated client asp.net user interface layer code * dont want write own code hosting workflow runtime * expose workflow interactions with asp.net user interface layer as webservice methods - reason being asp.net user interface layer bunch of independent applications want make use of common workflow   in have figured out, in order avoid writing own code hosting workflow runtime, have 2 options - either publish workflow wcf service or asp.net webservice in iis - iis acts workflow runtime host - far cool.   now, want hide workflow implementation asp.net client user interface layer, have add wrapper methods workflow webservice methods - such dont want asp.net ui layer code pass , receive workflow instance ids. when publish workflow wcf or asp.net webservice, have no control on code being generated! how can wrap workflow asp.net user interface layer?

Multi instance

hello i must create app can run multiple instance of exe running @ same time.  can give me small sample using c#.net. thank you clau reed copsey show how run multiple process/exe single program. it's better approach. however, can try minor modification in main method accept parameters command line follows. [stathread] static void main(string[] args) { if (args != null) { foreach (string arg in args) { //use args } } } you may use .bat file run .exe different args. for example testinstall.exe 'configfile1' testinstall.exe 'configfile2' testinstall.exe 'configfile3' avik das Visual Studio Languages  ,  .NET Framework  > 

sample

sample hi mr chan nyein, thank posting here. could please provide more details question? demo code or error message useful. best regards, wendy msdn community support please remember click "mark answer" responses resolved issue, , click "unmark answer" if not. can beneficial other community members reading thread. if have compliments or complaints msdn support, feel free contact msdnfsf@microsoft.com . Visual Studio Languages  ,  .NET Framework  >  Visual C#

Creating a DATABASE programmatically

Image
i creating database following code   myconn = new sqlconnection("data source=.\\sqlexpress;attachdbfilename=c:\\users\\nishant\\desktop\\systemdatabase\\systemdatabase\\app_data\\database1.mdf;integrated security=true;user instance=true");             sqlcommand cmd = new sqlcommand();             cmd.connection = myconn;             cmd.commandtext = "create database "+textbox1.text;             myconn.open();             cmd.executenonquery();             myconn.close(); but not able find database created. have chked out folders specially microsoft sql server folder please reply asap   nalin taneja hi nilin, based on description, mean want create database programmatically? if so, can refer folowing links: http://www.codeproject.com/kb/tips/createsqldv.aspx http://support.microsoft.com/kb/307283 http://support.microsoft.com/kb/305079 vin jin [msft] msdn community support | feedback us get or request code sample microsof

Problems creating Windows Service-based multiple file watchers

just wondering if sound design. i'm creating c# windows service in vs2012.  the basic concept don't know how many folders might watching filesystemwatchers instantiated dynamically (according database table) , added list.  the fsws have been extended through inheritance give them individual ids.   fsws use same event handlers since need behave identically.  just generate email , database log table entry of event. i aware of behavior problems involving change event.   what has me wondering behavior in scenario.  i have 2 separate folders being watched 2 separate instances of fsws.  if dump file either folder created event expect.   if cut file 1 watched folder , paste other, deleted event of first folder.  does sound familiar?  so far can see these 2 separate instances should acting independently of each other. please handle onrenamed event. as per msdn : 'the operating system and  filesystemwatcher  object interpret cut-and-paste action or move action re

Set The Source and Destination View with respect to bing map area

hi experts, i using bing map service in silverlight application , drawing route map according user selection. as selection dynamic not able set view(routeline between source , destination pushpin) , zoom level inside bing map area. so please can suggest me , give reference setting view. thanking you create list of location objects fromt route. pass locationrect object , use setview method on map. http://msdn.microsoft.com/en-us/library/microsoft.maps.mapcontrol.locationrect.locationrect.aspx http://msdn.microsoft.com/en-us/library/ee682509.aspx http://rbrundritt.wordpress.com Bing Maps  >  Bing Maps WPF, WP7/8/8.1, Silverlight