Posts

Showing posts from May, 2011

How to push (unbury) Browser Window to Top to Occlude other windows

i have c# code spawns process using process.start display contents of html file in default browser. there problem because new   (1) window remains occluded (buried) underneath other windows.   (2) new tab (inside browser) must top window. i tried bing/google searching not find hits "pop top" or "occluded window". here powershell script got powershell forum years ago , i've been using years display new web page. have translate c#? if so, have com handle instance of ie. what? how pop top? is there easier way translating powershell script c#? hope so! thanks siegried # find browser instance $browserset = (new-object -comobject shell.application).windows() | ? {$_.locationurl -like "http:*"} if($browserset -ne $null) { $browser=$browserset[0].application $browser.name $ieset = $browserset | ? {$_.name -like "windows internet explorer"} $ie = $ieset[0] }else{ # can create new instance of ie $ie = ne

File picked up by BizTalk FTP adapter before it is completly written

hi all, we losing data because of biztalk ftp adapter picks file before written host application, mentioned known issue in msdn. using biztalk 2010 http://msdn.microsoft.com/en-us/library/aa577610.aspx workaround suggesting make host application move file ftp folder local drive , not directly writing ftp folder. host app writting file, in real world dont have control on it. we thought of using c# check timestamp , rename file particular extension, biztalk ftp retrieve file extension only. in case need supply userid , password c# code connect ftp, client want use sso in c#. my questions i) i s there better way address problem ? or                                                                           ii) there way user id , password sso used in c# code ? have tried changing property "enable timestamp comparision = yes" on ftp adapter property. if in c# checking timestamp, ftp adapter can using property.

Data Binding and Thread Safety - Why doesn't this work?

attempting bind textbox error logging in windows forms. bind textbox this: this . operationeventhistorytextbox . databindings . add ( "text" , this . logger , "operationlog" ) logger object instance of logger class, contains following property. public string operationlog { { return this . operationlog ; } set { if ( this . operationlog != value ) { this . operationlog = value ; system . componentmodel . propertychangedeventhandler handler = this . propertychanged ; if ( handler != null ) { handler ( this , new system . componentmodel . propertychangedeventargs ( "operationlog" )); } } } } , error when calling  this.logger.logevent("message") . my  logevent  method contains following: public void logevent ( string msg ) { this . operationlog

SharePoint Hosted App - Visual Studio Workflow - Send email to a SP Group

Image
in sharepoint hosted app, workflow attached list send email users/ad groups in sharepoint group? if yes, should loop through users , users within ad group , send email individually users? or, can send 1 email sp group , users receive it? thanks in advance. hi, according post, understanding wanted send email users in group. per knowledge, not send email users directly in sharepoint group, should loop through users in group, send email individually users. to send email user in sharepoint hosted app, can have @ following article. http://hasan-nasir.blogspot.com/2013/06/send-email-in-sharepoint-hosted-app.html and there article sending emails sharepoint group, can refer it. http://the-sharepoint.blogspot.com/2012/01/sending-emails-to-sharepoint-group.html thanks & regards, jason jason guo technet community support SharePoint  , 

Fatal Execution Engine Error after COM+ call: Possible CLR bug

Image
hi,   we have just faced odd problem our .net 2.0 windows service application , haven't find solution far. unknown reason .net 2.0 framework crashes after com+ client-side call and our windows service fails start everytime because of that. the event log contains following error messages (two):   source: .net runtime description: .net runtime version 2.0.50727.832 - fatal execution engine error (7a0592a2) (80131506)   source: .net runtime 2.0 error description: faulting application serveritsekkeri.exe, version 1.0.0.0, stamp 479df12e, faulting module mscorwks.dll, version 2.0.50727.832, stamp 461f2e2a, debug? 0, fault address 0x000c63bf   the crashing has been detected on our customer server (windows server 2003 standard edition sp2 32 bit running on the xeon 5130 processor (multi-core)). odd reason our application works without problems on our test server (windows server 2003 standard edition sp2 32 bit running on celeron processor (single-core) or development m

Failure when trying to call stored proc using WCF-SQL

i have searched 2 days , seen nothing me out error. bit of weird issue. had db on local bts sql instance , worked fine. don't want db on server, moved dev sql server , getting error while running consume adapter service wizard. configuration of adapter: uri: mssql://cakeezsql13//unicasource?inboundid=myid binding properties: i have both polleddataavailable , polling statement, inboundoperationtype typedpolling note: if chose other type other typedpolling; i.e.: polling or notification, able pull wsdl down , generate files.. need use typed polling solution. error: an error has occurred while retrieving properties selected operation. retrieval of operation metadata has failed while building wsdl @ 'typedpolling'. stack trace: microsoft.servicemodel.channels.common.metadataexception: retrieval of operation metadata has failed while building wsdl @ 'typedpolling' ---> system.data.sqlclient.sqlexception: statement or function must executed in

How Do You set permission to be able to use the Live Tiles app on a Public Facing SharePoint - O365 Online Site?

Image
hello, i using live tile app on sharepoint o365 online site. works fantastically. the app here ... http://office.microsoft.com/en-us/store/results.aspx?qu=live+tile+sharepoint+app&ex=1&av=osu150 it works famously , can see fine if access https:// not render if accessing page http:// have set sharepoint group of visitors security able view still not show. know how open public facing view. step step instructions sharepoint online / o365 site deperately needed or guidance on can find appreciated! -- ... tone' http://equalityitsolutions.com hi, as question more relate office 365, suggest post office 365 forum, more , confirmed answers there. http://community.office365.com/en-us/forums/default.aspx best regards dennis guo technet community support SharePoint  ,  A

System.OutOfMemoryException while listing 1000 users

hi guys/boys n girls if ... have program (web app)... in listing 1000 users, while listing users... getting following error exception: system.outofmemoryexception message: exception of type 'system.outofmemoryexception' thrown. source: mscorlib    @ system.string.createstringfromencoding(byte* bytes, int32 bytelength, encoding encoding)    @ system.text.utf8encoding.getstring(byte[] bytes, int32 index, int32 count)    @ xxx.xxx.xxx.xxx.serialize(object o) 1. machine 2gb of ram. running program.(no other process taking these space !) 2. restarted machine, cleaned cache(everything possible) 3. can list 50 users error 500 ( program can list 5,10, 50, 500 users .. can't change this.) 4. if select 500 users in code, increase page size(grid size & displays it.) can possible reason ??? waiting .... the issue obvious: you're out of memory.  can't shed light on until more information.  think still need provide more detail.  maybe example of informa

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

hi , background: for our customer, having a  2 biztalk , 1 sql setup of environment. [biztalk server 2013 azure vms provisioned azure gallery, sql server 2012 azure vm ]. in current configuration, there no high availability or disaster recovery plan set. want implement dr , possibly ha configuration on these servers. i have few questions regarding same. please let me know thoughts on same. currently writing log files (log shipping files) mounted/attached drive same sql server. how move these log files across secondary site since shared storage not supported. in case of sql server crash, losing log files since reside on same server. please share options on how can move these periodically between datacenters. for hosts pop3, ftp need host clustering (which requires biztalk machines present on windows cluster traditionally), please let know how achieve in azure scenario thanks , regards, ujjwal devarapalli -ujjwal you can refer article, issue azure vm log sh

Orchestration convoys

hi all can 1 me? have flat file , have convert edi message. in 1 flat file message(inbound) have multiple header records. each header record has id. in 1 inbound flat file message there may many headers records same id or different ids. here want output same id headers 1 edi file. currenlty getting 1 edi(outbound) each header record. example input:one flat file.txt header="111", id="222" amount payable="6000",address="ny" header="111", id="333" amount payable="5500",address="dy" header="111", id="222" amount payable="6666",address="ky" required out should follows:(same id="222" should in 1 output file) output1.edi header="111", id="222" amount payable="6000",address="ny" header="111", id="222" amount payable="6666",address="k

WCF-SQL Adapter Polling: Records not being picked up

hi everyone, i have typedpolling wcf-sql receive location set grab db records database. in sp, check records 'new' , update status 'processing'. sp return these records, debatched in xmlpipeline , subscribed orchestration. in receive location, set poll statement (select count(*) table status = 'new'). has been tested working fine except in 1 of biztalk environments somehow records remain in new state , not being picked up. not sure going wrong here when 1 environment having issue. cheers hi all, i have set required property mentioned above. there set of symptoms i'm seeing. noticed sql timeout every 10 mins (probably due default 10 mins receivetimeout parameter in receive location binding). tried set max 24 days since recommended in msdn. i'm no longer seeing timeout , noticed records got picked up. monitor closely see if still records stuck , not picked up. another thing note have not applied latest cumulative patch biztalk. might bug

How to get Localization Working Properly

so i've added individual resource files <name>.de/en/es/fr/it.resx , tried load them; , yet seems absolutely nothing in terms of finding , spits out system.resource.missingmanifestresourceexception. could give me pointers on this? tried using msdn site pull example project me since microsoft's bullshit changes regarding phone dev/desktop dev severed old .zip downloads examples. i put here because, of resource stuff seems automatically handled correctly me, , yet isn't helping @ all.. hi, you're right, localization stuff handled correctly. understanding of how localization works, have on here: walkthrough: using resources localization asp.net  (msdn library) microsoft .net internationalization  (msdn go global development center) globalization , localization in .net (c-sharpcorner) if have specific questions, let know! hope helps. please mark best replies answers - twitter: @rickvdbosch - blog: http://bloggingabout.net/blogs/rick

how to change ip Addres

hi how change ip when connect internet? namely ,when open ie first ip example 192.168.0.2   , when second time open ie ip 192.168.56 please me thanks hi vahidbakhtiary, your question bit out-of-topic c# language forum, isn't it? , it's not 'general discussion' question. i'm not expert regarding home-networking, ip addresses seem belong local network, suppose behind kind of wlan router. so, obtain private/local , apparently dynamic ip addresses dhcp server, e.g. router. modifying configuration of computer , router (!) can assign static ip address machine instead of dynamic 1 obtained dhcp server ( here you'll find useful information). wizend Visual Studio Languages  ,  .NET Framework  > 

default parameters in the exported function..??

hi, the native dll have tried call c# has functions contain default parameters this /**********************code snippet1*******************************************************************************/ typedef struct {    unsigned char tagtype;    unsigned char antnum;    unsigned char ids[12]; }tagids; __declspec(dllexport) __stdcall short multitagidentify(handle hcom, unsigned int *count, tagids *value, unsigned char readeraddr=0xff); /**********************code snippet1******************************************************************************/ and function example; if(multitagidentify ( comhandle , &cnt,tagdata,0xff ) ==0)      {           for(i = 0; < cnt; i++)               outputdate(tagdata[i]);      } it said if want call exported function c#,i have use overloaded methods..i have tried code the overloaded function one..like this /**********************code snippet2****************************************************************************/ [structlayout(layoutki

Is there a way to stop a program when run from Expression

i trying learn expression , have found 1 large problem.  attempting non standard window run (this not problem).  since there no close icon click , have no code behind close it. it runs there no way in expression stop running of program (is there???).  make worse when closed expression program still running.  closed task manager seems strange. is there way close program expression (4)? thanks lloyd sheen no, blend has no debugger isn't attached other process. task manager or alt + f4 while program in foreground should work. Expression  >  Expression Blend + SketchFlow

Trim Leading and Trailing Zeros in BizTalk Map differs in BTS 2009 from 2006

hi, i migrated maps 2006 2009 , compared results. in 2006 if input "0.72" output in x12 file ".72". if pass same value in 2009 map, output in x12 file "0.72". can me modify map 2009 map work 2006 map. need write scripting functoid trim 0 @ front or there property can me so. thanks , regards, r.subha it requested feature /bug  to put 0  in front of decimal on edi talk had long ago . you can plop in 0 in front. it might better post question on biztalk edi forum happy biztalking BizTalk Server  >  BizTalk Server General

C# Webservice with SQL Server 2005 - XML

hi, what method of best performance pass xml through webservice string. information being queried upon on database (microsoft sql 2005) using stored procedure. i aware of using "for xml auto" in query hear performance pretty poor. make make non viable option since returning 100,000+ rows in cases. let me know think! thanks from msdn documentation: the auto mode queries useful if want generate simple hierarchies. however, use explicit mode xml , use path mode xml provide more control , flexibility in deciding shape of xml query result. "premature optimization root of evil." - knuth if provoked thought, please click green arrow if provoked aha! please click propose answer Visual Studio Languages  ,  .NET Framework

Recordset properties to Datatable properties

what c sharp equivalent logic to  visual basic 6.0 recordset properties. close, open, update, updatebatch, absoluteposition, find, delete, movefirst, movenext, movelast, in visual basic 6.0 using disconnected (datatable)? migrating visual basic 6.0 c sharp. moving datatables in c sharp. there tool can quick identify equivalent logic in c sharp. trying document logic below. visual basic 6.0 recordset properties close (not supported) closes recordset delete (not supported) deletes record or group of records open (not supported) opens database element gives access records in table, results of query, or saved recordset find(not supported) searches record in recordset satisfies specified criteria movefirst(not supported) moves record pointer first record movenext(not supported) moves record pointer next record movelast(not supported) moves record pointer last record update (not supported) saves changes made single record in recordset object updatebatch (not supported)

How to use settings to store array of strings to read and edit while application is running

hello, i have been learning c# past 2 weeks or so. trying write autocad plugin among other things, stores layer names 7 different lists. most people have suggested using .settings files save names. having trouble working properties namespace. the settings file have consists of 8 different settings. each array of strings. need to... check individual layer names against 8 lists see if present in of them if not present, ask user list should added , add it use lists create selection set in autocad based on object layers. (i have ask on autodesk forum last task) i don't how access lists. have seen people this.mycolor = properties.settings.default.someline. see properties namespace in program. my solution layerchanger. overall namespace solution. .settings file layerlists.settings, , there layerlist1.designer.cs, , settings1.cs. 1 of lists need access called layer0. if want set list local variable like string[] layer0 = this.properties.settings1.layer0 any appreciat

Connecting Azure Data Catalog to IBM InfoSphere

is there support links connect azure ibm infosphere? looking connector setups or assistance. thank you  hi andrew currently not have metadata connector infosphere, , position on our priorities list low enough don't have estimated dates share @ point. it possible use data catalog rest api populate catalog metadata extracted infosphere using apis. option i'm aware of available today. matthew - azure data catalog team Microsoft Azure  >  Azure Data Catalog

unconstructed message after loop

Image
im using a transform  shape in order map tow messages ,after loop done want send out(send2) the second  message  but im receiving  error use of unconstructed message  even dow i constructed the message in loop  ... thanks miki hi, you need add construct block above loop. inside construct block can use statement provided in message assignment shape. hth, randal van splunteren 2 x mvp biztalk server, mcts biztalk server my blog check out powershell provider biztalk please mark answered if answers question. BizTalk Server  >  BizTalk Server General

ecdsa Key Valut HSM

hi, looking hsm (azure key vault)  that can ecdsa secp256k1 (bitcoin uses same). expected timeframe feature, , there indication happen @ all? best, luka percic zeropass.io luka, thank reaching out. feature not imminent @ time. we keep evolving our roadmap feedback this. happy new year. sumedh Microsoft Azure  >  Azure Key Vault

Cannot delete or create a maintenance plan after installing SQL Server SP3

when try delete existing maintenance plan i receive message:  the connection manager "local server connection" not acquire connection because package offlinemode property true. when offlinemode property true connections cannot acquired. when try create new maintenance plan, receive message:  cannot show editor task. additional information: exception hrresult: 0xc0010014 (microsft.sqlserver.dtsruntimewrap). this occurred after trying apply sql2005 sp3 rtm.  had problem applying passive node.  opened call microsoft , removed active node possble owners in cluster.  applied patch passive node.  proceeded apply activie node after added active node back. i contacted microsoft , told needed complete method 1 of http://support.microsoft.com/kb/919224 this fixed problem.  SQL Server  >  SQL Serv

Column Stack chart with Lines

is possible create stck column chart series lines across bar?  i see in excel there such feature.   if want line chart start , end @ extreme ranges of axis, can manipulation in query , set minimum , maximum range values on axis using expressions.  i've posted example on blog , included in our new wrox press recipes book... http://www.sqlserverbiblog.com/2010/03/11/columnchartwithgoalthresholdline.aspx paul turley, mvp [hitachi consulting] sqlserverbiblog.com SQL Server  >  SQL Server Reporting Services, Power View

Program could not connect to own database through VPN client

good morning, we have sql server installed , configured and  client machines have installed accounting software , connect server. inside corporate network, clients machine run software , connect sql server well, but outside network, installed vpn clients on machines, machines access files corporate network without problem, only happen thing program installed on machine fail connected own server outside corporate network connect vpn. could how fix this? veasnayim hello, have setup firewall allow database access? configure windows firewall allow sql server access olaf helper [ blog ] [ xing ] [ mvp ] SQL Server  >  SQL Server Application and Multi-Server Management

Performance hit

i getting started developing reports within reporting services 2005 using vs 2005.  while developing reports, users access database through access, complains of database 'taking long time.'  wondering if there way prevent peformance hit.   thanks in advance,   mike mike hi mike, the first important thing identifying performance bottlenecks. more details, can refer to: http://blogs.msdn.com/b/robertbruckner/archive/2009/01/05/executionlog2-view.aspx 1)     timedataretrieval 2)     timeprocessing 3)     timerendering   after that, base on bottleneck, try improve performance: http://blogs.msdn.com/b/deanka/archive/2009/01/13/pet-peeve-slow-reports.aspx http://sqlcat.com/technicalnotes/archive/2009/01/14/reporting-services-performance-optimizations.aspx   hope helps, raymond raymond li - msft SQL Server  > 

stream connecting freezes browser

i've created silverlight mediaplayer streams video. users have complained while player connecting , buffering, browser freezes, i.e. scrollbar not work, links cannot clicked, etc. once connection made , buffering completes, browser becomes functional again them. strange thing that i have never seen issue in own browser. browser never freezes @ time in stream connection process. reported freeze issues occur ie7. that's i'm testing with. suggests me issue player version. has run issue of browser freezing? , there suggestions cause might be/ also, how 1 test see silverlight player version have installed. thanks suggestions! Silverlight  >  Hosting and Streaming with Silverlight

Professionally Save Data Grid View Changes To Database Table

hi prof ; thant's code below concern import data grid view , after finish changes click "btnsave" apply changes database table. error message :  the dataadapter.selectcommand property needs initialized.  on line     da.update(ds.tables["list"]); on click btnsave please help static oledbconnection con = new oledbconnection(@"provider=microsoft.ace.oledb.12.0;data source=e:\fullprojects\almogez\almogez\database\inventory.accdb"); public oledbcommand cmd = new oledbcommand (); public oledbdataadapter da = new oledbdataadapter (); public dataset ds = new dataset(); public void execquery(string query) { try { if (con.state == connectionstate.closed) { con.open(); oledbcommand cmd = new oledbcommand(query, con); oledbdataadapter da = new oledbdataadapter(cmd);

DllExports like DllImport in C#

i have question. why .net platform , c# not support dllexport attribute ? technically problems ? i know - there dllexport on nuget why microsoft not support attribute ? i cannot find answers this. best regards basicly because .net managed , using attributes exposes code unmanaged. a brief history  http://www.c-sharpcorner.com/uploadfile/jteeuwen/exportmanagedcodeasunmanaged11262005051206am/exportmanagedcodeasunmanaged.aspx article (under "discussion") explains problems using dllexport (c++) applies c# too. http://www.dotnetperls.com/dllimport .NET Framework  >  Common Language Runtime Internals and Architecture

EDI 997 Overdue Acks

in biztalk 2000/2002 there way expect 997 outbound edi within amount of minutes.  if 997 not received within timeframe acknowledgement status changed pending overdue.   in new biztalk 2006 edi adapter can run interchange/ack status report admin console see interchanges have status of "ack expected".  don't see status of "ack overdue".  there such status?  there way set expected 997 timeframe? mike, there no expected timeout property acks in r2. can filter out overdue acks in status reports query -   status = "ack accepted" and interchange date time < date   -samit       BizTalk Server  >  BizTalk Server EDI and AS2

APIs for permissioning Certificates to Users and Groups?

hello, i trying figure out how go taking certificate in local store , granting user choose permissions it? after looking around, know can handle local stores using cryptoapi doesn't seem cryptoapi makes allowances granting permission user/machine/process account...after finding actual certificate of interest local store. am wrong this? if methods can use? if not, know api can use grant permissions (to certificates of interest) groups or other user accounts administrator or iusr_ or iwam_? cheers. .NET Framework  >  Common Language Runtime Internals and Architecture

API for IE in .NET

hi do have api ie in .net hadles proxey . using webbrowser control problem is we need handle explicitly . when we run jsp page on the system has proxey, ie does not care proxey , navigates pages.but when we dowload files using webbrowser need to handle proxey settings. have api handles proxey own in .net? chetana in .net no api's classes inside namespaces. for .net access have system.net namespace http://msdn.microsoft.com/en-us/library/system.net.aspx success cor Visual Studio Languages  ,  .NET Framework  >  Visual C#