Posts

Showing posts from July, 2012

Windbg clrjit.dll exception

i excecute following commands after starting user mode debug session. sxe ld clr g .loadby sos clr .load sosex.dll sxi cce .reload .lastevent upon letting go of target process pressing (g). debugger breaks target following exception (7fc.8d4): unknown exception - code 04242420 (first chance). why happen , how can further details? (7fc.8d4): unknown exception - code 04242420 (first chance) modload: 697d0000 6983e000   c:\windows\microsoft.net\framework\v4.0.30319\clrjit.dll eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 esi=7efdd000 edi=001ce7a0 eip=773ffc62 esp=001ce674 ebp=001ce6c8 iopl=0         nv ei pl zr na pe nc cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000246 ntdll!zwmapviewofsection+0x12: 773ffc62 83c404          add     esp,4 0:000> !pe c0000005 exception in c:\windows\microsoft.net\framework\v4.0.30319\sos.pe debugger extension.       pc: 60b94313  va: 00000000  r/w: 0  parameter: 00000000 dblk

How to upload file from word add-in javascript to server .

i want upload file server but, not work. have tried use ajax , jquery , javascript , form. none of them worked. hi adiluck, >> want upload file server but, not work. have tried use ajax , jquery , javascript , form. word add in used interop data in word content. there no built in function upload file. think issue related javascript code upload file. check whether special issue related word add in, suggest test code simple web project. if did not work either, think issue related javascript code. if works, suggest share code used upload file. best regards, edward 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. Microsoft Office for Developers  , 

Broken XML docu link when implementing interface

hello, please consider following minimal code example: namespace classlibrary { public class class : ivalueprovider { public int value { { return 0; } } } [contractclass(typeof(valueprovidercontract))] public interface ivalueprovider { int value { get; } } [contractclassfor(typeof(ivalueprovider))] abstract class valueprovidercontract : ivalueprovider { int ivalueprovider.value { { contract.ensures(contract.result<int>() >= 0); return 0; } } } } in project settings, enabled "emit contracts xml file". in general feature works , it. unfortunately, example above, there seems problem in generated xml docu file. member documentation of class.value getter looks this: <member name="p:classlibrary.class.value"> <getter> <ensures inheritedfr

AppDomains, Threading and UnhandledExceptions

hello all, i developing application experiment genetic programming. of now, application able compile model of source classes , wire events , methods according configuration stored in model. also, application can mutate , rearrange model in order test alternative options. the idea compile , run mutations of models in secondary appdomains, 1 each model. this works beautifull, code gets compiled, model mutated resulting population executed, , none of dynamic assemblies loaded in primary appdomain. there catch however, 1 have no solution @ moment. when user decides write piece of code, can introduce code with possible faults. if such piece of code executes on main thread, the exception can handled , processed safely. not problem there. however  when user decides introduce faulty code , execute on new thread (using classes available in system.threading namespace) the exception cannot handled in way. this means the appdomain.unhandledexception event gets raised in primary appdomain, , the ma

More PInvoke Issues

this works -   code block [ dllimport ( " module .dll" )] public static extern intptr createmodule();   intptr modulepointer = createmodule(); logwindow .instance.addoutput( "pointer = " + modulepointer );       and prints out - 105987728   this doesn't work -   code block modulebuilder modulebuilder; assemblybuilder assemblybuilder; assemblyname assemblyname = new assemblyname (); assemblyname.name = modulename; assemblybuilder = appdomain .currentdomain.definedynamicassembly( assemblyname, assemblybuilderaccess .run ); modulebuilder = assemblybuilder.definedynamicmodule( modulename ); // createmodule function methodbuilder mb; mb = modulebuilder.definepinvokemethod( "createmodule" , dllfile, methodattributes .public | methodattributes .static | methodattributes .pinvokeimpl, callingconventions .standard, typeof ( intptr ), null , callingconvention .cdecl, charset .unicode )

Convert int datatype to string datatype c# access database

hi guys, created windows application form project , there problem facing right now. had array of textboxes, , wanted connect database textboxes, however, cannot data because data want connect int datatype. there 2 form has been created, 1 login form, login form, database string, autocomplete working. second 1 second form, second form, database int, autocomplete not working. please help. here code second form: string connectionstring = (@"provider=microsoft.ace.oledb.12.0;data source=\archives\projects\program\sell system\sell system\app_data\db1.accdb;persist security info=false;"); private list<list<textbox>> textboxcodecontainer = new list<list<textbox>>(); oledbdatareader dreader; oledbconnection conn = new oledbconnection(connectionstring); conn.open(); oledbcommand cmd = new oledbcommand("select distinct [code] [data] order [code] asc", conn); dreader = cmd.executereader(); autocompletestri

Bing Map - Draw circle

hi, am new bing map application devlopement part . i have requirment draw circle based quantity circle size should drawn in particular geocode (location) how draw circle can pl share sample code useful me thanks in advance m mohanraj try using circle module bing maps: http://bingmapsv7modules.codeplex.com/wikipage?title=circle%20module http://rbrundritt.wordpress.com Bing Maps  >  Bing Maps Web Controls

file exists bugs

dear all, i have below code. don't know why file.exists return false?? have checked exists. string path = system.io.path.getdirectoryname(       system.reflection.assembly.getexecutingassembly().getname().codebase);                if (file.exists(path + @"\" + dcfile))  /// not exists???                                                                       //path="file:\c:\program files\......................                 {                     using (streamreader reader = new streamreader(path + @"\" + dcfile, encoding.ascii)) raymond, the codebase property returns url of path string . because of see "file:\" in front of path. call string.substring() method path behind "file:\". hannes if have got questions this, ask. in perfect world, users never enter data in wrong form, files choose open exist , code never have bugs. c# vb.net: http://www.developerfusion.com/tools/convert/csharp-to-vb/

Debatching

i have message follows bulkorder : <orders> <batchid>1</batchid> <order> <ordnum>100</ordnum> <qty>100</qty> </order> <order> <ordnum>102</ordnum> <qty>200</qty> </order> </orders> need debatch , single order should <sngorder> <batchid>1</batchid> <order> <ordnum>100</ordnum> <qty>100</qty> </order> </sngorder> <sngorder> <batchid>1</batchid> <order> <ordnum>102</ordnum> <qty>200</qty> </order> </sngorder> how can acheive in orchestration ? without batchid iam able acheive same. vijaykishan | http://v2attechhorizon.blogspot.com hi, you use sample to loop around orders. other options debatching in orchestration mentioned in thread . hth regards, steef-jan wiggers mvp & mcts biztalk server http://soa-thoughts.blogspot.com/ if answers question

(503) Server Unavailable

we've been getting spatial data services 24 hours now: [geocode fields [331]] error: system.net.webexception: remote server returned error: (503) server unavailable.    at system.net.httpwebrequest.getresponse()    at ssisbatchgeocoder.geocoder.executebinggeocodeflow()    at ssisbatchgeocoder.geocoder.executebatch()    at ssisbatchgeocoder.geocodertransformation.flushcurrentbatch()    at ssisbatchgeocoder.geocodertransformation.processinput(int32 inputid, pipelinebuffer buffer)    at microsoft.sqlserver.dts.pipeline.managedcomponenthost.hostprocessinput(idtsmanagedcomponentwrapper100 wrapper, int32 inputid, idtsbuffer100 pdtsbuffer, intptr bufferwirepacket) there doesn't appear system status page bing spatial data services - can ms give me estimate on when service available again? geocoding rather fundamental part of our application, when provider goes offline randomly it's rather disconcerting. if enterprise customer contact bing maps enterprise supp

C# code contract: how to check associativity

hi, i'm trying encode associativity of binary operation code contract. below atempt far. sensible way ?     public interface imagma<telem>         telem : iequatable<telem>     {         [pure]         telem mult(telem a, telem b);     }     public interface iassociativemagma<telem> :         imagma<telem>         telem : iequatable<telem>     {     }     [contractclassfor(typeof(iassociativemagma<>))]     // can't put telem here     internal abstract class associativemagmacontract<telem> :         iassociativemagma<telem>         telem : iequatable<telem>     {         [pure]         public telem mult(telem a, telem b)         {             return default(telem);         }         [contractinvariantmethod]         private void associativityproperty(telem a, telem b, telem c)      // complains that         {             // var = contract.any<telem>(); // ide

Create a custom payment (IDictionary)context["payment_to_process"]?!?

  hi all,   i'm new commerce server , create custom payment method starter site. according msdn http://msdn2.microsoft.com/en-us/library/bb520907.aspx  section 4 c, have payments using (idictionary) payment = (idictionary)context["payment_to_process"].  if want credit card details, should use (idictionary) payment = (idictionary)context["creditcardpayment"]? thanks much!   jos the code sample showed simple list should have details.   code block isimplelist paymentlist = dictionary["payments"] isimplelist;     iterate through , dictionary. dictionary should have data credit card number , expiration date , such. if need details on orderpipelinemappings.xml file , in section < class name =" creditcardpayment " > is actual mapping.   good luck, -max Commerce Server  > 

UI Suppression ON for Skype for Business 2015 client failed

i need test lync sdk (2013) app skype ui suppression. tried possible registry paths can googled on win 8.1 pro 64 bit sfb 2015 client , skype ui not suppressed after restart. correct registry path should be hkey_local_machine\software\microsoft\office\15.0\lync uisuppressionmode dword key = 1 (btw, can see path , key name in lync.exe) other requirements suppression? can local or global domain group policy affect ui suppression? windows , office (with skype) activated. lyncclient.getclient() can't start host process (gives exception "hos process not running"). when sfb launched manually, has normal ui , insuppressedmode = false , state = signedin sfb window tells: microsoft lync 2013 (15.0.4809.1000) mso (15.0.4823.1000) 64 bit skype business 2015. ms office  professional plus 2013 skype basic, btw. have same result skype business 2016 on windows 10. i wrong, correct registry path hkey_current_user\software\microsoft\office\15.0\ly

when i pass a "Type", Console.write() prints System.Runtime?

hi friends, i have opened form counting method int countopenedforms(type f) {       console.write(f.gettype().tostring()); } when pass form type, assume project has form type called frmproducts, write() prints system.runtime . should print  <project_name>.frmproducts why happens, how fix it? i use visual studio 2010 professional , sql server 2008 developer edition! hi sniff_bits; i think may want following: int countopenedforms(form f) { console.write(f.gettype().tostring()); return 0; } then call following: // assuming form want count has // instance name theforminstance countopenedforms(theforminstance);    fernando (mcsd) if post answers question, please click " mark answer " on post , " mark helpful ". note: if ask code, please provide can drop directly project , run (including xaml), or actual application project. i'm trying lot of people, don't have time figure out weird snippets undefined o

How to get named item which has multiple ranges in Excel/Excel Online using Office Add-in

hi i`m aware can access named item has 1 range. can please let know how named item has multiple ranges in excel/excel online using office add-in  ? thanks!! santosh sutar hi santosh, as far know, office add-in doesn't support name items have multiple range. similar feature raised others. if want office add-in support feature, can vote here . regards & fei 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. Microsoft Office for Developers  ,  Apps for Office and SharePoint  >  Developing Apps for

Threading help

hi, (i hope question not long lol) working on xna game uses lot of .net classes it. game has server program , client program. server receives data processes , sends (for example client ask of player positions in game e.g. x , y positions , when client asks server replies required information). coding local area network fine > 1 ms response time if test game on internet 60 ms client lag badly (not internet lag frame per second lag). reason of because when client asks server information client freezes (the whole program pauses) until gets needed information. have never worked threads before. use threading multi-threaded server (for multiple connections) got off internet , modified lot. want know how make "background" thread (if called), can code runs, , if code pauses wait sort of reply not pause whole program, thread. (if can figure out how use network programming). if helps use tcplistener , tcpclient network connections. don't think matters. ma

Which one is better to use for C# desktop app = ms access (*.mdb) vs sqlite (*.db)?

hi all, my question opinion better use c# desktop app >> ms access (*.mdb) vs sqlite (*.db) any comments good, thank you. not in this. first worked ms access somewhere read sqlite faster not sure. thanks access small databases not shared. if you're building database used multiple people access going more limiting. you'll want consider sqlite or perhaps localdb or something. if you're building app network system should take hit , move sql server. if need store data , thought db choice might consider looking @ other options instead including many nosql databases floating around. you're going have decide 1 best specific needs. have no way of knowing can provide general guidelines. example, if intend store terabytes of data access out. if data unstructured sql databases aren't going useful. list goes one. michael taylor http://www.michaeltaylorp3.net Visual Studio La

Refresh DataGridView when databound database table changes

i created datagridview , bound database table it:         public virtual void gridadapt(string sel, datagridview dgv)         {             dbdataadapter da = getdataadapter(sel);             dataset dsx = new dataset();             da.fill(dsx);             bindingsource bs = new bindingsource();             bs.datasource = dsx.tables[0];             dgv.datasource = bs;             dbcommandbuilder cb = getcommandbuilder(da);             da.insertcommand = cb.getinsertcommand();             da.deletecommand = cb.getdeletecommand();             da.updatecommand = cb.getupdatecommand();         } when edit columns in existing rows, changes propagated underlying database table, little forum (hooray!) when move past last row, create default entry in underlying table. works fine. what can't figure out how make new row appear in datagridview. guess need re-execute select statement somehow. what need make new row show in grid? thanks, jon jacobs

Getting class objects using ICoreprofiler

hi,  i trying parent class object of called function using icoreprofilercallback/icoreprofilerinfo2 apis. what want is, 'this' pointer of following class when member function called. can inspect state. in following class, need class instance profiling, type cast type can read properties. public class testmanagedclass{ public int somevalue; public seconddotnetclass cls; ...... public void myfunction(some args); } i using icoreprofiler , getting call when the function 'myfunction' being called functionid,clientdata,frameinfo , argument info. once here, call getfunctioninfo2 , class id. want information , pass on manged layer , pass kind of pointer there can this. intptr p = (intptr)ptr;         gchandle handle2 = (gchandle)p;         testmanagedclass objofinterest= (handle2.target testmanagedclass); i looking at getboxclasslayout or getclasslayout kind of methods can extract gchandle or similar it, can managed object back. of these sound rea

get current process name with file extension in c#

getallproccess function return runing proccesses in windows. want current proccess name extension ".avi", ".mkv", ".mpg", ".mp4", ".wmv" e.g. if play video file in windows media player return (wmplayer.exe) or if play video file in km player returns(kmplayer.exe) thanks here code   code working slow reference    http://vmccontroller.codeplex.com/sourcecontrol/changeset/view/47386#195318   string filename; process[] procs = process.getprocesses() ; foreach (process prc in procs) {   if (procs.length > 0) { int id = prc.id; ienumerator<filesysteminfo> fie = detectopenfiles.getopenfilesenumerator(id);   while (fie.movenext()) { if (fie.current.extension.tolower(cultureinfo.invariantculture) == ".mp3") { filename = fie.current.fullname; break; // todo: might not correct. : exit while } } } }</filesysteminfo> hi, this expected process "context" running

HDInsight Spark Streaming vs Stream Analytics

im looking scenario's use cases in 1 better suited vs other. from initial research a functional capabilities & learning curve & dev efforts a. stream analytics quick going with, might inflexible in terms of nature of processing executed against stream. e.g. if want mere aggregations (across records) or filtering (identify categories of records) or alerting (identify specific records) capabilities, stream analytics might effective option. b. im not sure of leveraging reference data during stream processing supported in stream analytics. expect possible/available in spark streaming e.g. event/record enrichment. i.e. read input stream event, used specific attributes, lookup additional attributes relevant event, , add stream event downstream processing. or running complex co-relations across streams e.g. event seen above threshold on 1 stream in last day, , relate-able event observed on stream, , points conclusion. c..  , on. b architecture & performance

blend2 silverlight: using absolute links for images (rumremix) - 5/7/2007 10:32 AM PST

by: rumremix blend 2 automatically creates html file along necessary javascript files , xaml file, providing needed display silverlight app in browser. if application uses images, images included in same directory , linked scene.xaml file. good. reason, application won't work if images referenced via absolute instead of relative links. placed images used in test application on remote sever , linked them in scene.xaml file using absolute http address. no error message appears stating image can't found happen using broken relative link. absolutely referenced image not display in app. can silverlight not use images referenced via absolute address? thanks. Expression  >  Expression Blend + SketchFlow

custom pipeline process definition

i  have code, want know , how process going on exataly, debatching xml message. please put yours  explanation of below per how process                                         ibasemessage msg = null;                                         msg = pcxt.getmessagefactory().createmessage();                                         //system.diagnostics.eventlog.writeentry("getnext:after msg", "");                                          msg.context = ibmparam.context;                                         ibasemessagepart msgpart = pcxt.getmessagefactory().createmessagepart();                                         system.io.memorystream memstrm = new memorystream();                                         docorder.save(memstrm);                                         memstrm.position = 0;                                         memstrm.seek(0, system.io.seekorigin.begin);                                         msgpart.data =

how to upload >4GB file using c#

hi, i need upload >4gb  in networkfileshare. i used filestream object , spllited file , saveed in networkshare.but taking more time. i need on how upload 4gb files chunks using c# my code                         filestream foption = new filestream(strfilename, filemode.open);                         len = foption.length;                         eachsize = (int)math.ceiling((double)len / x);                         foption.close();                         filestream infile = new filestream(strfilename, filemode.openorcreate, fileaccess.read);                         (int = 0; < x; i++)                         {                             filestream outfile = new filestream(strdir + "\\" + + ".zip", filemode.openorcreate, fileaccess.write);                             int data = 0;                             byte[] buffer = new byte[eachsize];                             if ((data = infile.read(buffer, 0, eachsize)) > 0)   

silverlight and yomvi

i have subscription yomvi. unable view streaming video because silverlight doesn't load. use ipvanish(vpn)  have 2011 mac , yosemite. recognized yomvi firefox browser. have tried deinstalling silverlight , loading latest silverlight many times without success. suggestions? if test page loads and works then don't need find add ons manager, because silverlight enabled , working. try following instructions under application storage: http://social.technet.microsoft.com/wiki/contents/articles/30387.silverlight-trouble-shooting-installs.aspx#application_storage if still doesn't work need talk yomvi. if silverlight working on machine problem on end. maybe subscription or something. at least can confidently explain silverlight working install. hope helps. technet articles: uneventful mvvm ; technet articles Silverlight  > 

How to create a reference to the Target work item ID in the Source work item?

i'm creating custom adapter synchronize work items between mks integrity and tfs. far, things seem working reasonably in both directions. however, 1 thing i'm getting stuck on in creating forward cross reference source target. example, when bug migrated mks tfs, i to see the original mks work item updated include cross reference new tfs id. i hoping "reflectedworkitemid" might trick, doesn't seem doing expected. can see tfs migration provider sets id the  source  work item to reflectedworkitemid of target work item, don't see how id of target  can make way source . could comeone point me in right direction? thanks. the reflectedworkitemid can used trick, however, source adapter (i assume custom mks adapter in case) needs update field.   do search reflectedworkitemid in tfs integration platform code base, can http://tfsintegration.codeplex.com/ , , notice tfs wit adapters set field … in other words, adapter, not pipeline sets value.

How to refresh Full Text Indexes?

Image
hi all, i using full text search in stored procedure web application search-engine. how refresh fulltext indexes created using unique indexes? as can see 2 options tart full population , start incremental population in full-text index on right click of table. on click of showing successful.   can please let me know standard way refresh full text indexes periodically in terms of best performance?? found, when run query first time contains keyword , takes time. what enterprise settings required increase performance??   thanks in advance.  when start population of fulltext catalog, it reports successful means started successfully. population can take while depending on size of columns, number of rows etc.   depending on size of index , how long takes full population, may want run regular incremental populations update records have been added/changed since last full population.  population quite resource intensive process aware of effect has on application. remember

Excel System.XML document to ESB on failed send

hi,  on our send port have enabled routing failed message, have couple of solutions send excel files  system.xmldocuments and orchestration.  unfortunately when send port fails esb fails below message since excel xmldocument isn't true xml document. there failure executing send pipeline: "microsoft.practices.esb.exceptionhandling.pipelines.esbfaultprocessor, microsoft.practices.esb.exceptionhandling.pipelines, version=2.1.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" source: "esb transform" send port: "all.exceptions" uri: "sql://(local)/esbexceptiondb/" reason: error 175002: unexpected error occurred while trying execute map, 'microsoft.practices.esb.exceptionhandling.maps.faultmessage_to_exceptionsql, microsoft.practices.esb.exceptionhandling.maps, version=2.1.0.0, culture=neutral, publickeytoken=31bf3856ad364e35'.  does know of  away around can submit file esb?  thanks in advance gilesb hi, it p

How to do Load Balancing on an Orchestration (exposed as WCF service) which uses Correlation

integration scenario:  i created orchestration being exposed wcf service. orchestration receive batch of requests. based on each request type, make call different calls mainframe services. as, these calls can made independently, implemented asynchronous way of making calls legacy systems. individual responses combined , aggregated response returned orchestration.  1) main orchestration (exposed wcf service) accepts batch requests. 2) deserializes requests ( request type promoted) , initializes correlation set ( batchid) , submits message box. 3) individual orchestrations subscribed message on request type. pick request , making related calls mainframe services , gets response. response again submitted messagebox initializing correlation set ( using same batchid set in main orchestration, i.e, step 2). 4) main orchestration has receive shape in loop ( follows correlation set batch id) picks responses published individual orchestrations. aggregate responses until batch requ

Method / Casting Problem

i wish write sorting algorithm work list of comparable items.  figure method definition should this: code snippet static void sort(ilist<icomparable> list) {   // method implementation } that works expect except must ugly cast every time call method: code snippet list<string> somestrings = new list<string>(); // add items sort((ilist<icomparable>)somestrings); i want way this: code snippet sort(somestrings); my problem more casting else.  there way can tell compiler want objects matching ilist<icomparable> type automatically cast? hope clear asking.  appreciated. > works expect except must ugly cast every time call method:   that code not work; @ run time it fails follows:   unable cast object of type 'system.collections.generic.list`1[system.string]' type 'system.collections.generic.ilist`1[system.icomparable]'.   you see, ilist<icomparable> not interface implemented list<string>

Waiting for a WebBrowser till all requests/page loads completely.

hi, i have write code wait browser till complete loading page. since code executes faster browser loads completely. have used below code: bool documentloaded = false; public void click() { wb.navigate("http://icertis-itm.cloudapp.net/"); wb.documentcompleted += webbrowser1_documentcompleted; while (wb.readystate != webbrowserreadystate.complete) { application.doevents(); } mouse.click(uitestcontrol); } private void webbrowser1_documentcompleted(object sender, webbrowserdocumentcompletedeventargs e) { documentloaded = true; } in our application after user logged it, 'dashboard' page gets loaded 5-6 div used , on <div> loading images displayed till complete report gets load. when check readystate property, webbrowserreadystate set complete few elements/controls (contents div, loading images on div) loading. @ point performs next actions even if page has not finished loading. is there point can c