Posts

Showing posts from August, 2011

C# To Open Access Database

Image
visual studio 2015 , access 2013.  i in need of opening database in order read data tables.  my code below, keeps giving me error , never open database.  what need in order able open access database in order read data tables? error: (this error thrown when code hits line dd= db.open...) an unhandled exception of type 'system.runtime.interopservices.comexception' occurred in linktosql.exe additional information: unrecognized database format 'r:\test.accdb'. syntax: using system; using system.collections.generic; using system.data; using system.data.oledb; using system.io; using system.text; namespace linktosql { class program { static void main(string[] args) { openaccess(); } public static void openaccess() { string path = "r:\\test.accdb"; dao.database dd; dao.dbengine db = new dao.dbengine(); dd = db.opendatabase(path);

Service Fabric on premise licensing and GA?

hi, my team embark on rebuilding our existing saas platform using microservices architecture , pushing use azure service fabric on premise (we can't go public cloud due "reasons"). we're happy start off preview version in order raise comfort levels need know: what end licensing model be? - i'm guessing (hoping) free on windows server any indication of ga timeframes? stability seems issue @ moment - e.g. on dev environment on windows 10 seems blue screen @ least once day. updates imminent? thanks help cheers, isaac i have no idea on ga on-premise service fabric based on fact service fabric in azure free (you pay vms, storage, , ip address)  i think free on-premise well. i have not had blue screens on either of windows 10 machines since installing service fabric wonder if perhaps running different issue. sorry not more help gary a. bushey Microsoft Azure

How Can I Implement First come first serve scenario in Biztalk Server Orchestration.

  i have implement scenario sending request more 1 receipient/servers/parties , whoever respond first proceed flow (reamining orchestration flow))and rest responses should ignored?   i thinking use parallel shapes in order send , receive responses(using request response port) followed terminate shape in each branch. will listen work scenario  ? can provide me sample or solution ?? the solution might depend on whether list of recipients static or dynamic.  if static, can listen each responder individually.  if dynamic, you'd listen responder , process accordingly.  in dynamic scenario, orchestration send 1 message out , you'd have series of send ports subscribe on message , distribute target party.  you'd have single receive shape waiting first response.   one thing you'd have design how handle responses sent "late" responders.  if have no active subscriber, it'll end suspended message.  

BAM Multiple steps in a unique activity

Image
i want have unique activity in bam multiple steps. don't have orchestrations, it's ports filter. for each step have milestones see duration (start , end). my steps : receive -> transfer -> check -> validate -> result actually take interchangeid continuation part , create 4 continuation/continuationid : -           contreceived step 1    continuation on  port receiveportldpflatfile    continuationid on port  transferldpcontent (send) -           conttransfer step 2    continuation on port transferldpcontent (receive)    continuationid on port checkldpcontent (send) -           contcheck step 3    continuation on port checkldpcontent (receive)    continuationid on port   validateldpcontent (send) -           contvalidate step 4    continuation on port validateldpcontent (receive)    continuationid on port  ldpisokport (final send port) i put interchangeid in activityid field on ports. correct ? because few files create 2

Loop through multiple records

Image
hi, have mapping problem tried biztalk mapper unable loop through desired  output . if mode or g or e, then map outbound schema claim elements level after header generation.  for each inbound message there multiple claimdetails , in each claimdetails there can max of 3 claims.  in each of claims(max 3) if found true first records elements goes claim1 , subsequently till claim2 , claim3 record elements. input:  <ns0:response xmlns:ns0='http://schemas.response'>   <ns1:objectresponse xmlns:ns0="http://schemas.objects" xmlns:ns1="http://schemas.claimresponse" recordexist="n" format="ff" id="n" destination="cdd"> <ns1:claimsresponse> <ns1:batchno>12</ns1:batchno> <ns1:claimdetails> <ns1:claims> <ns1:no>1</ns1:no> <ns1:member>1</ns1:member> <ns1:services> <ns1:mode>e</ns1:mode> <ns1:state>ma</n

How do I transfer data from a Gridview on a webpage to another webpage?

okay, have gridview on asp web page. want able select hyperlinked column , have transfer me page in project. problem want text of particular hyperlink used in paramaterized query on new page opens up. meaning need take text information of particular hyperlink me new page. can help? thanks all, bryan the forums @ http://forums.asp.net better able answer ui questions. thanks. Archived Forums A-B  >  ASMX Web Services and XML Serialization

How to download and install Bing Translator Control ? The Steps Given in Documentation Does not work.

hi, i following steps mentioned @ :  http://msdn.microsoft.com/en-us/library/dn261775.aspx   using vs2012 {  left pane, select online , select visual studio gallery . in search box @ top of left pane, type microsoft bing translator , hit <enter> .  } but search not show options related bing translator ? can advice ? regards Bing  >  App Linking

Active Directory 'lastLogon' time conversion

i'm lost conversion active directory integer8 datetime format visual c# 2008... i've found examples on internet, i can't find suitable reference...  i've included iadstools , activeds... maybe i'm missing right namespace? using system; using system.data; using system.directoryservices; using microsoft.sqlserver.dts.pipeline.wrapper; using microsoft.sqlserver.dts.runtime.wrapper; ... if (result.properties[ "lastlogon" ] != null && result.properties[ "lastlogon" ].count > 0) { long int64value = ( long )(( uint )result.properties[ "lastlogon" ].lowpart + ((( long )result.properties[ "lastlogon" ].highpart) << 32)); output0buffer.lastlogon = datetime.fromfiletimeutc(int64value); } ...

ObservableCollection Contains doesnt work correctly

hi guys! when press button find throwexeption if use after start findbycode find work correctly public icommand findbycode { { return new relaycommand(() => { libmaterials = new observablecollection<libmaterial>( _repo._context.libmaterial.where(material => material.code.contains(code))); }); } } public icommand find { { return new relaycommand(() => { ////loadbook(); ////code = ""; if (findgenre == null) { libmaterials = new observablecollection<libmaterial>( libmaterials

BizTalk Adapter Pack- SAP Connection issue

when try connect sap through consumer adapter service vs 2005 ide. getting following error, when try browse through send/receive operations error occurred while browsing lob system. adapter message: details: errorcode=rfc_sys_exception. errorgroup=rfc_error_system_failure. saperrormessage=this function module not active or contains no code..  adaptererrormessage=error returned rfccallreceiveex while calling rfc: rfc_read_table.. when checked sap guys, said adapter trying read rfc_read_table, module not exist. further said a s per sap note 758278, has been renamed/moved yrfc_read_table recommended sap is there can configure in sap adapter metadata from yrfc_read_table module. there sample using imetadataretrievalcontract at  http://msdn.microsoft.com/en-us/library/cc185184.aspx this uses oracle, similar sap. firstly, ignore path calls browse() , search() functions. we're interested in getmetadata() function. getmetadata() requires passing in arry of metadatar

request of recommendation on scale/sizing of application

hi,experts, going build web application (deploy iis) provide 1 simple web api, use .net 4.0 or .net 4.5 web api 2.2 (mvc structure), response restful json, no authentication. api: request: 3 integer parameters. response: list of objects (a object contains 2 integers) logic simple, result object list application variable dictionary result. application variable dictionary filled @ application start. no update once application started. major requirement: support 20000 concurrent users. 2 suggestion of server specification: e.g. cpu, no of threads.  how many gb ram? need load balancing? thank much! delaynomore. anyone can help? delaynomore. Architecture  >  Architecture General

sqlreceive port for tutorial using biztalk sql adaapter to receive event data from the rfidsink database

  hi ... i using "using biztalk sql adaapter receive event data rfidsink database" tutorial..for reason when import bindings.xml file not receive port or receive location...can tell me how manually create??     right click sql receive port create new one create new receive location select transport type = sql click configure: connection string: click on [...] give sql instance name, user name , password. choose database want target sqlcommand: must having deployed project schema (generated using add generated items). click on [...] select deployed project , schema. once done this, document element root element name , document target namespace automatically gets populated (from present in generated schema).   done. :-) BizTalk Server  >  BizTalk Server Adapters

App Insight API How to parse unit from days to seconds

i use app insight api track app's behavior. have trouble method  + ( void )trackpageview:( nsstring *)pagename duration:( long )duration; when set duration param 30 maybe. data in app insight 30days. happened within 30 seconds. how can parse unit days seconds? from api docs, duration in case time in milliseconds.  suspect api being on zealous , making assumption small details. see here api reference: http://cocoadocs.org/docsets/applicationinsights/1.0-beta.6/classes/msaitelemetrymanager.html#//api/name/trackpageview: you may want post app insights forum instead - more able assist you. Visual Studio Development  ,  Visual Studio Team Foundation Server  > 

changed schema caused errors

my 837 process working great until tried split transaction sets. i changed schemas from single mulitple 837 , getting following error. i remapped correctly deleted old application , tried deploying several times no change. thought had party deleted , still same error. old schemas worked , without party. appreciated. error encountered during parsing. x12 transaction set id '' contained in functional group id '4489', in interchange id '000004489', sender id '111111111 ', receiver id '111111111 ' being suspended following errors: error: 1 (miscellaneous error) 6: missing or invalid or duplicate transaction set identifier 'http://schemas.microsoft.com/edi/x12#x12_00401_837_p' for more information, see , support center @ http://go.microsoft.com/fwlink/events.asp. hi,     after deleting party should restart host instance getting rid of unwanted cache errors. , restart host instance after deploying schema well. error getting need

Where can i find a fix list of Reportviewer.msi (version 11.0.3436.0)?

Image
where can find fix list of reportviewer.msi (version 11.0.3436.0)?  i downloaded microsoft.com/en-us/download/details.aspx?id=35747 but cannot find list of fixes? can tell me can find those? regards, jan van den berg. hi jan, generally, search update fixes list in microsoft support site: http://www.microsoft.com/en-us/search/supportresults.aspx?q=report%20viewer%20redistributable based on search, couldn’t find kb describes details update fixes list reportviewer.msi (version 11.0.3436.0). per understanding, maybe product team haven’t publish article this. suggest update latest version of control. thank understanding. regards, katherine xiong katherine xiong technet community support SQL Server  >  SQL Server Reporting Services, Power View

Is there a way to programmatically expose "Excluded Changes"?

i haven't seen documentation online other stackoverflow question in uses reflection, there way list/check excluded changes in visual studio via pendingchange or else? hi miguel,   thanks post. to excluded changes using tfs api, please refer example in article: https://mhusseini.wordpress.com/2014/10/11/tfs-get-and-modify-included-and-excluded-pending-changes-in-visual-studio/ . using system; using system.collections.generic; using system.reflection; using microsoft.teamfoundation.controls; using microsoft.teamfoundation.controls.wpf.teamexplorer; using microsoft.teamfoundation.versioncontrol.client; namespace prettyflyforanamespace { public class pendingchangesinclusion { private readonly action<ilist<pendingchange>> _includechanges; private readonly action<ilist<pendingchange>> _excludechanges; private readonly func<ilist<pendingchange>> _getincludedchanges; private readonly func<ilist&l

Why won't xquery recognize this data?

below snippet untyped xml in an xml field of my sql server 2005 db:   < asdioutput xmlns = http://namespace1 xmlns:nxce = http://namespace2 xmlns:mmd = http://namespace3 xmlns:nxcm = " namespace4 " xmlns:xsi = " http://www.w3.org/2001/xmlschema " timestamp = " 2007-05-03t17:55:02.0z " > < asdimessage source = " kzbw " sourcetimestamp = " 2007-05-03t17:54:38.0z " trigger = " fa " > < managementinformation > < nxcm:qualifiedid > < nxce:id > chq6340 </ nxce:id > < nxce:computerid > < nxce:idnumber > 191 </ nxce:idnumber > </ nxce:computerid > </ nxcm:qualifiedid > </ managementinformation > </asdimessage> </asdioutput>   code block select [xmldata] . query ( ' declare namespace nxce="http://namespace2"; //nxce:id' ) as result from feeddata     i results.

Need to create multiple Team Build Definitions fast via a script or ?

hi, when spin hotfix branch or feature branch need able create team builds support testing. our product made of multiple (~15) components, each 1 needs its own team build. so, need a way script or copy team build definitions don't have clog through the tfs ui create 15 or more team builds for every feature and hot fix branch create. we using tfs 2010 , new wf 4.0 based team build definitions. can suggest solution or best practice? thanks!  bob hardister hi bob, you can use api create new build definition. check out blog post on topic: http://geekswithblogs.net/jakob/archive/2010/04/26/creating-a-build-definition-using-the-tfs-2010-api.aspx hope helps /jakob   blog: http://geekswithblogs.net/jakob twitter: http://twitter.com/osirisjakob Archived Forums V  >  Team Founda

Problem in Consuming .Net 1.1 Web service wsdl in java application

Image
i have developed web service in .net framework 1.1 has 4 overloaded methods , 1 normal method string return type. overloaded method in web service, have gave messagename make unique in soap message. these overloaded methods changed complex type when gave messagename attribute in web method found in wsdl.   the problem   when invoked web service in .net client application, works fine. when try consume wsdl  through wsdl2java axis tool, supporting core java classes complex type are not created.   also, tried host web service in 2 servers has windows 2000 server os. in server1, wsdl looks   <? xml version="1.0" encoding="utf-8" ?> - < wsdl efinitions xmlns:http =" http://schemas.xmlsoap.org/wsdl/http/ " xmlns oap =" http://schemas.xmlsoap.org/wsdl/soap/ " xmlns =" http://www.w3.org/2001/xmlschema " xmlns oapenc =" http://schemas.xmlsoap.org/soap/encoding/ " xmlns:tns = http://accountservice

connection between visual C# 2010 and express sql server express 2008

Image
i have installed visual c# 2010 express in pc , want make connection windows server 2008 sql server 2008 express installed, when make connection , try add data source vc# 2010 giving me option add connection .mdf file. how can locate mdf file on remote server . approach ok client server architecture? hi sfaraz , it seems want connect rermote sql server. if can check below threads(articles) may you. connect remote sql server http://social.msdn.microsoft.com/forums/br/csharplanguage/thread/0a2005dd-ef14-4d27-9b26-e8966dcd491a connecting remote sql server in visual studio c# http://social.msdn.microsoft.com/forums/en-us/adodotnetdataproviders/thread/5b42b677-2910-417d-962c-0845b485e3ea how to: configure express accept remote connections http://blogs.msdn.com/b/sqlexpress/archive/2005/05/05/415084.aspx have nice day. bob shen [msft] msdn community support | feedback us Visual Studio Languag

Unable to execute Click Event after Importing DataTable to Excel

hi, i have use code on import datatable  excel, when download or cancel download. click event wont run. how can solve error? stringwriter writer = null; htmltextwriter writer2 = null; contentbinder ccontentbinder = new contentbinder(); string filename = "usage , role report"; datagrid exportgrid = new datagrid(); datatable dtexcel = new datatable(); //dtexcel = ccontentbinder.createdatatable(); dtexcel = ccontentbinder.getlastlogindate(); exportgrid.datasource = dtexcel; exportgrid.databind(); exportgrid.font.name = "arial"; exportgrid.font.size = new fontunit("9pt"); exportgrid.headerstyle.font.bold = true; exportgrid.headerstyle.font.size = new fontunit("10pt"); exportgrid.headerstyle.backcolor = color.lightgray; exportgrid.borde

Receiving 997 with segment terminator of hex value 15

  i have multiple trading partners uses character has hex value of 15 on 997 messages.  messages suspended becasue of structural error.  has else had problem?  using biztalk server 2006 r2.   jason how configured?  have party edi properties party interchange receiver/isa segment definition set segment terminator set hex 15 , suffix set none?   BizTalk Server  >  BizTalk Server EDI and AS2

How to get the system tray notifications of a process from another process? (C#)

hi, i starting exe (its system tray application) in separate process , need read of system tray notifications process. based on these notifications, need tasks in main process. how can this? thanks in advance. prasad do own code of system tray application? maybe can write notifications windows event log (or somewhere else) , read events other process ( windows event log ). can listen windows event log. if specific event occurs, can perform operations. robin sedlaczek (https://twitter.com/robinsedlaczek, http://robinsedlaczek.wordpress.com) @ microsoft forums (wave developments / berlin microsoft connection - https://www.facebook.com/theberlinmicrosoftconnection) Visual Studio Languages  ,  .NET Framework  > 

Diagnostics.Process cannot be disposed completely

i've had strange issue couple of weeks , still can't find solution. i'm working on test tool in c# (using .net 3.5) our application runs on remote computer. able update source , start vs build , run our program while monitoring state , send information server. scheduled tasks done python scripts, testtool responsible maintaining list of scripts , run them using system.diagnostics.process. python scripts can start other programs (svn.exe, devenv.exe). tool creates system.runtime.remoting.channels.tcp.tcpchannel instance through communicates monitoring clients runs e.g. on local computer. the strange issue when close testtool , has run python script launched process (svn or vs). though call kill() , dispose() on running process , python stop, other process started py python keeps running , thats thing me, there's no problem that. problem occurs when want restart testtool sais can't create tcpchannel because there exist 1 port. can manage restart after killin

AI 2.1.0 Beta4

hi, we have web role , worker role in our application , wanted see ai appear in diagnostic tool. we have found start service in local debug not appear default. if first start web role in debug outside of service ais appear in diagnostic tool. if restart debug session service ai start appearing. is bug? thanks, iain diagnostics tool uses visual studio debug output window , visualize ai events. whenever start debug session , direct debug output visual studio output window - you'll see events in diagnostics tool. case when start debug session (press f5) visual studio. if it's not case - may bug. if can share details on how start local debug don't see events - helpful. Visual Studio Development  ,  Visual Studio Team Foundation Server

CollectionBase or List<> ?

what's difference between 1. class firmcollection : list<firm>     {     } and 2. class firmcollection : collectionbase     {     } i can't understand advantage of each method. well both provide typed collections.  1 abstract (collectionbase) means need implement of classes functionality , other not, list<> comes ready use.  unless need customize of collection functionality go list<> it's ready use.  .NET Framework  >  Common Language Runtime Internals and Architecture

Azure Stack TP2 Error Step 60.120.124

1. used windows' account [azurestack\administrator] run script [installazurestackpoc.ps1] 2. used aad user account global administrator rights login in when running installazurestackpoc.ps1 script. 3. command below. .\installazurestackpoc.ps1 -adminpassword $adminpass -aadadmincredential $aadcred -natipv4subnet 10.10.10.0/24 -natipv4address 10.10.10.3 -natipv4defaultgateway 10.10.10.1 stopped on step 60.120.124 always. found [todo] comment in file [c:\clouddeployment\configuration\roles\fabric\aad\role.xml] likes below: ------------------------------   <publicinfo>     <logs>       <filelog location="$env:systemdrive\logs\"/>     </logs>     <!-- todo: customer needs change match aad configuration -->     <!--name corresponds domain name in old azure management portal, https://manage.windowsazure.com  -->     <!--id corresponds https://login.microsoftonline.com/{id}/federationmetadata/2007-06/federat