Posts

Showing posts from August, 2012

Declaring async in interfaces

i've red quite lot of documentation , played around samples, can't remeber coming across use of async in interfaces. of course, might not necessary when showing off new concept, since love interfaces i'd make comment them in regards async. public interface itestasync { async task< string > dosomething(); } the code above works fine static checker, cannot compile , gives following errors: - async modifier can used in methods have statement body - modifier 'async' not valid item i think being able make use of "async" in interface needed in order ensure consistency. through use of "task" return type argue method indirectly can identified async, might not true in case , of course doesn't work "void"-methods. lead inconsistent implmentations of interfaces. naming conventions might on it's expect able enforce compilerwise. currently static checker accepts async-decorated interface-methods return typ

Another property question

thanks douglas solved indexer problem. issue have non indexer cannot used property: .property object activeconnection() {   .custom instance void [mscorlib]system.runtime.interopservices.dispidattribute::.ctor(int32) = ( 01 00 e9 03 00 00 00 00 )   .other instance void adodb.recordsetclass::let_activeconnection(object)   .get instance object adodb.recordsetclass::get_activeconnection()   .set instance void adodb.recordsetclass::set_activeconnection(object) } // end of property recordsetclass::activeconnection however, if used in c# produces: error cs1545: property, indexer, or event  'activeconnection' not supported language; try directly calling accessor methods 'adodb._record.get_activeconnection()' or         'adodb._record.set_activeconnection(adodb.connection)' i guessing .other instance ...let_ causing confusion. cannot see in reflected parameter (canread , canwrite true). idea how spot , .other bit means? you're seeing vb6 quirk.  can have property

Order form extended with Identity column

hi, does know how can extend orders system use identity column? have created class hold collection of objects (order notes), each of which has id. in database made column identity create keys me. problem that when generate schema changes, based on orderobjectmappings.xml file 3 no way indicate id identity column. stored procedure inserting new object, , table definition itself, both ignore identity aspect. we can edit sql hand gets pain since we're still extending order form on regular basis. any ideas? thanks! lon it may little late in game make change better use guids primary key. way can generate new ones in code without having rely on database. Commerce Server  >  Commerce Server 2007

How do I return typed datasets from a web service (.NET 2.0) which will appear in the 'data sources' pane of a Windows program?

i using .net 2005.     have created web service have added 'web reference' windows program because want consume data web service. all of microsoft documentation tells me if return typed datasets web service datasets appear in 'data sources' pane of windows program (also .net 2005) , can use data if dealing local data.   cannot find anywhere in documentation, way of defining methods in web service achieve this. i have created typed dataset in web service (using 'dataset' design surface table adapter).   code using return dataset:     <webmethod()> public function units() data.dataset         dim myds new units         dim myta new unitstableadapters.daunitstableadapter         myta.fill(myds.dsunits)         return myds     end function rightly or wrongly way can see how not dataset appearing in window's program 'data sources' pane.   can help? the web service method needs return typed dataset type not plain dataset: public function units()

Status code: 401 The remote server returned the following error while establishing a connection - 'Unauthorized'.

Image
  hi, can use third party custom web services in sharepoint-hosted app on office 365  ?  i try value custom web services in sharepoint-hosted app development.but getting error " status code: 401, the remote server returned following error while establishing connection - 'unauthorized' ". my code :-     $(document).ready(function () {     (function () {         alert('executed');         var context = sp.clientcontext.get_current();                          var request = new sp.webrequestinfo();                  request.set_url(             "http://otherdomain/bookingservice.asmx"             );                 request.set_method("get");         request.set_headers({ "accept": "application/json;odata=verbose" });         var response = sp.webproxy.invoke(context, request);         context.executequeryasync(successhandler, errorhandler);         function successhandler() {  

Hotfixes/patches for Biztalk

is there compiled list of patches biztlak ? had memeory leak  issue biztalk 2006 r2 in production yesterday the  servers which has  16gb memory showing around 200k memry free , running extremely slow .... opened ticket ms and  , send  hotfix  xlang memory issue , moment  patch installed free memory shot 10-11 gigs ... (no server reboot  needed) the  patch applied : http://support.microsoft.com/kb/975118 looks there patches out there  need applied.. how can u make sure have   these critical   patches applied biztalk servers ?? amazingly, there isn't single repository for information. there bunch of places hotfix information biztalk server 2006 r2: i have rss feed latest biztalk hotfixes. can't find got from, here link use:  http://support.microsoft.com/common/rss.aspx?rssid=9774&ln=en-us&msid=545c9a759c239e4a8208581271b4a700 there page detailing fixes in sp1 of r2:  http://support.microsoft.com/kb/974563 alternatively, search on microsoft support sit

I can't open or any action with excell on C# code

hello need immediately help. need open excell file on c# code. throwing error. taked picture. if picture maybe me   (the code workin on visual studio 2008 not working on 2010. can ) http://d1201.hizliresim.com/t/p/1z52g.jpg   if else need this. fixed. have change code that;     excelmy.application excelluygulama = new excelmy.application();               excelmy.workbook benimkitap;             excelmy.application excelluygulama = new excelmy.application();                        benimkitap = excelluygulama.application.workbooks.add(true);             excelluygulama.visible = true; Visual Studio Languages  ,  .NET Framework  >  Visual C#

Using OleDbDataAdapter Update with InsertCommands and getting blocking locks on Oracle table

the following code snippet shows use of oledbdataadapter insertcommands.  code is producing many inserts on oracle table , suffering contention... on same table.  how oledbdataadapter produce inserts dataset... characteristics these inserts inherent in terms of batch behavior... or naturally contend same resource.  oc.open(); (int = 0; < ximageid.count; i++) { ... // create oracle adapter using sql not return actual rows structure oledbdataadapter da =    new oledbdataadapter("select business_unit, invoice, assignment_id, end_dt, ri_timecard_id, image_id, filename, barcode_label_id, " +    "direct_invoicing, exclude_flg, dttm_created, dttm_modified, image_data, process_instance sysadm.ps_ri_inv_pdf_merg 1 = 2", oc); // create data set dataset ds = new dataset("documents"); da.fill(ds, "documents"); // loop through invoices , write oracle string[] sinvoices = invoicenumber.split(','); foreach (string sinvoi

Issue -- While Adding webreference and Custom Soap Extension.

issue 1) facing issue have include soapextension in 1 of web service have consuming. webservice has 3 webmethods 1 webservice needs soap header. i have created custom soap header but  not able include in webmethod want consume. if include in web.config file <webservices>       <soapextensiontypes>         <add type="soapmessagelog.logsoapmessages, soapmessagelog" priority="1" group="0"/>       </soapextensiontypes>     </webservices> this gets applied web methods not want. issue 2 ) when add webreference web-application not able see proxy class implemention. can see methods signature not implementation , not able modify proxy class. reason why want because want add custom soap extension attribute webmethod through want send header. if create console application , add webreference can see proxy class implementation. i appreciate if can me solve issue. thanks, rn so trying add soap extension or custom soap header on service si

soap extension in web service call from a web service

  hi , i have web service calls web service.i need log soap messages.in windows service projects when add web service , places reference.cs file , can add soap extension attribute in file log soap messages.but in web projects , when add web service reference , there no reference.cs file , cant find way add soap extension attribute. can knows how add soap extension attribute web project ? you can configure soap extensions in web.config file. not necessary, nor advisable, modify reference.cs file, ever. file regenerated whenever update web reference.   also, recommend against ever using "web sites". instead, create new web application, use file->new project->web application.     Archived Forums A-B  >  ASMX Web Services and XML Serialization

Unauthorized Error - HTTP Action

hello, i've created logic app follows. when new event created, has upload files azure data lake store , subsequently run data lake analytics job. i've entered following details in http action: method : get uri : data lake analytics url entered here authentication : active directory oauth tenant : aad directory id entered here audience : application id of azure data lake entered here client id : application id of application registered in active directory (mockapp*) credential type : secret secret : key of mockapp* *mockapp - has been granted permissions has been given access in data lake. i've created logic app request trigger ( trigger when http requested, sas generated) but receiving following error. please assist me in clearing it. take @ following article:  https://social.msdn.microsoft.com/forums/en-us/ff21ac15-153a-46b2-b3ed-74cb69e637d1/net-core-20-in-azure-app-service?forum=windowsazurewebsitespreview there recent thread  re

xsd.exe fails to create common data types out of nested schemas

hi, with contract first approach have xsd schemas core interface definitions. outsourced common data types (enumerations , length limited string types) in shared common.xsd file in turn <import> ed top level xsd schemas. we tried generate .cs  code files xsd.exe in scenario. generated code files repeatingly contain common data type definitions. leads several compiler errors. using different namespace delcarations each generated class not solve problem: shared character of our common data types lost after code generation xsd.exe ! it seems popular problem, because shared data types commonly used practice. solved problem already? how can deal this? suggestions? hi, had similiar issue. main reason can't tell xsd.exe tool generate classes first schema , not supporting schemas, little manual cleanup in order.  because of how .net compiles everything, found following workflow helpful: consider 3 files, common.xsd, obj1.xsd, , obj2.xsd.  obj1 , obj2 both refer common.xsd

Get Min and Max values in dictionary

hello, i have following dictionary: dictionary<string, int32> items = new dictionary<string, int32>() { { "a", 1 }, { "b", 2 }, { "c", 3 }, { "d", 4 }, { "e", 5 }, { "f", 6 }, }; given list of string, let's say: list<string> list = new list<string> { "b", "d", "e" }; i need minimum , maximum values list items. list get:   minimum = 2 (value of b in dictionary)   maximum = 5 (value of e in dictionary) what best way this? trying linq max, min not sure how intersection between list , dictionary. thank you, miguel one solution this: var min = list.select(k => items[k]).min(); var max = list.select(k => items[k]).max(); Visual Studio Languages  , 

Multivalued property using ProfileManagementContext

hi, need add userobject profile multivalue property of strings, save array. i'm  profilemanagementcontext peform crud operations.  i ask some, or info how this, mean, create property , read/write using profilemanagementcontext thanks in advance, adrian.   here walkthrough on how this. http://www.davidtruxall.com/blog/2009/08/11/addingarelationshiptotheuserprofileincommerceserver2009.aspx although particular need, more @ extending functionality upm membership provider, might little bit easier.   brad foley | www.blfoley.com Commerce Server  >  Commerce Server 2009

Anonymous method question

i thought understood topic of anonymous methods, until saw , cannot reconcile type of programming.  code in statement block appears attached declaration line above it. anonymous method delegate understood? can't a statement block lines end comma , not semicolon. i hate sound dumb, got know is: public string url { get ; set ; } public string schemaurl { get ; set ; } helper  abc = new helper () { this . url, schemaurl = this . schemaurl }; url = basically not anonymous method way instantiate class in 1 line. using system; using system.collections.generic; using system.linq; using system.text; namespace consoleapplication1 { class program { static void main(string[] args) { helper helper = new helper { schemaurl = "dhjjjty787", url = "www.yahoo.com" }; } } } public class helper { public string url { get; set; } public string schemaurl { get; set

Where is the user message string displayed for Contract.Invariant call

my test exe throws "exe has encountered problem , needs close" box when hits class following code:         [ contractinvariantmethod ]          void  objectinvariant()         {              contract .invariant(watcherlist.count > 0,  "objectinvariant failed" );         } but error box not contain info on invariant throws this. don'e see user message displayed anywhere (also checked app event log). where see invariant user message? there way associate invariant custom exception? tia if rewriter working properly, should see message put invariant, either in exception (if throwing exceptions) or else in assert dialog (if asserting on failure). if can create small repro , send me in zip file, can take @ it. mike barnett DevLabs  >  Code Contracts

Loop through all registry values in a RegistryKey (recursion)

i need looping recursively through registrykey (in case, it's registry.localmachine) , values present in registrykey (again, in test example it's registry.localmachine). well, @ least 1 available accessed , wouldn't throw security exceptions. have no idea how proceed this. best have (doesn't work):              public void outputregkey(registrykey key)             {                   foreach (string keyname in key.getsubkeynames())                  {                      try                     {                          using (registrykey key2 = key.opensubkey(keyname))                          {                               foreach (string valuename in key.getvaluenames())                              {                                   combobox1.items.add(valuename);                                   outputregkey(key2);                              }                           }                     }                     catch

Adding buttons to IE toolbar

hi all, i have been scanning msdn site , found information on how add button ie toolbar. (please read http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/ext/tutorials/button.asp )  the problem have application that, when press button, should collect current url , display popup dialog. application written in c# , guess need "com object solution", found in the url above, to url into application.  is there way to use .net, ie c# solution, simulate or display com interface? many in advance, best regards joca  yes possible, requires lot of interop. recommend reading can com interop in sdk. need find interface in idl file, , re-write managed code. Archived Forums V  >  Visual C# Language

Backup/Restore disaster recover - host instance is in an inconsistant state

hi all, hope out there can me issue   the problem : * service : biztalk service biztalk group: biztalkserverapplication can't started - reports eventlog: the host instance in inconsistent state biztalk service, please delete , re-create host instance.   history : after disaster recovery , full restore of biztalk plattform(note - only biztalk server , not databases restored) managed recover plattform after logging "biztalk server 2006 administration console" noticed under "plattform settings" host instance , servers configuration was gone.   2 questions:   question 1 problem don't seem manage create new host instance (when chose add tab servers can't chosen due configuration of servers gone well, , don't seem able add new servers under plattform settings via administration console. can't done via administration console?   importing biztalk configuration (problem 2) when starting microsoft biztalk server 2006 configura

Why Service Instance class of BizTalk Server, not showing Service name?

hi, i have biztalk server 2010 installed on machine & configured sql 2008 r2. we have active & suspended sevice instances on biztalk administration window. but unable see instances of active services, can see service instances of suspended services. when check values on wmi, (wmi class msbts_serviceinstance), can see instances of both active & suspended services. but, there can't see service name active service instances. value of instanceid & service name appears blank. please understand why happening? can please exlain running & suspended instances under group hub meant for? also please explain wmi class msbts_serviceinstance signifies & when instances class generatted? hi rahul, if understand question correctly not able see active instances in admin console. it because must getting completed quickly. able see instances or orchestrations take time processing. (they active time , again might dehydrated after time.)  sometimes when s

bre execution from .net code

hai all, i created normal xml schema , created bre rules xml facts.. i created bre xml file i tested rule workng and wrote program execute . class program     {         static void main(string[] args)         {             xmldocument doc = new xmldocument();             doc.load(@"c:\users\srinath.dasyapu\desktop\studenttest.xml");             typedxmldocument txd = new typedxmldocument("ruleset.po", doc);             policy policy =new policy("test_policy");             policy.execute(txd);             console.writeline(txd.document.outerxml);             policy.dispose();             console.readline();         }     }        }  i not getting error update not happening in file..? any thing wrong.... i got issue issue schema name should "namespace.typename" you have call this class program { static void main(string[] args) { xmldocument doc = new xmldocument

Missing a cast

the error "cannot implicitly convert type 'system.linq.iqueryable<system.collections.generic.list<dynamic>>' 'system.collections.generic.list<dynamic>'. explicit conversion exists (are missing cast?)". code: [operationcontract] [webget(uritemplate = "/{facilityid}/xs/metadata/", bodystyle = webmessagebodystyle.wrappedresponse, responseformat = webmessageformat.json)] public list<dynamic> generatemetadata(string facilityid) { string url = operationcontext.current.endpointdispatcher.endpointaddress.uri.absoluteuri; list<int> facilities = collectionutilities.convertcsvstringtointlist(facilityid); xcontext.database.connection.connectionstring = dbutility.getconnectionstringforfacility(facilities, url); var result = x in xcontext.xdetailrecords facilities.contains(x.facilityid) select new list<dynamic>{x.

Blend 2 Beta and 2.5 Preview say trial expired

downloaded , installed expression studio 2 beta , 2.5 blend preview use testing silverlight after seeing sessions @ orlando devconnections. both installed fine, when run them message trial each has expired , enter product key. know both there no product key. have uninstalled both , reinstalled, has not helped. there way fix can try them out? thanks. you guys should running blend 2 service pack 1 - it's later release 2.5 (confusing, know). uninstall 2.5, install blend 2. after that, go sticky @ top of forum says "blend 2 sp1 available" or whatever, then download , install it. that's it. you'll see decent performance boost on 2.5, though it's still not zippy lot of be. Expression  >  Expression Blend + SketchFlow

Rename File in FTP from Biztalk

hi, i have ftp folder receivelocation. rename some files in folder biztalk. possible ?. it possible file recive location. using 'file.receivedfilename', filepath , rename file using system.io.file.move(source,target) but how acheive in ftp ? thanks in advance joe hi, you have 3 options: - build own library using standard .net classes in namespaces sytem.net system.net.sockets. (adv: under own control, disadv: time consuming) - use free ftp library (disadv: no support, adv: not time consuming implement). there numberous free library projects. bing ( http://www.bing.com/search?q=free+.net+ftp+library&form=qbre&filt=all ) - use commercial ftp library http://xceed.com/ftp_net_intro.html  (adv: full support, disadv: price) hth, randal van splunteren - http://biztalkmessages.vansplunteren.net - please mark answered if answers question. BizTalk Server

Using Bing GeoCoding services and Terms of Service

so have bunch of resources tied location in database. if there address has been specified, no geo information has been supplied, want following. 1) end application start scheduled job. 2) take address , use bing's geocoding service obtain latitude , longitude. 3) update resource bing's returned latitude , longitude. 4) resource may queried , used other persons affiliated in many different ways. i have read bings tos, , it's subjective , not clear. the question is, potentially in violation of licensing, , or can upgrade license in compliance. you can geocode addresses , store results in database later display on bing maps. coordinate data can't used other mapping providers. long data being visualized on bing maps ok. if going scheduled job recommend using batch geocoding service: http://msdn.microsoft.com/en-us/library/ff701733.aspx http://rbrundritt.wordpress.com Bing Maps

Curious issues popped up

so have flat file pipeline using on "file" receive port. works fine (just checked again). have created http receive port want accept same file http post. when attempt post message, error in application event log says:  there failure executing receive pipeline: "project.biztalk.client.pipelines.client_iso_receive_pipeline, project.biztalk.client.pipelines, version=1.0.0.0, culture=neutral, publickeytoken=ce92e3186846ccb6" source: "unknown " receive port: "receiveclientiso" uri: "/isosubmit/btshttpreceive.dll?iso" reason: failed pipeline: project.biztalk.client.pipelines.client_iso_receive_pipeline, project.biztalk.client.pipelines, version=1.0.0.0, culture=neutral, publickeytoken=ce92e3186846ccb6. please verify pipeline strong name correct , pipeline assembly in gac. this exact same pipeline working on file port in same biztalk application. gives!? bts2010 it permissions issue.  make sure identity member of appropriate iis

Can SharePoint 2016 workflow trigger the Access apps?

is there way trigger access apps sharepoint workflow 2016? please advise thanks hi, per knowledge, cannot open access apps in workflow directly. as workaround, can create custom webservice data access apps, , can call webservice in workflow. here article how call webservice sharepoint workflow: https://msdn.microsoft.com/en-us/pnp_articles/call-web-services-from-sharepoint-workflows?f=255&mspperror=-2147217396 hope can you. best regards, andy wu please remember mark replies answers if help. if have feedback technet subscriber support, contact tnmff@microsoft.com SharePoint  ,  Apps for Office and SharePoint  >  Developing Apps for SharePoint 2013

WCF-NET TCP Error when processing X12 file

hi , is wcf-net tcp adapter processes xml file? trying send x12 message through send port wth passthrough  pipeline and net-tcp configuration, fails invalid root node error: (below) send port subscribing receive port has pass through on receive file adapter ( don't want edi receive when receiving file - convert xml) a message sent adapter "wcf-nettcp" on send port "port......._inputpassthru_snd" uri "net.tcp://localhost:808/totemp" suspended. error details: system.xml.xmlexception: data @ root level invalid. line 1, position 1.    @ system.xml.xmltextreaderimpl.throw(exception e)    @ system.xml.xmltextreaderimpl.throw(string res, string arg)    @ system.xml.xmltextreaderimpl.parserootlevelwhitespace()    @ system.xml.xmltextreaderimpl.parsedocumentcontent() the thing is, if you're using wcf net-tcp adapter, receive expecting soap formatted message on tcp.  net-tcp binding 'binary' because there no encoding layer, mes

how to add specific header and footer to flat file using SSIS 2008

Image
the ssis package need create file  headers, totals , adds status position 1 of records. header: "$$add id=entk0557 bid='ia   hbzac14hbzachrycorp' password='customer        ' %au hbzac14" added. $$add = static id=entk0557 = static bid='ia   hbzac14hbzachrycorp' = "hbzac14" company, "hbzachrycorp" company name password='customer        '  = static hbzac14 = company control totals: t010533343 000050 0002659604 000000 0000000000 t = totals 010533343 = account number 000050 = total records 0002659604 = total checks 000000 = tbd 0000000000 = tbd data file ------------------------------- declare @t as table ( [br-issue-void-ind] [char] ( 1 ) null, [br-acct-nbr] [varchar] ( 9 ) null, [filler1] [char] ( 1 ) null, [br-serial-nbr] [varchar] ( 8000 ) null, [br-check-amt] [varchar] ( 8000 ) null, [br-ck-issue-date] [varchar] ( 6 ) null )

Database Update Trigger on Linked server

hi, have database server (sql server 2000) in scottland , database server( sql server 2005 ) here in usa, have access both servers. my question is, want update database table here in sql server 2005 whenevr insert record in sql server 2000. have tried trigger linked server takes long update , our application timedout. have tried openquery() in trigger not make significant diffrence. there 10 columns needs updated in target database. thanks, masroor mh you may consider replication. trigger not ideal because if connectivity not available rollback in source. madhu mcitp, mcts, mcdba,mcp-- blog : http://experiencing-sql-server-2008.blogspot.com/ SQL Server  >  SQL Server Database Engine

How can i dock a System.Windows.Controls.Data.DataGrid column to the right ?

hello, have datagrid stretches horizontally full width of page. defines 3 datagridtemplatecolumns . first datagridtemplatecolumn has fixed width, have third column dock right, , middle column stretched , fill remaining space. basically, need implement similar behaviour dockpanel. can advise me on how achieve this? thank you ups - sorry   < data:datagrid x:name= "datagrid" sizechanged= "datagrid_sizechanged" > < data:datagrid.columns > < data:datagridtextcolumn header= "one" width= "100" /> < data:datagridtextcolumn header= "two" /> < data:datagridtextcolumn header= "three" width= "100" /> </ data:datagrid.columns > </ data:datagrid >    private void datagrid_sizechanged( object sender, sizechangedeventargs e) { double colomnsize = data

Cannot browse cubes from Management Studio

one of key business users maintains security company cannot browse cubes via sql management studio 2005 (installed on personal pc).  have full administrative rights on database , can browse data in excel fine.  test, had them log different installation of management studio , can browse fine.  after several reinstallations, problem persists following error. "error hresult e_fail has been returned call com component." anyone encounter similar scenario? advanced computing - business intelligence , information strategies hi, have tried set cube lanague us-english , deployed? open cube project in vistual studio , click browser tab cube, , select default lanauge us-english, deploy , try browse it. related topic: http://social.msdn.microsoft.com/forums/en-us/sqlanalysisservices/thread/fdc11e02-c50b-4094-aa62-6b7e39f2c949                      http://social.msdn.microsoft.com/forums/en-us/sqlanalysisservices/thread/58a07890-52f6-4adc-8cdd-bbfcb30e87c6 hope helpful

SmallBasic - New site in Russia

hi, all! i and frends russia , ukraine create new site, for people who interesting , programming on smallbasic. on site many information smallbasic and other interesting young programmers, planning allocate lesson , interesting game , program write young programmers russia , ukraine. can translate site on langage use link http://translate.google.com/translate?hl=ru&sl=ru&tl=en&u=http%3a%2f%2fwww.basic.rezoh.ru%2f . hope this site be interesting and also your may be authors in site. best regards, alex_2000 when make translation of xml don't save data.xml. save data.ru.xml sorry bad english Learning  >  Small Basic

windows OS operations for a DBA

can have list of windows os level operations dbas do? appreciate pointers. if mssql dba can dba tasks , windows admin take care of windows tasks per process. windows tasks... backing , restoring data changing group memberships checking event logs creating administrative scripts creating logon scripts creating user , group accounts deploying , upgrading software installing dhcp server installing domain controller managing applications on local computer managing applications remotely managing directory replication management tasks disks , volumes file , folder management managing network printers managing servers remotely managing services monitoring network traffic monitoring security-related events monitoring server performance resetting user passwords safeguarding system scheduling tasks setting dns setting tcp/ip setting user , group security dba's os tasks ( times & not ) if have access ad in production machines (

can any one tell me about programming using threads in dotnet

Image
hi, im new in dot net programming can 1 tell me programming using threads in dotnet thats extremely broad question. can bit more specific want know?   if open msdn documentation , enter "threading" or "system.threading" i'm sure can find articles start with.     .NET Framework  >  Common Language Runtime Internals and Architecture

This test passes in Visual Studio but fails in ChessBoard

Image
this test passes in visual studio: fails in chessboard: appears when run chessboard, baseclass.testinitialize() not called. bug? neil, chessboard doesn't know mstest , unittest attributes.  think of wrapper around mchess. have same issue mchess. need take care of proper initialization in chesstest.run method same result in mchess , chessboard. best, -- tom Archived Forums C-D  >  CHESS – Find and Reproduce Concurrency Heisenbugs

How do I insert cells using INSERT INTO & SET? (Excel oledb)

updating cell works:     oledbconnect = new system.data.oledb.oledbconnection("provider=microsoft.ace.oledb.12.0;data source=c:\\__\\test.xls;extended properties='excel 12.0 xml;hdr=no;'");     oledbconnect.open();     oledbcmd.connection = oledbconnect;     string stsheetname = "sheet2";     string sql;     sql = "update [" + stsheetname + "$a1:b1] set f1=1";     oledbcmd.commandtext = sql;     oledbcmd.executenonquery(); inserting cell not:     sql = "insert [" + stsheetname + "$a2:b2] set f1=2'";     oledbcmd.commandtext = sql;     oledbcmd.executenonquery(); i understand inserting add new row ... doesn't work either.     sql = "insert [" + stsheetname + "$] set f1=3";     oledbcmd.commandtext = sql;     oledbcmd.executenonquery(); bhs67 this works:     oledbcmd.commandtext = "select * [" + stsheetname + "$]";    

Export SSRS report using console application?

i saw following link, exports report in format specific location: http://forums.asp.net/t/1746293.aspx?how+to+write+ssrs+report+into+server+folder+as+excel+file the problem need automatically (ie. through batch or console application) since don't have access ssrs subscription because it's remote server. is there way of using code in link, not webform console app or windows app? thanks. vm i ended using article:  http://social.msdn.microsoft.com/forums/sqlserver/en-us/36c00995-5811-44ce-be14-7351096c6a90/reporting-services-auto-export-to-pdf-on-a-shared-location-with-dynamic-filename?forum=sqlreportingservices funny how people read title , post something. if it's help, it's meaningless unless read beyond title. vm Visual Studio Languages  ,  .NET Framework

Site Recovery + Key Vault

hi, there way replicate azure key vault region? use azure site recovery.  testing failover protected vm , looking @ boot diagnostics, stuck on screen says "plug in usb drive has bitlocker key" the contents of key vault replicated within region , secondary region @ least 150 miles away within same geography. https://docs.microsoft.com/en-us/azure/key-vault/key-vault-disaster-recovery-guidance similar query answered here - https://social.msdn.microsoft.com/forums/sqlserver/en-us/033973f1-075b-4467-b096-5e2861c79048/key-vault-cross-region-replication-for-disaster-recovery?forum=azurekeyvault ----------------------------------------------------------------------------------------------------------------------------------- click on "mark answer" on post helps , vote helpful, can beneficial other community members. Microsoft Azure  

Better way to trigger the Orchestration and also HAT

i have 2 biztalk different applications on sand box. bts, have update some info 1 sql proc updating 1 table. i have same procedure , table in different db sits on 1 sql instance. bts first applications have orchestration updationg proc. second bts application's orchestration couldn't triggered. forcefully i'm doing update proc through sendport & map. please guide me why orchestration not triggered. note: tested 2nd bts application in local box. no luck with orchestration trigger. thanks, raja hi, use visual studio set binding property of incoming orchestration port 'direct'. in both orchestrations. this make sure use direct binding , have both orchestrations receive message. hth, randal van splunteren - http://biztalkmessages.vansplunteren.net - please mark answered if answers question. BizTalk Server  > 

GetFunction​PointerFor​Delegate-> ​GetDelegate​ForFunction​Pointer = ​null

Image
ok, have bit of strange situation. in past have created managed plugin unmanaged c++ api. use c# reverse p/invoke unmanaged "host" can treat managed dll if has c entry points. part works fine. now onto next adventure, i'm creating managed host myself can load these unmanaged plugin dlls. in theory, managed dll exports these c functions should able loaded without issue, yet finding if this:   var callback = marshal.getfunctionpointerfordelegate(mydelegate); var del = marshal.getdelegateforfunctionpointer(callback, ...)   ...that del is null. in theory should not null, documentation states cannot (doesn't why specifically), , theory sort of security mechanism getdelegateforfunctionpointer call somehow checks see pointer did not originate managed method. is there other way call unmanaged function pointer managed code without resorting c++/cli? or there way force getdelegateforfunctionpointer ignore fact pointer originated managed method?   edit: