Posts

Showing posts from April, 2014

Transmitting a CAN message

hi, i have gathered can signals need send can bus operate functions on warning panel wondering if knows how transmit them panel. using pcan , have access relevant dll files etc need , example of button_click method send message. 1 - 2 messages same method , sent @ cycle time of 50 example code; id:500 dlc: 4 data:00 00 6f 00 cycle time:50 please help! alert thread i think that's you're going have people @ pcan. library comes set of html files may contain examples out. if not, may try asking on correct peak forums version of pcan use. check out blog . updated work! Visual Studio Languages  ,  .NET Framework  >  Visual C#

Send port retry interval

hi, in microsoft documentation see "transport options - retry interval (minutes): displays number of minutes engine waits between retries. default value 5; allowed range 0 525600 inclusive (the number of minutes in 365 days)." what value "0" mean? retry immediately? is possible set value in seconds instead of minutes tweaking somewhere in biztalk management db? thanks advance answer. setting value 0 should instant not possible set value in seconds more details refer thread . please mark post answered question answer, , mark other helpful posts helpful, it'll other users visiting thread similar problem, regards -rohit sharma (http://rohitbiztalk.blogspot.com) BizTalk Server  >  BizTalk Server General

How to free memory when large number of DataTables are used?

when try use large number of datatables, app faced memory exception. in fact, app keeps datatable , merge them together. after merge try dispose objects it's not sufficient. public class phase { . . . datatable dt = new datatable("result"); command = new sqlcommand(olapcommand, commandconnection); using (command) { command.commandtimeout = 0; sqldataadapter sqldataa = new sqldataadapter(command); sqldataa.fill(dt); sqldataa.dispose(); sqldataa = null; } while (!olap.results.tryadd(this.id, dt)) ; bool locktacken = false; spinlock.enter(ref locktacken); // of data gathered if (olap.passes.count == olap.numquery) merger.resultqueue.enqueue(olap); if (locktacken)

Orchestration as Web services Two-Way

hi all, i'm facing critical issues in our production environment, i'm calling orchestration web services(two-way) interface taking around 40 secs give me response back, intitial got response within 2 secs dont know what's gone wrong suddenly. after ran through sql server profile found "audit logout" taking around 10 secs.  need configure or use same connection each request. tx. hi, i suggest follow few tips provided biztalk server troubleshooting , support , instance msgboxviewer. can identify bottleneck in scenario. hth regards, steef-jan wiggers - mvp & mcts biztalk server blog: http://soa-thoughts.blogspot.com/ if answers question please mark accordingly   biztalk BizTalk Server  >  BizTalk Server General

how to execute shell command through c#

i have command line run c# executale. while it's running, i'd c# executable input on command line command. want because want know in command line commands called , results. need fetch results. commands c# executable generate may things from cd .. execute executable through mono fetch.exe hello mart, you use process run cmd.exe in c# console application, redirect input , output setting these 2 properties true: processstartinfo . redirectstandardinput property processstartinfo . redirectstandardoutput property sample code snippets provided in documents. it's executing commands in command line. 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

How to get msn sandbox adCenter api parameters...?

we using msn sandbox adcenter api. in using parameters username,password,application token,developer token,customeraccountid,accountid. there difficult getting these parameters.   so please guide getting these parameters. assuming have username , password login, here is a quick guide retrieving values. 1. navigate https://sandbox.adcenter.microsoft.com 2. log in pre-requisite username , password 3. click on the accounts & billing tab, , then click on the company information sub tab 4. customerid listed next text, customer id   you can make call v7 getaccountsinfo service operation username, password, , customerid. getaccountsinfo return array of accountinfo objects identifies your list of accounts. 'id' elements correspond customeraccountid in turn be specified in calls other service operations. applicationtoken not used , reserved future use. i hope helps! Bing Ads A

BizTalk mapping & SQL stored procedures - notification messages

hi all, i'm after advice on how handle multiple small transactions , mapped sql stored procedure carry out insert/update functionality. i receive number of small notification messages web services need map across stored procedure within ms sql. challenge at present stored procedures expects the input values variables... example: (@prefix_honorific varchar(max)= null,) however, issue when i'm not receiving variables @ same time. the stored procedure updates fields whether source message had value or not. has been able to: take in multiple small notification messages map them canonical schema map down a stored procedure where only small datagrams received within each notification. all notifications always have a primary key/guid in message know exactly message update via stored procedure. i've tried multiple approaches such mapping every field across if message has null value database updated null rather left current value. did @ returning field in map ha

"Argument type 'ushort' is not CLS-compliant"

i have class opens usb device using pid , vid.  these values traditionally unsigned shorts (16bit unsigned).  made static function creating device uint16 arguments , compiler warning telling me uint16s not cls compliant.  ("argument type 'ushort' not cls-compliant")  i've used them in other functions without warning.  what's wrong this? public class device : system.idisposable {     public static device opendevice(uint16 vid, uint16 pid)     {} } it means not cls compliant languages have support type. therefore must either mark assembly being not cls compliant or use data type int32: uint16 structure mark assemblies clscompliant .NET Framework  >  Common Language Runtime Internals and Architecture

Participants wanted for Code Contract discovery user study

you invited evaluate new tool discovering code contracts c# software. participants use visual studio add-in observes program execution (e.g., test suite run) identify code contracts, , choose contracts insert program. participants additionally interviewed experience using tool , use of code contracts in practice. if @ least 21 years old , working on c# project uses code contracts, may eligible participate. risks associated study consistent risks of regular computer use, including not limited to: ergonomic risk, , possible frustration when learning , performing computer task. this study being conducted via email , phone (or skype); participation in research voluntary, , free refuse participate or quit experiment @ time. if have questions research or interested in participating, please contact todd schiller email @ tws@cs.washington.edu . university of washington human subjects division requires inform cannot guarantee confidentiality of information sent email.

Disable polyline events

hi all, i need detach events related polyline. have tile layer , polyline entity collection. when click on map, directly on polyline, targettype "polyline". want "map" targettype. causing problems "click" events map happen @ same location polyline. not find way detach events did not create. any help? thanks, dion is there reason looking map targettype? if targettype polyline, can still use same x/y coordinates locate mouse click. if need track polyline clicks, need determine when treat map click , when treat polyline click. if polyline visible, can know polyline clicked since displayed above map. Bing Maps  >  Bing Maps Web Controls

Lync compared to OCS

hi, i have application has been running fine ocs. made trusted pools , applications application use lync. the basic idea on sw send pure im messages 1 many users. fe's trace can see following warning: severity: warning text: message or 1 of headers caused sip transaction processing error result-code: 0xc3e93c09 pe_e_transaction_does_not_exist sip-start-line: ack sip:test.recipient@company.net sip/2.0 of course not have source code, rings bell anybody? before above message there also: start-line: sip/2.0 401 unauthorized but in mind should not problem because have set " treatasauthenticated : true " application pool. any hopes software work lync? petri i suggest doing search on web text ' pe_e_transaction_does_not_exist '. example, here's forum thread w bunch of discussion diagnosis, tools, possible culprits among different lync components... http://social.technet.microsoft.com/forums/en-us/ocsvoice/thread/52388951-e118-4147-aff0

Feedback Button for MS outlook Reminder

hi, i want create 1 feedback button outlook meeting reminder. please let me know details mean how can insert thing. if possible send me link or code thank you m.v.gangadevi hi, as far know, can’t create button in outlook meeting reminder. what’s meaning of feedback button? is used accept invitation or decline invitation? if so, can double-click reminder item, , can select accept or decline invitation. regards & thanks, Microsoft Office for Developers  ,  Apps for Office and SharePoint  >  Developing Apps for Office 2013

Azure WEB APP Access Google Drive API Always Access- Denied

have created asp.net webapi project,then added 1 apicontroller created 1 method google drive files .i refer link  https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth#web-applications-aspnet-mvc . when create  asp.net mvc application  it working fine when create new project  asp.net webapi not working  the reason : var result = await new authorizationcodemvcapp ( this , new appflowmetadata ()). authorizeasync ( cancellationtoken . none ); in above line authorizationcodemvcapp takes argument = current controller , inherited from  system.web.mvc controller ,but in web api project it  apicontroller system.web.http how can work apicontroller? need change way authatication? note: in google devdeloper account have select o-auth client id type web-application Microsoft Azure  > 

BAM Alerts - failure

description: running of rule failed. please check rule. eventparameters: application name: application quantum id: 1003 rule firing id: 2 rule name: 6119438296993665266178837849891895009671159677192 notification throttle: 0 event class id: 9 subscription class id: 1 rule id: 8 rule action: exec bam_id78b5cfd5ad804b5787c1e9e65ae858f4_iddd43f568dc89475e96c8f81df6c9cbdf_eval stored procedure name: [dbo].[nsfire8] sqlservererror: source: .net sqlclient data provider number: 102 state: 1 class: 15 server: mfrkntacewbd02\sqlwbd02 message: incorrect syntax near ')'. procedure: line number: 24 description: incorrect syntax near ')'. instancename: bamalerts applicationname: application component: generator thread: 200 jagadeesh rs it seems condition you;ve specified alert incorrect (sytax error). have run same query through bam portal , got valid result. refer http://allcomputers.us/windows_server/biztalk-2010-recipes---busi

System.Enum value names

  greetings -   i'm analyzing potential malware , has been obfuscated tool. there are, unsurprisingly, interesting tricks tool performs, 1 stands out: of literal value names in enum same. how possible? i've looked on section 8.5.2 of ecma 335 spec covers cil , runtime, , way enums described aliases existing types seems allude possible, since enum values distinguishable value alone. how type system differentiate this?   here disassembly:   code snippet .class public auto ansi sealed enum1     extends [mscorlib]system.enum {     .field public static literal valuetype test.enum1 value1 = int32(4)     .field public static literal valuetype test.enum1 value1 = int32(2)     .field public static literal valuetype test.enum1 value1 = int32(1)     .field public static literal valuetype test.enum1 value1 = int32(0)     .field public specialname rtspecialname int32 value__ }     it doesn't need to.  constants, literal values enums inserted il

CRM Adapter - High availability ( Install on more than one server)

hello crm adapter gurus, have 2 servers in production system , configured high avilability(both in same group, both servers configured under each host). started using crm adatper now, installed on first machine, went fine, tyring install on second machine, failed saying aleady installed. during runtime, giving errors second machine below. ========================================================================================= messaging engine failed create transport adapter "microsoft dynamics crm 4.0". outboundassemblypath: "null" outboundtypename: "microsoft.crm.biztalkadapter.runtime.solicitresponsetransmitter, microsoft.crm.biztalkadapter.runtime, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" exception details: "could not load file or assembly 'microsoft.crm.biztalkadapter.runtime, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. system cannot find file sp

How to access HtmlDocument for a pop up window?

hi, i using web browser object in c#. navigates url , clicks on anchor on page came in. results in pop up on top of the main page.  i unable see html source pop window in browser window. if right click , choose view source see source main window. question 1: how can see code pop using right click on browser window web browser object question 2: document completed event provide page pop up? thanks! you should learn how use chrome development debugging tool. have page in browser , hit f12-key. ie has development debugging tool f12-key, chrome lot more powerful where can use console , address object like document object , see the content of object, just like in the vs immediate window and doing ?someobject see content of .net object.  https://developer.chrome.com/extensions/tut_debugging <copy> inspect popup as long browser in developer mode, it's easy inspect popups. <end>

Conditional Attribute vs. #if

sample code. all want attribute tells compiler, "skip this" . i hate using #if , #endif.  easy loose them.  (it nice if outlined themselves, gimme switch top , bottom please, not @ top.)   code block   #define compile #define donotcompile #undef donotcompilethismethod   using system; using system.collections.generic; using system.text; using system.diagnostics;   namespace csharp { class conditionalcompile { [ conditional ( "compile" )] void methoda() { }   #if !compile void methodb() { } #endif   #if donotcompile void methodc() { } #endif   #if donotcompilethismethod void methodd() { } #endif   [ conditional ( "condition1" )] public static void method1() { } [ conditional ( "condition1" ), conditional ( "condition2" )] public static void method2() { } [ conditional ( "donotcompile" )] void method3() { } [ condition

Limit on the number of Key Vaults per subscription

hello, i planning implementation of key vaults in environment. planned setup includes several tenants in 1 azure subscription. want each of these tenants have separate key vault, can have granular control on security permissions. my question - how many key vaults can have in 1 azure subscription? there limitation? i have been searching ms portal, able find info on limit on number of transactions, not on number of key vaults themselves:  https://azure.microsoft.com/en-us/documentation/articles/key-vault-service-limits/ regards hi avendil, like keys/secret not think there limit number of key vaults, unless have reached one! please mark posts answers/helpful if answers query. helpful others facing same kind of problem Microsoft Azure  >  Azure Key Vault

About StatusBar in C#

i have applied below code managing status bar panel. need inform first applied onto mdi (left side : user name, right side : date time). after applied onto different form when applied code form showing 2 panel bar form. please help... ------ form load statusbarpanel statuspanel = new statusbarpanel(); statusbarpanel recordcount = new statusbarpanel(); statusbar mainstatusbar = new statusbar(); int countvalue = 0; recordcount.borderstyle = statusbarpanelborderstyle.raised; recordcount.width = 100; countvalue = program.getnumericvalue("select count(*) knt <table name>"); recordcount.text = "total record : " + countvalue.tostring(); recordcount.tooltiptext = "total record"; recordcount.autosize = statusbarpanelautosize.spring; mainstatusbar.panels.add(recordcount); mainstatusbar.showpanels = true; this.controls.add(mainstatusbar); ------ insert block countvalue = program.getnumericvalue("select c

Class Library: How to hide method definitions?

hi   i creating simple class library makes using reflection easier. i'm doing practice , find reflection interesting. testing purposes, have project (a console app) test dll. however, whenever cause exception thrown (on dll's end) while running in debug mode, debugger triggers breakpoint, , brings .cs file dll. question is, how can make actual code inaccessible? example of mean, @ code: system.reflection.methodinfo info; . . . //info populated @ point . . . info.invoke(obj, parameters); if right-click on invoke method , click "go definition" bring .cs file method declarations are. how can have "header file" code hidden?   you build project release mode , change compilation properties not create pdb files muthu krishnan.r use need, reduce global warming Visual Studio Languages  , 

Special character found in Azure DW table via Azure Data factory load

Image
hi experts ,  moving data on premise blob , blob azure dw using azure data factory see surprise special character in of stirng field in azure dw table  no such special charatcer exist on premise   i checked adf give utf-8 default encoding because did not specify encoding while creating file on blob on premise table. checked , found no such special character exist in csv file on blob . below sample query , output , replicate , show issue facing ,and replacing special character show exist  how resolve ? select distinct deptname , ,replace(deptname ,char((13)),'^') ,len(deptname) lenofdeptcolumn  myazuredwtable hi rihan,  is possible can share runid/time failure both copy on premises blob , blob dw? troubleshoot.  on other side, if you're trying copy on premises dw, there's no need use 2 separate activities, can using 1 copy activity on premises sql dw. check link, section "staged copy using polybase". http

static analyzer crash: the method or operation is not implemented

with latest build ( 1.4.50111.1) receive following crash of static analyzer. may able guess function in based on first line of message, indicating function in our code.   codecontracts: utilities: internal error @ method method 240 : shell.ep.cdis.utilities.reflectionextensions.createexpressioninfo(system.reflection.methodinfo,system.type,system.type[]) codecontracts: utilities: failed uncaught exception: method or operation not implemented. codecontracts: utilities: stack trace:    @ system.compiler.analysis.ccimddecoder.elementtype(typenode type) codecontracts: utilities:    @ microsoft.research.codeanalysis.analysiswrapper.typebindings`11.arrayanalysisplugin.suggestanalysisspecificpostconditions(contractinferencemanager inferencemanager, ifixpointinfo`2 fixpointinfo, list`1 postconditions) codecontracts: utilities:    @ microsoft.research.codeanalysis.analysiswrapper.typebindings`11.arrayanalysis`2.suggestanalysisspecificpostconditions(contractinferencemanager infere

Removing methods calls off the stack in C#

Image
how can remove method calls off stack of object in c#? i set variable equal null object still executing code. for example if have onc class calling method of other , calling other methods in class this: class a {     private b var;     void start()    {       var = new b;       var.runflag true ;       var.run();    }     void stop()    {       var.runflag = false ;       var.dispse();       var = null ;    } } class b : idisposable {     public   bool runflag =  false ;     void run()    {        while (runflag)       {             meth1();             meth2();             meth3();       }    }        void meth1()    {          dosomething();    }     void meth2()    {          dosomething();    }    void meth3()    {       dosomething();    }     void dosomething()    {        return ;    }         void dispose()    {           // clean resources    } }   then after call in stop() method of class a, b should garabage collected no matter control of execution is.  right or

How can i pass over access denied directory or file when searching in files ?

using system; using system.collections.generic; using system.componentmodel; using system.data; using system.drawing; using system.linq; using system.text; using system.threading.tasks; using system.windows.forms; using system.io; using system.security.accesscontrol; using system.security.principal; namespace search_text_in_files { public partial class form1 : form { streamwriter w = new streamwriter(@"e:\textresults.txt"); public form1() { initializecomponent(); findlines(@"e:\", "green"); } public list<string> findlines(string dirname, string texttosearch) { int counter = 0; list<string> findlines = new list<string>(); directoryinfo di = new directoryinfo(dirname); if (di != null && di.exists) { if (checkfileforaccess(dirname) == true)

Does CREATE TABLE support nullable types?

in analytics query, when create table, specify field of type float. if json empty field (""), converting float fails, , job not process data. how specify in create table field nullable float? or proper way submit field treated null. this fail when job running. when test query uploaded data, not error. all fields nullable, not need specify explicitly in create table statement. but how float field in json ("")? do have mixture of strings , numbers in json like: { "value" : 42.0 } { "value" : "42.0" } you may want add explicit cast in query. sql server engine. Microsoft Azure  >  Azure Stream Analytics

Biztalk server

the messaging engine failed process message submitted adapter:wcf-basichttp source url:http://abc/service.svc. details:the published message not routed because no subscribers found. error occurs if subscribing orchestration or send port has not been enlisted, or if of message properties necessary subscription evaluation have not been promoted. please use biztalk administration console troubleshoot failure. hi vasu, we here help. if have searched in bing/google error "t he published message not routed because no subscribers found. ", ways resolve issue. as error says don't have subscriber published message. you're receiving message, planning received message? if want send message place/folder create send port "bts.receiveportname == yourreceiveportname" suggested. or if want process, ensure subscribing orchestration or send port in enlisted state. if subcription based on filter or said if orchestration configured process message, ensure have &q

Infobox element click events don&#39;t bubble/propagate up

using maps v8 , infobox populated html content (via description, not htmlcontent). click events triggered on html element not propagating past div.infobox element. , since div.infobox element created/destroyed rather (on setmap , setlocation), difficult keep bound, particularly since there can delay after calling setmap or setlocation before elements created , ready bound. it's mess if use multiple infoboxes. i'm guessing culprit infobox click event has event.stoppropagation(), perhaps prevent map click event being triggered well? if so, filtering/exclusion should added targets inside infoboxes. mouseenter , mouseleave events on elements still propagate normally, however. have not tested other events. so summarize: 1) need click event propagate can delegated instead of directly bound 2) need infobox.setmap() trigger kind of domready event events can bound included content without having hack timeout checks var map = new microsoft.maps.map(document.getelementbyid(&

Biztalk custom sendpipe line error-[System.Data.MetadataException] = {"Unable to load the specified metadata resource."}

hi friends, i developing custom send pipeline.i using entity framework model develop pipeline. the method,it take xml file input , dynamically xpath values in sql table if thing match in xml document replace values sql values. method looks that              public xmldocument updatemfiles(xmldocument inmsgxml)         {             //xmldocument doc = new xmldocument();             //doc.load(ms);             iconfighelper confighelper = new confighelper();             //dataentities db = new dataentities(confighelper.getgeneralconfigvalue(connectionstring));             econnection = new entityconnection(confighelper.getgeneralconfigvalue(connectionstring));             db = new dataentities(econnection);             iqueryable<mdata> custquery = db.mdata.asqueryable<mdata>();             if (custquery != null)             {                 list<mdata> mlist= custquery.tolist();                 if (mlist!= null && mlist.

SQL Server 2008 - High Memory Usage

hi ,   facing problem high memory usage sql server 2008. 64 bit , standard edition sp2 . 8 gb ram , 8 processors . memory usage keep on growing ..sometimes reach 7.5 gb .... , not coming down ..untill restart service... these details of dbcc memorystatus :: please suggest how overcome problem memory manager                           kb ---------------------------------------- ----------- vm reserved                              8484792 vm committed                             4220368 locked pages allocated                   0 reserved memory                          1024 reserved memory in use                   0 memory node id = 0                       kb ---------------------------------------- ----------- vm reserved                              8481144 vm committed                             4216832 locked pages allocated                   0 multipage allocator                      36464 singlepage allocator                     2687456 memory no