Posts

Showing posts from September, 2013

Clustering ESB Exception Notification

hi, i have biztalk server 2010 in clustered environnement 2 as...which means 2 biztalk esb exception notification services running. is there way run service cluster group ? supported microsoft ? any procedure  available ? thanks !! if windows service can added cluster generic service resource. refer http://technet.microsoft.com/en-us/library/cc753938.aspx how so. regarding supporability microsoft, i'd suggest writing directly them your account rep. regards. BizTalk Server  >  BizTalk Server General

How can I create a one time cron schedule that would execute only once in C#?

Image
have used cron schedule in c# create application should trigger job once. code piece throwing exception, unhandled exception of type 'quartz.schedulerexception' occurred in quartz.dll below code: class program { static void main(string[] args) { test(); } public static void test() { ischedulerfactory schedulerfactory = new stdschedulerfactory(); ischeduler scheduler = schedulerfactory.getscheduler(); ijobdetail jobdetail = jobbuilder.create<satellitepaymentgenerationjob>() .withidentity("testjob") .build(); console.writeline(datebuilder.dateof(16, 30, 00, 24, 2, 2015)); //itrigger trigger = triggerbuilder.create() // .forjob(jobdetail) // .withcronschedule("0 0 12 20 4 ? *") // .withidentity("testtrigger") // .startnow() // .build(); itrigger trigger = trigge

published Orcehestration as wCF on iis

when can web service web application give me error there failure executing receive pipeline: "microsoft.biztalk.defaultpipelines.xmlreceive, microsoft.biztalk.defaultpipelines, version=3.0.1.0, culture=neutral, publickeytoken=31bf3856ad364e35" source: "xml disassembler" receive port: "wcfreceiveport_firstexample/firstexample_biztalk_orchestration1_port_fx_rec_1" uri: "/firstexample/firstexample_biztalk_orchestration1_port_fx_rec_1.svc" reason: document specification <firstexample.contact> assembly <firstexample, version=2.0.0.0, culture=neutral, publickeytoken=79e2aa97a53165bc> failed load. verify schema document specification deployed , in global assembly cache.   i have deployed 2 time changing assembly version i have checked gac dll i new in biztalk 1 can me it sounds doing right things, should deployed same biztalk application port or biztalk application should reference 1 assembly. try adding resources f

Bing Map AJAX API 7 - How to find out which address is invalid in request sent to directionsManager.calculateDirections method in case of error?

Image
hi, i using bing map 7 ajax api's directionsmanager.calculatedirections function route. few routes(e.g. "irving, tx" "freeport pkwy") bing returns error in response ("we didn't find results search"). here how can identify address invalid out of two? e.g. see below example of www.bing.com/maps, show error message in front of invalid address textbox only: this interesting 1 hadn't been asked before. looking in documentation found this: http://msdn.microsoft.com/en-us/library/hh312834.aspx   however, noticed if render option "autodisplaydisambiguation" set true, default value, directions error event never fired , can't catch disambiguation error. having auto display disambiguous information nice looked how can figure out when no disambiguous result found waypoint. figured out "beforedisambiguationrender" event gets fired when in case , can use figure out waypoint has issue. funny enough event doesn

SerialPort Test

Image
hi, i'm programming serial port communication class , have couple of problems. the first function close. method disposes serial port. instead close communication , not release resourse, possible? usage correct serial port ? the second problem on integration test. when testing write , read work in debug because if run them receive on serial port portion of buffer. how can test these function reliably? any help will be     welcome , thank in advance.   hi namale, first let's @ official statement of serialport.close method: http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.close.aspx . "closes port connection, sets isopen property false , , disposes of internal stream object." "calling method closes serialport object , clears both receive , transmit buffers. method calls component . dispose method, invokes protected serialport . dispose(boolean) method disposing parameter set true ." now go check msdn libr

Storing records in ArrayList.

http://social.microsoft.com/forums/en-us/profile/thread/28c83ddc-38bf-4078-abb8-9879c51e8c31#28c83ddc-38bf-4078-abb8-9879c51e8c31   hi, i using below c# code storing record in arraylist. i want code handle following: if record coming first time should add directly, if record existing in list should increment appearancecount. the output of below code is: 330, 450, 2 330, 589, 1 since '330,450' values came twice incremented , appearancecount i.e third field set 2. please me code this. thanks. ***************************************************************** using system; using system.collections.generic; using system.linq; using system.text; using system.collections; namespace csharpstorage {     class program     {         static void main(string[] args)         {             arraylist datastructuretwo = new arraylist();                      datastructuretwo.add(new twopathinfo(330, 450, 1));             datastructuretwo.ad

Custom Expiration policy C# assistance

hi, i wandering if help, attempting create following policy. i have named policy filteredexpiration.cs when go build it, comes following error: error 1 'expirationtest.filteredexpiration' not implement interface member 'microsoft.office.recordsmanagement.policyfeatures.iexpirationformula.computeexpiredate(microsoft.sharepoint.splistitem, system.xml.xmlnode)' c:\users\alex.nagy\documents\visual studio 2010\projects\expirationtest\expirationtest\filteredexpiration.cs 11 18 expirationtest using system.web; using microsoft.sharepoint; using microsoft.office.recordsmanagement; using microsoft.office.recordsmanagement.policyfeatures; using microsoft.office.documentmanagement; using microsoft.sharepoint.utilities; using system; namespace expirationtest { public class filteredexpiration : iexpirationformula { public datetime? computeexpitedate(splistitem item, system.xml.xmlnode parametersdata) {

Problem with my own DLL

i want import own class library (dll) but same error message ever do. "unable find entry point named 'infostart' in dll 'processwindow.dll'." and code looking this.   [ dllimport ( "processwindow.dll" )] public static extern void infostart(); private void mainformload( object sender, system. eventargs e) { infostart(); }     from memory, c++ dll has seperate file listing functions exports. yes, create class library in c#, , dll that's easy import , use.   Archived Forums V  >  Visual C# Language

Lambda Expression

hi, i have list<> of records , 1 of property number. list<record> records = new list<record>(); records.add(new record("low",7);             // 0 - 7 low records.add(new record("medium",14);      // 8 - 14 medium records.add(new record("high",21);           // 15 - 21 high records.add(new record("breached",28);    // 22 above breached the requirement record out of list based on number. e.g. 5 low, 20 medium, 30 breached. i can use loop , status, looking lambda expression or other short , efficient way of doing this. thanks, rohit if expect find 1 only: class record { public string text { get; set; } public int number { get; set; } public record(string text, int number) { text = text; number = number; } } class program { static void main(string[] args) { list<record> records = new list<record>(); records.add(new record("lo

WMI

how can use methosd of win32_process class in applicaition? how use any  win32 class in application? hi, wmi can used through classes in system.management. maybe codeproject articles helpfull quick start: http://www.codeproject.com/articles/5206/a-simple-guide-to-wmi-providers http://www.codeproject.com/articles/18268/how-to-almost-everything-in-wmi-via-c-part-3-hardw i hope these articles quick start. with kind regards, konrad Visual Studio Languages  ,  .NET Framework  >  Visual C#

Something wrong happened after blend 3 was installed

hi, all after finishing installing blend 3, cannot open original project or create new one with blend 2 more. blend 2 show message - creating "projectname" failed: value cannot null, parameter: uristring who can tell me how to solve it? i have same setup (blend 2 , blend 3 preview installed on machine), don't have problem. wondering if else running problem in blend 2 when had blend 3 installed. harold, kind of project trying create in blend 2? version of blend 2 have installed have blend 2 service pack 1 - can check version in -> dialog)? thanks, unni Expression  >  Expression Blend + SketchFlow

Product key / Licenses key

hello   i creating software conman business , want secure product key , don't have idea how set i want when user install software during installation have required product key windows setup so please give me important guideline , instruction thank you    hi muhammad for product key, per understanding, can define guid data before software started.  and guid must meet validation rules. each guid unique. see if these helps bool isvalid = guid.tryparse(inputstring, out guidoutput) ( http://msdn.microsoft.com/en-us/library/system.guid.parse.aspx ) http://msdn.microsoft.com/en-us/library/system.guid.tryparse.aspx best regards, kristin   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. Visual Studio Languages

Terminator Tool

trying run terminator tool sql server , giving message "please ensure remote registry enabled on biztalk server biztalkserver1" . strange thing remote registry under services.msc enabled in biztalk server. hi, refer discussion here:  https://social.msdn.microsoft.com/forums/en-us/81025322-2e6c-4db1-8c81-582b171c0c50/biztalk-terminator-tool?forum=biztalkgeneral rachit sikroria (microsoft azure mvp) BizTalk Server  >  BizTalk ESB Toolkit

How to cancel an Order?

hi, how can cancel order? thanks! sam, there no such feature available in commerce server , cancellation workflow depends organization (product returns, inventory updates , money refunds, etc). yes, naidu said, once cancellation workflow exectued change order status "cancel". hope helps. regards ravi kanth koppala ---------------------------------------------------------------------------- blog: http://techblog.ravikanth.net cs2009 training: http://www.commerceserverguru.com/commerce-server-training/ (if post answers question - either mark post answer or vote being useful.) Commerce Server  >  Commerce Server 2009

How to find MAC ID of the device connected to system?

hi all, i have connected 2 antena devices through rs232 cable system,now need device mac id of 2 antena device connected system through rs232 cable. how do this? am newbie in serial port programming. i've searched every every 1 getting mac id through ip address in case have connected 2 devices directly system. how find mac id of these 2 devices? any suggestion of great help. thanks arjun hi, you can use serialports class of the  system.io.ports namespace.. call getportnames method. for more details .. have @ link http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx thanks! sundar please use marked answer if post solved problem , use vote helpful if post useful." Visual Studio Languages  ,  .NET Framework

Creating and deploying provider hosted apps to SharePoint Online step by step

ok, i'm trying create new provider hosted app , deploy sharepoint online (office365) . managed right once, i'm not quite sure how , other attempts since have not been successful far. to clarify - using vs2013 november 2014 update, azure sdk 2.5 , ms office developer tools november 2014 update. i using ootb app based on asp.net web forms absolutely no code changes. steps took far: 1. create new sp app project, based on asp.net web forms template 2. make sure can debug app against office365 url of developer site (that's site use development) 3. create website in azure , publish web project azure 4. right-click app project, click publish, click edit profile , populate client id , client secret 5. package app 6. in azure update app settings of website include used client id , client secret 7. create app catalog if don't have one 8. upload app file app catalog 9. in team site (that's site want deploy app once it's completed)

some part of your sql statement is nested too deeply rewrite the query or break it up into smaller queries

i error some part of sql statement nested rewrite query or break smaller queries  in production server whereas runs without break in development server. please find code block used       contactslist = (from c in context.chap join s in context.score on c.chapterid equals s.chapterid join r in context.reg on c.chapterregionid equals r.regionid join st in context.state on c.schoolstate equals st.stateid s.year == year && s.achievement_level == level && c.ispublic == true orderby c.number select new contactdetails { chapter_number = c.number, chapter_name = c.name, chapter_school_name = c.schoolname,

Pick properties of a class from a Dictionary

public dictionary < byte , imgmdmessage> lplist = new dictionary < byte , imgmdmessage>(); class1 numberresp = new class1 (); numberresp.deserializecommand(bytestream); //bytestream byte array lplist.add(10, numberresp); class2 byteresp = new class2 (); byteresp.deserializecommand(bytestream); lplist.add(20, byteresp);     here have added 2 deserialized objects dictionary. after deserializing class1, class2, properties of classes filled byte values. lets class1 has following properties:   public byte add = bytestream[0]; public byte cmd = bytestream[1]; public byte len = bytestream[2];                                                                                     need use lplist dictionary in class , have class1 properties add, cmd, len. can 1 me in this                            hi, you can type each entry. this: foreach (var entry in lplist.values) {   var t = entry.gettype();   // c

Related Products Urgent......

Image
hello,        i have problem regarding related products. by getrelatedproducts method 9 collumns coming  properties. like displayname, cy_list_price, cy_list_class, description........ but want image_filename property of related product. image of product. i using code getting related products.   protected override void onload(eventargs e)     {         base.onload(e);         catalogcontext context = commercecontext.current.catalogsystem;         string strproductname = httpcontext.current.request["productid"];         product = context.getproduct("amazingcatalog", strproductname);         dataset rldproducts = product.relatedproducts;         datatable relatedproducts = rldproducts.tables[0];                 if (!ispostback)         {             relatedproduct(relatedproducts);         }      }   private void relatedproduct(datatable relatedproducts)     {         string strdynamictable;         int rows = relatedproducts.rows.count;         if (

IsNullOrEmpty extension method

hi everybody, i wondering if idea of introducing isnullorempty method object , if is, perhaps implemented , can post not re-invent wheel. thinking should return true 0 if numeric type, same result isnullorempty string, datetime should check default date , null , boolean check false , null. rest of types check null. thanks in advance. for every expert, there equal , opposite expert. - becker's law my blog i tend avoid adding methods - @ least extension methods, tend cause type less discoverable looking @ code.  if see "isnullorempty" method, assume it's working on string, that's thing has it. that being said, isn't needed.  if you're working nullable types, null-coalescing operator (??)  does you: bool? value = getnullablebool(); // can use in if statements: // true if value has value , true if (value ?? false) { } // if need "default" value: datetime date = getnullabledatevalue() ?? datetime.now; double dbl = get

How to convert the C# code to equivalent C++/CLI

hi , i trying convert below serialize code in c#  to  c++/cli .   please me how that.  var obj = topicdetails; var serializer = new system.runtime.serialization.datacontractserializer(typeof(topicdetails)); using (var stream = new system.io.memorystream()) { serializer.writeobject(stream, obj); data = new int[stream.length]; stream.position = 0; (int = 0; < data.length; i++) data[i] = stream.readbyte(); } //here topicdetails class (data contract) follows. public class topicdetails { protected object baseobjecttype; //string protected object topic; //string public topicdetails(); [datamember] public object baseobjecttype { get; set; } [datamember] public object topicid { get; set; } public static topicdetails createtopic<t, mt>(icomparable&l

what's a this.Refresh(); in C# ?

what this.refresh()  method used for? encountered keyword in "a day @ races" program code (first lab in headfirst c# book) used slow down greyhounds in race. what this.refresh() does? refresh causes control invalidate, , update (i.e. immediately repaint itself). of time invalidate sufficient, , advisable can bunch of invalidations (either explicit or implicit) , let control repaint when app idle. advisable use update or refresh when you want control repaint because app not idle a user-noticable period of time (quoted http://bytes.com/topic/c-sharp/answers/244445-control-invalidate-vs-control-refresh) wizend Visual Studio Languages  ,  .NET Framework  > 

Inconsistent behaviour in adding tag to Application Insights (AI) resource

hi, when try add tag value of " {xxxx-yyyy-zzzz} " application insights resource either via arm template deployment or azure portal, fail add tag without prompting error. however, same tag same value added other resources such web app, sql server, sql databases, app service plan etc. note if remove "{}" tag value tag can added ai resource. i know whether inconsistent behaviour of tag addition ai resource potential platform issue or there valid reason behind this? thanks much! Visual Studio Development  ,  Visual Studio Team Foundation Server  >  Application Insights (AI)

Custom Pipeline Execution Error in PROD

a message received adapter "file" on receive location "rcvloc" uri "*.xml" suspended.  : "biztalk.common.custompipelines.rcv_inboundfiles, biztalk.common.custompipelines, version=1.0.0.0, culture=neutral, publickeytoken=b9eafb1b1461800d" source: "archivemessage" receive port: "rcv_fromfile" uri: "*.xml" reason: index (zero based) must greater or equal 0 , less size of argument list.   messageid:  {56548c05-8dfc-43f2-a51f-59322498f5b7}  instanceid: {812014b4-2c26-4b07-b383-af230db63550} hi, ask file content causing failure , debug pipeline component using attach process , attach pipeline code biztalk host instance process , drop file on receive location comes pipeline code use f10 , debug line line. come know data pipeline component failing. clearly data indexing issue when use {#n} substitution place-holder in string, there must number of arguments, after string, correspond zero-based index number i

Why is traffic API not returning any data?

the traffic api returning data fine yesterday seems not returning data. and doesn't seem me, take @ little js app (isn't mine) http://jsfiddle.net/chufol/78mjv/show/ working fine yesterday (it showing lots of road works etc), shows nothing. (info js app http://www.mandogroup.com/blog/2014/displaying-live-uk-traffic-incidents-using-bing-traffic-api/) any idea why down? cheers, alvin are mixing bing maps traffic data google maps? if against terms of use bing maps. looking account see have trial keys. these expire after 90 days , have low transaction limits on them. looks account on 6 months old.   they rate limited when there lot of load on servers or when account makes high frequency of requests. done give priority enterprise accounts. if want use traffic data in javascript map control use trafficmanager in bing maps. wraps traffic service , automatically updates data move map: http://msdn.microsoft.com/en-us/library/jj953497.aspx http://rbrundritt.wordpres

It takes more than 30 seconds to load and process a xml hosted in HTTPS

Image
i used following code access service hosted in https. out put need process xml document takes time (30 seconds) after application being idle more 10 minutes. please me finding issue this.       public lbslocation getlbslocationinfo(string mobileno)         {             lbslocation location = new lbslocation();             try             {                 string url ="https://125.214.169.85/gmlc/legacy?classid=web_engine_v2&methodid=handler&username=abc&password=1234ff&clientcode=abb&phoneno=777733773"                 xmldocument doc = new xmldocument();                 httpwebrequest rq = (httpwebrequest)webrequest.create(url);                 system.net.servicepointmanager.servercertificatevalidationcallback = new system.net.security.remotecertificatevalidationcallback(remotecertificatevalidationcallback);                 httpwebresponse response = rq.getresponse() httpwebresponse;                 using (stream r

Using a pipeline to output two different messages

  hi all,   here need do, offer advice?   i have 1 inbound xml message. need send 1 copy off partner company, and then transform message based on our internal framework message. the second part of job complete.   the inbound message has many occurances of many different types of record, , transforming message internal framework message using pipeline xslt envelope schema.   the dificulties are: i don't want add inbound message schema internal framework message envelope schema.     regards   not sure understand question. do want send copy of inbound message before transforming map other message? if mapping happened in orchestration? if easy. create second subscriber inbound message (the send port or orchestration), copy of inbound message , use it. BizTalk Server  > 

How to read custom list items from personal My Site Host into a different site collection

we have custom list "my site host" personal site each user. that custom list permit to user add personal information. we want show ítems belong user in "another" site collection, in main site. personal site url "https://site-my.domain.com" site collection "https://site.domain.com" custom list called "mypersonalcontacts" when user access sharepoint personal site, see newsfeed , personal contacts ítems custom list. this same mypersonalcontacts list ítems must showed en home site belong site collection. question: how read items mypersonalcontacts "https://site-my.domain.com" into "https://site.domain.com"?  issues discovered: 1.- using clientcontext en jsom doesn´t work when different site collection, using permission in app tenant doesn´t work  we try sample http://www.sharepointnutsandbolts.com/2012/11/access-end-user-data-in-host-web-from.html 2.- rest api send "403:forbidden", h