Posts

Showing posts from February, 2010

How to use .NET SDK to update/merge document?

we prefer using .net sdk complete entire development. according .net sdk document, documentoperationsextensions should used perform document update/merge operation rest api can do:   https://msdn.microsoft.com/en-us/library/azure/microsoft.azure.search.documentsoperationsextensions(v=azure.103).aspx but when check extension methods in namespace, see operation, there no method support update/merge? any idea? hi john, you need use index api modifying documents in index. methods on indexbatch and indexaction class. -bruce Microsoft Azure  >  Azure Search

Garbled characters in Translator Text API

hi, we using translator text api mt enhanced plugin trados studio 2017 translate word (docx) document japanese english. we seeing many instances of "tg <" in en-us translation, such as: "< tg 8 > 0 of tg, tg 1 chart < tg 3 > < tg 4 > (1) < tg 6 > < tg 7 > < tg 8 > < tg 10 > < tg 11"electrical communication fees system reform overview < tg 13 >" we have tried different ms office formats (doc, docx, xlsx) , "tg <" characters. however, if run plain txt file, characters not appear. any idea causing "tg <" characters , how avoid them? thank you. aría support cognitive services has moved new location. stack overflow: http://stackoverflow.com/questions/tagged/microsoft-cognitive technical support inquiries can posted stack overflow of cognitive services apis. Microsoft Azure

System::Drawing::Image / EMF / Clipboard

good day, not sure best place post question... i wondering if there way use emf clipboard data, can bmp data, in below: system::windows::forms::clipboard::getimage() - works provided clipboard data in bmp format. i want emf data on clipboard system::drawing::image ^ if @ possible. any tips? appreciate pointers. thanks, wb you'll have same thing, use interop. invoke win32 clipboard functions , drawing functions draw metafile bitmap. see george sheppard's windows forms faq entry how can copy , paste images/graphs etc ms office picturebox? .NET Framework  >  Common Language Runtime Internals and Architecture

XPath issue

in message_dsd_individualg83_1 have 1 record while dsdourput message have unlimited g83 nodes sample of dsd_output_1 <dsd><dsd_lsloop><ls></ls><dsd_g83loop><g83><g8301></g8301><g8302></g8302> </g83><g72><g7201></g701><g7202></g702></g72></dsd_g83loop><le></le> and message_dsdindividualg83_1 have <dsd_g83loop><g83><g8301></g8301><g8302></g8302> </g83><g72><g7201></g701><g7202></g702></g72></dsd_g83loop> but below assigment gives me : - < dsd_g83loop > - < dsd_g83loop > - < dsd_g83 >   < g83_value > g83 </ g83_value >   < g8301 > 1 </ g8301 >   < g8302 > 1 </ g8302 >   < g8303 > ca </ g8303 >   < g8304 > 2316891008 </ g8304 >   < g83

How BizTalk 2010 handles large message batch?

i have large flat file contains on 9000 records. goes through ff pipeline become individual xml message, orchestration subscribes these messages processes. biztalk 2010 choke on these on 9000 orchestration instances? how handle this, put xml messages in messagebox first, create # of orchestration instances each time? there way configure process? have read article on "how biztalk server processes large messages"? concern on creating orchestration instances. thanks in advance!!! hello, the details of settings described on following page: http://msdn.microsoft.com/en-us/library/ff629691.aspx in opinion, should not change them, first see how processing behaves.  (either splitting in orchestration, or in pipeline).  can take baseline , see if , need tuning (looking @ different throttling performance counters etc) there different queues (database tables in messagebox database) per host: <hostname>q : process q <hostname>q_scheduled : processed mes

My table is not updating

string connstring = configurationmanager.connectionstrings["defaultconnection"].connectionstring; sqlconnection conn = new sqlconnection(connstring); string updatecommand = "update [users] set firstnamelastname=@firstnamelastname, gender=@gender, placeofbirth=@placeofbirth, dateofbirth=@dateofbirth, educationlevel=@educationlevel, educationinstitution=@educationinstitution, employer=@employer, position=@position (username=@username))"; sqlcommand cmd = new sqlcommand(updatecommand, conn); cmd.parameters.addwithvalue("@firstnamelastname", txtimeprezime.text); cmd.parameters.addwithvalue("@gender", rblpol.selectedvalue);//radio button cmd.parameters.addwithvalue("@placeofbirth", txtmesto.text); cmd.parameters.addwithvalue("@dateofbirth", convert.todatetime(txtdatum.text)); cmd.parameters.addwithvalue(&q

Problem with the SOAP Adapter

Image
hello,   i´m newbie in area , english not hope question not silly , can unterstand me!   i build biztalk server 2006 (not r2) orchestration want consume an siebel crm ondemand web service on soap-adapter. unfortunatley can´t use siebel adapter microsoft, because adapter für siebel enterprise applications.   after try send message web service, became error 5743:   the adapter failed transmit message going send port crmtransfer_1.0.0.0" url " https://<myurl>/services/integration ". retransmitted after retry interval specified send port. details:"soapexception: server  ".   now try to explain actions:   1. import wsdl-file sieble on "add web reference" 2. build orchestration , add "new configured port" -> use existing port type -> web port types -> "siebel-type" 3. deploy solution , configure soap adapter below settings: typ: soap send pipeline: passthrutransmit receive pipe

BamPrimaryImport query

hi there,  in bam can see information need, per invoice instance.  lets have invoice, , being sent on archiving system of our client (which have no access to). i asked if provide report of invoices have been sent on our client archive system.  the problem there may iterally thousands of these invoices, , going through bam step step not option.  i wondering; how can query bamprimaryimport or bamarchive information include invoices in given time range.  how bamprimaryimport organised, why seeing tables dates in names not every day etc.  i guess it's going join across many tables, appreciate imput can get.  hi in bamprimaryimport database, can select data tables using sql view -  bam_ < youractivityname > activity_allinstances view. result querying union of data in bamprimaryimport database activity. now, if of these activity tables have been archived in bamarchive database, have perform union of above view , individual archived tables activity present in

Find difference between two custom list objects

public class details { public string classname; public list<student> studentcollection; } public class student { public string rollnumber, name; public list<marks> studentmarks; } public class marks { public string eng, maths, term; } old xml ---------- <details> <class>1.0</class> <student rollnumber="001" name="aaa"> <marks eng="50" maths="50" term="first"/> <marks eng="60" maths="57" term="second"/> <marks eng="55" maths="56" term="third"/> <marks eng="59" maths="85" term="fourth"/> </student> <student rollnumber="002" name="baa"> .... </student> </details> new xml ---------- <details> <class>1.0</class> <stud

MongoDB API - $elementMatch in projections fails in DocumentDb but works on mongo

hi all the $elementmatch operator in projections not being compatible mongodb api. the following query runs fin in mongodb (can test in empty collection) db.collection.find( { "operationresult.messages" : { $elemmatch : { $regex : /somereges/} } } ,{ "relations.entityid" : { $elemmatch : { "entitytype" : "personid" } } } ) but when attempting run in documentdb mongodb api following error: " query failed error code 9 , error message 'syntax error, incorrect syntax near '38'.' on server .... " thanks! Microsoft Azure  >  Azure Cosmos DB

Array output empty

close being done this, output section coming blank. the output (16 times) looks if input 1 1/3 4 fractions: first fraction: second fraction: adding result: 1 multiplying result: 1 i'm not getting fractions input translate output, i'm not sure gap/mistake is using system; using system.collections.generic; using system.linq; using system.text; public class fraction { public int wholenumber { get; set; } public int numerator { get; set; } public int denominator { get; set; } private void reduce()//reduces fraction lowest { if (numerator < denominator) { wholenumber = 0; return; } if (numerator == denominator) { wholenumber = 1; numerator = 0; return; } if (numerator > denominator) { wholenumber = (int)math.floor((decimal)numerator / denominator); numerator = numerato

Dynamic filters for subcription in orchestration

hello, can confirming whether can apply dynamic filters subscription of messages in orchestration? i try explain scenario working on. i have few files different filenames , timestamp, being consumed biztalk. inside orchestration want subscribe 1 file @ time based on file name , sequence. i need do so as no 2 files same filename different timestamp should subscribed. inshort files subscribed should have distinct file name. , want apply filter should dynamic. can please me out this? thanks, russa i'm not sure possible. first need understand receive ports , locations decorelated orchestration. if receive locations takes file/message , there no subscriber (because file not yet treated because of "dynamic" filter in orchestration) message treated error because of no subscriber found. one of solutions problem consider ordered delivery (the file adapter doesn't have option) if use queues work regards, stefan biztalk consultant in france

C# - extract source code from webbrowser control

good morning i want to extract the html code from a web page and save to a text file before is displayed on the screen. then i will edit ( remove some links ) and set new html page visible user. is possible c#? thank you. hello, you can use webclient.downloadfile https://msdn.microsoft.com/en-us/library/ms144194(v=vs.110).aspx please remember mark replies answers if , unmark them if provide no help, others looking solutions same or similar problem. contact via webpage under profile but not reply forum questions . Visual Studio Languages  ,  .NET Framework  >  Visual C#

Best Way to Handle to Resume/Retry Message on Send/Receive Port sent from Orchestration?

if in orchestration send message send port & error occurs, message & orchestration suspended & can resume message biztalk console. great, nice , easy & no special code required. however if send message send/receive port resuming message doesn't resume orchestration. seems way overcome wrap send/receive liek this: loop [until message received] > scope [ send/receive > message received] > catch exception [suspend] (see here example: http://blog.codit.eu/post/2012/01/13/best-practices-for-consuming-web-services-from-within-biztalk-server.aspx) and need enable routing failed messages prevent send getting suspended on failure & consume these failed messages. now heck of lot of code every send/receive. what's point of having biztalk if doesn't handle scenario? why provide, default, suspended message if resumed not return it's response orchestration? what generic solution don't have write special code @ in orchestration , enable s

Ensures unproven even with Assume using Static Checker

hello, in writing new code using code contracts, i've encountered problem using contract.ensures postcondition. i'm using contract.assume assume postcondition true, static checker still warning me ensures unproven. take following code example: public class testclass { private queue<int> queue; [contractinvariantmethod] private void objectinvariants() { contract.invariant(queue != null); } private testclass() { queue = new queue<int>(); } public void testmethod() { contract.ensures(queue.count == contract.oldvalue<int>(queue.count) + 1); enqueue(); } public void enqueue() { contract.ensures(queue.count == contract.oldvalue<int>(queue.count) + 1); queue.enqueue(10); contract.assume(queue.count == contract.oldvalue<int>(queue.count) + 1); } } the queue<t> class doesn't appear have contracts yet, it's expected static checker won't able tell item has been added queue. what can't under

Is it possible to call a method inside a BackgroundWorker's Do_Work event?

hi, i'm trying call long data processing method inside a do_work event. it's skipping it.  example: private void backgroundworker1_dowork(object sender, doworkeventargs e) {     clipshapefile(); } appeciate help. marilyn gambone sure is. if method code controls of form, have invoke (because control created ui thread, cannot access other thread). can do: void dowork (...) { clipshapefile (); } void clipshapefile () { if ( yourcontrol . invokerequired ) yourcontrol . invoke (( action )(() => clipshapefile ())); else { //access controls } } otrherwise, if there no code inside your  clipshapefile() access controls created on ui thread, not need code. thats it. hope helps. mitja Visual Studio Languages  , 

Upgrade an existing Commerce Server 2007 site to 2009

i upgrade existing commerce server 2007 site 2009. have created pup file in 2007 environment , have imported 2009 environment. while import completed profile , organization tables example not brought over. is possible bring on these 2007 tables via pup process , have them upgraded @ same time or option upgrade whole 2007 environment 2009? i recall can point out profile.sql when unpack site, can add create table sql in here. another solution tho create them in sql server directly after have unpuped site. i used cs 2009 upgrade wizard upgrade 2007/sp2 without problems. Commerce Server  >  Commerce Server 2007

httpwebrequest obsolete? What is the replacement?

hi everyone,   i'm new client/server development , ssl.  i'm trying create webrequest local client application web server php page.  can work great using webresponse on non-ssl server.  however, need work ssl.   the webrequest class doesn't have way attach x509certificate it, i'm not sure do.  httpwebrequest (which example i've found far) marked `obsolete` in msdn library.   so, couple of questions: what marked obsolete mean?  when phased out?  bad use right now? what replacement httpwebrequest, if basic webrequest doesn't attach certificates? i'm having a difficult time finder answers, appreciated!   on side note, if of knows how "create" digital certificate client, such works ssl certificate on server, please feel free share info well, or point me website information needed.  again, know nothing ssl, wonderful (but know isn't appropriate forum...just thought i'd ask while i'm @ it).   thanks in advance!

vbscript ETL

i need write etl using vbscript client able use once project completed. however, have never done before , can't seem find examples. on sql server 2005. can provide links detailed examples? thanks! ps -- if wrong forum please let me know more appropriate forum , i'll move question there. rs12345, unfortunately, if requirements require use vbscript , not sql server integration services etl work unlikely here able offer help.  there isn't general purpose etl forum here @ http://social.msdn.microsoft.com . good luck, patrik this posting provided "as is" no warranties, , confers no rights. SQL Server  >  SQL Server Integration Services

"one VSO and one project" vs "one VSO and some project"

i have question. we can make project on 1 vso service. is there functional advantage of "some project on 1 vso service" against "one project on multi vso service" ? for instance, can switch bug ticket, query person has how many tasks, summarize total work cost of person through projects.  example. there 2 project( project , project b) ex1.  one visual studio online service has 2 project( project , project b). ex2.  one visual studio online service has 1 project( project ).  another visual studio online service has 1 project( project b ). hi, thank posting in here. checking on , @ earliest. regards, manu rekhar Archived Forums V  >  Visual Studio Team Services

StreamInsight Input Adapter TrackingParticipant

hi,   i have application added trackingparticipant activitystaterecords , customtrackingrecords. there way can use events generated tracking participant input events in streaminsight application , have queries on events? how should implement input adapter?   thanks lot!   best, cristina what trackingparticipant, activitystaterecords, , customtrackingrecords? database tables, custom business objects, or dtos? there restrictions on payload class size (16kb) , on data types payload class can composed of. if 3 objects mentioned above custom business objects or dtos, long conform streaminsight's payload class spec, can use them. if don't, create custom payload classes have information need queries. for more information on creating event types, check out msdn docs located here: http://msdn.microsoft.com/en-us/library/ee378905(sql.105).aspx SQL Server

how to add an additional table to an existing mobile service for iOS

hi anybody i have generated .net mobile service ios using procedure offered. i want add additional table...i see can go online sql mangement section of azure , add table + columns. aware 3 columns specific. noticed .net mobile service sample created table 'todoitems' java mobile service created table 'items' & columns in each not quite same. q1. should mandatory columns set to? q2. can see samples of how 1 alters .net mobile service take account of new table? you might find tutorial helpful: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn614132.aspx Microsoft Azure  >  Azure Mobile Apps

CertMgr.exe

hello, this msdn article talks calling certmgr.exe automate adding certificates on client work stations. http://msdn.microsoft.com/library/en-us/dnwinforms/html/clickoncetrustpub.asp?frame=true but certmgr.exe part of sdk , not framework redistributable. how 1 automate task of installing trusted publisher , certifying authority certificate ? thanks, avinash this done programmatically through .net using x509 classes.  perhaps this: x509certificate2 cert = new x509certificate2(certfilename); x509store store = new x509store(storename.trustedpublisher, storelocation.localmachine); // or storename.root and/or storelocation.currentuser store.open(openflags.openexistingonly | openflags.readwrite); store.add(cert); brian stern [msft] .NET Framework  >  Common Language Runtime Internals and Ar

.NET Client Library - OnAuthTokenRefreshed?

hello, i using .net client library bing ads, , oauthsettings seems have code refresh token automatically. however, there seems no event - can hook , update auth token in db.  questions: 1. api support refreshing token when app has active token (for example, google oauth not support this) 2. recommendation api team? should not worry refreshing token before each call? we'll have load balanced multi server configuration in-memory caching not help. 3. there rate/request limits in general api? sorry haven't searched documentation one thanks! manas manas @ optmyzr d0t c0m update:  i changed oauthsettings , oauthhelper classes enable event on token refreshed.  1. appears api has no issues refreshing token when active token issued.  2. cache, client library samples not seem encourage this. 3. ? also, mentioned on other thread, seems service returns error code 105 when should returning 109. understanding correct? thanks! optmyzr.com | creating sem autom

When do native images get deleted from NativeImages_v2.0.50727_32 ?

hey, i had question ngen. when use: ngen uninstall assemblypath   when native images deleted nativeimages_v2.0.50727_32 directory. assembly uninstalled want know when files removed physically?   do removed when pc restarted or clr ignores them , calls jit compiler assembly?   thanks - can anyone reply ? sumeet "ngen uninstall" should remove native images folder. however, may not removed, or may reappear if image installed /queue option , .net optimization service working on it. (file in use process). native image used if managed assembly (and managed dependencies) have not changed.   overall, system black box , supposed work. it's useful, however, able confirm native images being used application make sure not hitting edge condition causes native images discarded.   a way examine how native images being used through fuslogvw.exe tool ships .net framework sdk. tool has mode enabled radio button on main panel log binding information native images

Functionality of Combine Operator &>- in Axum

the axum documentation says " combine operator takes vector of sources, receives message each, packages them array , forwards result right hand operator." let's assume eample that vector of sources , b. what result of combine opertor when recieves 2 messages before b recieves one? combine operator send first message sent or recent (second) one? what result of combine operator when receives 2 messages , b receives two? 1 package array sent, or 2 sent? it impotant know details of combine opertor actions in case of out of sequence , multiple message combinations. functionality of application may dependent on behavior , bugs may difficult diagnose , reproduce. is possible specify or configure behavior of combine operator in case of out of sequence messages? the documentation correct , specified perspective of operator itself. of questions ask depend on circumstances outside operator. let use network "{a,b} &>- c" our example. you ask: what r

Alternate to Isolated Storage as it is not FIPS compliant.

Image
hi, our app uses isolated storage heavily. , asked make app fips (federal information procession standards) compliant. isolated storage not fips compliant , decided write separate class few similar methods (like getstore or getuserstoreforassembly methods) isolatedstoragefile , isolatedstoragefilestream has (so easy replace) , write appdata\local folder. question is, there better way solve this?  thanks i have not researched fips, after read read 2 questions fips related, searched , have known on it. and write custom class seems way can see on internet, these questions suggested use custom class. http://philjohnson3.blogspot.com/2008/11/isolated-storage-is-not-fips-compliant.html   and blog article helpful you:  http://blogs.msdn.com/b/cdndevs/archive/2011/02/22/crypto-craziness-meeting-fips-requirements-with-managed-code.aspx   i find faq on page, helpful you, too:  http://stackoverflow.com/questions/tagged/fips?sort=faq mike zhang[msft] msdn community support | fe

Focus set issue with IE8 and IE9 on mouse click

hi, i have application created in asp.net , integrated in sharepoint using features. in app have .aspx page having 3-4 textboxes , page postback after every 10 sec using timer event. have used updatepanel in my  app. now issue related ie8 7 ie9 not ie10.(it works fine ie10) after postback(panel refresh), when click on textbox control  works fine first 1 after subsequent refresh, focus goes start of textbox, , not able edit it's content, untill click somewhere else , text box again. note:- app in .net 4.0. so provide workaround/solution same? thanks, vivek just add style textbox ->position->relative; SharePoint  ,  Apps for Office and SharePoint  > 

Help to generate WebService client to consume services Bing in Java

hello everyone , created   a   webservice   client   using address   for   netbeans http://dev.virtualearth.net/webservices/v1/metadata/geocodeservice/geocodeservice.wsdl my code:   public static void main(string[] args) { try { qname spacename = new qname( "http://dev.virtualearth.net/webservices/v1/geocode" ); string key = new string( "bing maps key" ); jaxbelement<string> appid = new jaxbelement<string>(spacename, string. class , key); credentials credential = new credentials(); credential.setapplicationid(appid); jaxbelement<credentials> cred = new jaxbelement<credentials>(spacename, credentials. class , credential); location location = new location(); location.setlatitude(double.parsedouble( "-26.9299" )); location.setlongitude(double.parsedouble( "-48.9484" )); jaxbeleme

Not fetched ads with V11 - getAdsByAdgroupId

hi, i not able fetch ads using version11 of api. same working v10. i getting response as  creating or updating ads of type not allowed. i not creating or updating ads, fetch ads. thanks, thanks, chirag hi chirag,  have looked @ piece migration v11 guide required ad types when calling getadsbyadgroupid , getadsbyeditorialstatus , , getadsbyids operations adtypes element required. in version 10 these operations returned text , product ads if adtypes left nil. let know if useful? best regards, gianpaolo Bing Ads API: Development  >  Bing Ads API: Development