Posts

Showing posts from June, 2014

issue with Namespace when trying to convert

issue namespace when trying convert . says  line problem xmlns:myr="clr-namespace:playcards" any ideas ? heres code  <window x:class= "playcards.cardgame" xmlns= "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x= "http://schemas.microsoft.com/winfx/2006/xaml" xmlns:myr= "clr-namespace:playcards" title= "playcards" minheight= "300" minwidth= "200" > <window.resources> <myr:convertdoublestring x:key= "dblstrconverter" /> </window.resources> <grid> <grid.rowdefinitions> <rowdefinition height= "*" /> <rowdefinition height= "3*" /> </grid.rowdefinitions> <grid.columndefinitions> <columndefinition width= "*" ></columndefinition> <columndefiniti

Application Insights Extension on WebApp in Azure stops recording data

i have managed install application insights mywebapp -> tools -> performance monitoring azure portal. works initially, requests recorded , analytics pages start lighting up. whatever reason(s), extensions periodically stops showing data. 1. after running load test on app requests stop showing in application insights pages (if check if ai detects extension working, shows is). 2. after arbitrary length of time (over night) requests  stop showing in application insights pages next day. way solve delete extension webapp , re-add application insights performance monitoring tab. a) there bug im not aware of method? have ftp'd our webapp , there no significant logs identifying problem, while application insights page shows extension installed correctl.y b) perhaps have install applications on visual studio or other method? downside of is, when want use arm templates automatically create ai instances dynamically, seems enabling ai through method less automated

XSLT- Header and LineItems Sequence Order in 1 field together

hi below xslt, want sendernumber appended sequenceordernumber , sequence number should same in complete header , lineitems. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/xsl/transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/biztalk/2003/var" xmlns:s0="http://msdntestbiztalk.test2.inputschin" xmlns:ns0="http://msdntestbiztalk.test2.flatfileschemaout" exclude-result-prefixes="msxsl var s0" version="1.0"> <xsl:output omit-xml-declaration="yes" method="xml" version="1.0"/> <xsl:key name="sendernum" match="//details" use="sendernumber"/> <xsl:key name="key1" match="//details" use="concat(sendernumber,'|',sequencenumber)"/> <xsl:template match="/"> <xsl:apply-templates select="/s0:root"/> </xsl:template> <xsl:te

NoteBoard webpart not showing comments of all users

Image
hi all, in our portal, using social comment control for comments corresponding pages. code snippet given below, < noteboard : socialcommentcontrol runat ="server" id ="socialcommentwebpart1" chrometype ="none"></ noteboard : socialcommentcontrol > its showing logged in user comments. but, not showing other users comments .  please let know way fix issue. thanks in advance. regards, karthick babu t g t g karthick babu hi, according description, understanding want show other users comments in noteboard web part. as result, if search service has not crawled web page, socialcommentsmanager returns current user’s comments on page , not return comments added other users. if don’t have sharepoint search in environment, not able show comments users in custom web part. also, if search incremental crawl scheduled every night (which happens of cases), when new page created, users not able see other’s comments until

Where is the Async CTP installed? NOT in My Documents!

hi, i've tried installing async ctp refresh. have windows 7, vs ultimate 2010, , installation seems succeed. however, afterwards, don't see "microsoft visual studio" directory in "my documents".  note have 3 directories in documents library, if makes difference.    any tips?   thanks, jay found fix here: http://social.msdn.microsoft.com/forums/en-us/async/thread/e63a036d-f79d-4904-8e88-97d4dd152cb1   Archived Forums V  >  Visual Studio Async CTP

Biztalk WCF Consuming Wizard

hi, on biztalk 2013. need invoke third party soap webservice. third party has given wsdl files. need make request , service sends response us. the third party has given set of xsds , wsdls. these complex set of schemas given there references  xsd , on. news is  schemas validate. the third party has provided sample requests: cut pasted top part of 1 such sample: <soapenv:envelope xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/ " xmlns:tran=" http://www.starstandards.org/webservices/2009/transport " xmlns:ns=" http://www.starstandard.org/star/5 " xmlns:ns1=" http://www.openapplications.org/oagis/9 ">    <soapenv:header>     <payloadmanifest xmlns=" http://www.starstandards.org/webservices/2009/transport ">       <manifest contentid="content0" namespaceuri=" http://www.starstandards.org/star " element="processorder"/>     </payloadmanifest>   &

PRODUCTION: Invalid Credentials

i'm getting 'invalid credentials' error. verified customer id correct, developer token correct, , can new access token + refresh token using curl. can't figure out wrong. $ yii_env=prod yii kw/bing-list-accounts operation failed following faults: trackingid: 5692baa7-28ad-4ac9-916b-4b05b94252aa adapierror code: 105 error code: invalidcredentials message: authentication failed. either supplied credentials invalid or account inactive 2016-10-21 11:41:46 [-][-][-][error][application] last soap request/response: https://clientcenter.api.bingads.microsoft.com/api/customermanagement/v9/customermanagementservice.svc?singlewsdl <?xml version="1.0" encoding="utf-8"?> <soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:ns1="https://bingads.microsoft.com/customer/v9"> <soap-env:header> <ns1:custom

HTTP 401 Unautorised Error when calling webservice from Class Library in Biztalk Solution

hi all.. i have problem in calling webservice class library in biztalk solution . actually when used default credentials working fine when user other account gives error  the request failed http status 401: unauthorized   actually updating infopath form library, wrote webservice access form library. so give authorisation gave full control 2nd user account on form library , in inetmgr gave permissions 2nd user account. still not working. pls guide me in correct direction thanks  sandeep hi sandeep, you can gather logs of iis server that hosts web service check account used call ws , fails pass authentication. make sure account requires proper ntfs file system permission on web service directory. the recent log files can found in \system32\logfiles\w3svc[n]\ directory (n here site id can viewed in right panel clicking web sites folder in iis). thanks, wenjun please remember mark replies answers if , unmark them if provide no help.

Question for SDK 2013

in sdk 2010, if i add contactlist in wpf, can have same list (in view) hava in client 2010. my question is, why in sdk 2013, when add contactlist in wpf, can not same list (view) have in client 2013. what want metro button like send msg, make call. sdk, when click on contact, same thing sdk 2010. i can't sent img... sorry. let me try , see if understand question - when right-click contact in lync wpf appliction, icons on menu different when same thing in lync 2013 client. looks menu icons in wpf application same lync 2010 sdk icons. i think answer lync 2013 sdk libraries not built windows 8. built versions of windows previous windows 8. tie older os determines graphic elements like. guessing... Lync Server  ,  Unified Communications

Biztalk Adapter Pack - WCF Custom - OracleDB - UDT Assembly Error

hi there :-) we have problem biztalk adapter pack 2.0 : two independent biztalk 2010 applications on same biztalk 2010 server each receives flat file xml input. xml-schema directly send wcf-custom two-way request-response port communicates oracle database data retrieval , data returned request-response port in biztalk. the response xml_schema send flat file send port in biztalk writes xml-data xml-file on disk. to decode response oracle database, request-response port use udt assembly generated during development. udt assembly has been placed in c:\program files\biztalk server 2010 server\ folder , named. the udt assembly has been specified in userassemlyloadpath property on binding specification on oracle send/receive port in biztalk. userassembliesloadpath="c:\program files\microsoft biztalk server 2010\biztalkfredag_udt.dll" each of applications works fine, when 1 of applications activated incoming xml-file , data nicely received oracle , written ou

Biztalk Basic

  please me answering 1.      does biztalk support publisher/subscriber mode inbuilt or need coding? 2.   what trading partner module in biztalk server. 1. biztalk support publisher/subscriber mode inbuilt or need coding? biztalk indeed built upon publish/subscribe architecture. heart of biztalk, , not need coding it, need serious code avoid :-)  2. trading partner module in biztalk server. the tpm hardlly ever used. biztalk 2009 r2 have enhancements in area. see https://connect.microsoft.com/site/sitehome.aspx?siteid=65  which states "enhaned trading partner management (tmp)". eliasen, representing himself , not company works for. three times mvp , 3 times mcts in biztalk. blog: http://blog.eliasen.dk BizTalk Server  >  BizTalk Server General

Does Application Insights work on premises?

we have seen couple of variants of question: “does application insights work on premises?” for on premises hosted applications application insights work.  example of application insight channel9 videos (except for: setting application insights monitoring azure cloud services ) shot on premises applications.  sometimes people intend question mean: “does application insights work on premises team foundation servers?” companies can adopt visual studio online services on own terms while still keeping other alm activities tfs on-premises. application insights visualization i.e. reports, alerts, dashboards etc. cloud based; cloud based load testing application insights can work hand , hand on premises team foundation servers.  example during launch application demoed built on 1 team foundation instance application insights doing monitoring on separate team foundation service instance. all application insights visual studio integration things intellitrace, memory

create directory based on zip files itself

Image
dear all, please tell me how create directory based on zip file. example: i have 2 zip files. abc.zip , cde.zip. each of zip files, contains same  files. abc.zip --contains--> 1.text,2.dat,3.txt cde.zip --contains--> 1.text,2.dat,3.txt those zip files @ c:\\zipfolder , have c:\\unzipfolder have prepare accept unzip folder, final result want : from: c:\\zipfolder\abc.zip,cde.zip to be:   c:\\unzipfolder\abc\1.text,2.dat,3.txt and c:\\unzipfolder\cde\1.text,2.dat,3.txt thank help. best  regards, bambang hi bambang you can use  zipfile class add reference   system.io.compression.filesystem then use following code snippet: using system; using system.io.compression; namespace consoleapplication { class program { static void main(string[] args) { string zipfile = @"c:\zipfolder\abc.zip"; //this statement target directory based on input zip file name without extension .zip

Unexpected result when attempting to query multiple items in DocumentDB

hi, we have documents stored follows: { "id": "100045", "foo": { "name": "xyz", "description": "abc", "id": 100045, }, "_rid": "yxxxxxx==", "_ts": 1412706606, "_self": "xxx00", "_attachments": "attachments/" } notice actual content stored under "foo" property. we have following stored procedure accepts array of ids , returns matching documents: function (ids) { var context = getcontext(); var collection = context.getcollection(); var response = context.getresponse(); var selflink = collection.getselflink(); if (!ids || ids.length === 0) { return response.setbody([]); } var = 0; var result = []; // begin execution runquery(i++);

Generic method to run sql from files

i have program should work against multiple dbs. dbs don't have capability of sp. because of want store sql commands inside text files. now, want create generic method read text files , run them want method stupid possible because want reduce compilation code since program sent end user. don't want program decide params send since change cause compilation. initial solution put tokens inside text files match names of properties of object i'll send generic method , using reflection i'll replace token exists in specific file. think solution, , have other ideas? tsahi bar generally db access should done via self-written abstraction layer. wheter db supports stored procedures or not irrelevant then. write 1 implementation per dbms, based on same interface or abstract base class. actuall programm uses defined in said interface/base class, wich of dbms adapters instantiated irreleavant. makes swapping out 1 dbms class other single line change. here example of d

BizTalk BRE value in a MAP

hi: what best way use biztalk bre value in map? background: we have biztalk 2013 r2 , bre in-house , using them. have few key value pair in bre use mapping specific nodes in few maps. looking forward hint. regards, toraj toraj toraj.khavari@a-dec.com hi toraj, not design can create .net helper class execute business rules , use it's methods map via scripting functoid (external .net assembly). be simpler call bre separately , use output of bre , initial schema multiple sources in map destination schema. can use value source input bre values available in map. refer: can call business rule in map? rachit please mark answer or vote helpful if reply does BizTalk Server  >  BizTalk Server General

Acces BizTalk Powershell Provider drive on Remote machine

this environment  system :biztalk server 2010,sql server 2008 r2,powershell provider biztalk(1.0.2.4). system b:powershell provider biztalk(1.0.2.4) , no biztalk server , sql server installed . i have created new ps drive , configured on system a. i have execute powershell script on system b not able access drive created on system , not able create new drive through script on system b. script:        enter-pssession -computername dev1 -configurationname microsoft.powershell32        function biztalk: { set-location biztalk: }        function biztalk:\ { set-location biztalk:\ }        write-host "loading powershell provider biztalk snap-in "        $initializedefaultbtsdrive = $false;                add-pssnapin -name biztalkfactory.powershell.extensions        new-psdrive -name bts -psprovider biztalk -root "bts:\" -instance dev1-database biztalkmgmtdb -scope global      set-location -path bts:          set-location

delete

delete hi, use bellow code check shotcut. #region checkforshortcut /// <summary> /// create application reference file on users desktop /// if not have 1 when program loaded. /// if not debugging in visual studio check application reference /// if (!debug) /// checkforshortcut(); /// endif /// </summary> static void checkforshortcut() { if (applicationdeployment.isnetworkdeployed) { applicationdeployment ad = applicationdeployment.currentdeployment; if (ad.isfirstrun) { assembly code = assembly.getexecutingassembly(); string company = string.empty; string productname = string.empty; if (attribute.isdefined(code, typeof(assemblycompanyattribute))) { assemblycompanyattribute ascompany =

[REST API] ResourceLink for creating a database in authorization string

hi, what resourcelink value used in rest api authorization header hashed token when creating database? fyi: have read through https://docs.microsoft.com/en-us/rest/api/documentdb/access-control-on-documentdb-resources?redirectedfrom=msdn  https://docs.microsoft.com/en-us/rest/api/documentdb/databases  thanks, rahber rahber @rahber since no 1 answered it. answer anyone's reference. yes it's supposed empty database creation.  rahber @rahber Microsoft Azure  >  Azure Cosmos DB

how to return many sub query in a select

Image
hi i have subqury below select count(weigh),sum(weigh) mytable id=120 , status=0 select count(weigh),sum(weigh) mytable id=120 , status=2 select count(weigh),sum(weigh) mytable id=120 , status=3 i want return them in query please me thanks  hi vahidbakhtiary, please refer following codes: declare @mytable table ( id int, weigh int, [status] int ) insert @mytable (id,weigh,[status]) values (120,1,0) insert @mytable (id,weigh,[status]) values (120,2,0) insert @mytable (id,weigh,[status]) values (120,1,2) insert @mytable (id,weigh,[status]) values (120,2,2) insert @mytable (id,weigh,[status]) values (120,1,3) insert @mytable (id,weigh,[status]) values (120,2,3) select count(weigh) counts,sum(weigh) sums,[status] @mytable id=120 group [status] allen li technet community support SQL Server  > 

Cannot use sn.exe or sign assemblies since installing FW3.5 SP1

since installing fw3.5 sp1, can no longer sign assemblies or generate new keypairs. here's happens: d:\temp>sn -k newkeypair.snk microsoft (r) .net framework strong name utility  version 3.5.30729.1 copyright (c) microsoft corporation.  rights reserved. failed generate strong name key pair -- access denied. i similar error when trying sign assembly generated keypair. i'm using xp under account admin rights. have full rights hard drive. working before installed fw 3.5 sp1. thanks joe p.s. possible uninstall fw3.5 sp1? c# 3.0 in nutshell - in print now: www.albahari.com/nutshell/ ok - else problem, i've found solution. somehow, rights folder:   all users\application data\microsoft\crypto\rsa\machinekeys were revoked during installation of sp1. to restore them: 1. folder options | view -> disable "use simple file sharing" 2. navigate c:\documents , settings\all users\application data\microsoft\crypto\rsa\machinekeys 3. right-click, choose security, , check &

Find out number of records in Flat File

hello i have flat file, contains more 100,000 records. using custom receive pipeline flat file assembler split 1 records. these flat file -> receive port (flat file assembler ->custom pipeline components) -> receive -> construct message ->....other process. question is 1)find out total number of records in flat file 2)find out the, last item (or last record flat file) in orchestration process i want execute custom reports (.net code) once flat file process done. don't know find out system done flat file thanks mak interchangesequencenumber, bts.lastinterchangemessage - both giving null in pipeline execute method? yeah, i've noticed to.  assumed they're set messaging agent (where pipelines run) when batch committed.  they're never added context. so, they're available downstream, in orchestration, send pipeline, etc. BizTalk Server

Please provide a component based Azure Stack installation

currently, azure stack provided monolithic installation , limited 1 physical host. nice have loose components make azure stack separate installation instructions each can build environment ourselves. provides 2 advantages: more insight in actual solution more flexibility in deployment i imagine there reasons start out monolithic install , there plans make more flexible, please make 1 of top priorities limits people able install azure stack. thanks! azure stack poc designed quick evaluation put deployment simplicity first , added constraints. not fully reflect deployment process final product. comments on modular deployment noted. thanks, fan Microsoft Azure  ,  Development  > 

Biztalk dynamic Email - unable to set the values

hi all, i trying send dynamic email value config file , incoming message. to=getto(msg); from=getfrom(msg); body=getbody(msg); and trying set these values email below,but unable set value , throwing vague error.  email xml doc type email.to=to; email.from=from; email.body=body; any suggestions thanks in advance hi, you can use code below: msgenvelope(smtp.subject) = <email subject>; msgenvelope(smtp.from) = <sender email>; msgenvelope(smtp.smtphost) = <email host name>"; // default value msgenvelope(smtp.smtpauthenticate) = 0; // set message text included in email msgenvelope(smtp.emailbodytext) = <text in body of email>; // important - required if emailbodytext set msgenvelope(smtp.emailbodytextcharset) = "utf-8"; // value of '1' means include message body part email attachment msgenvelope(smtp.messagepartsattachments) = 1;   msgenvelope.emailbodystring = new microsoft.xlangs.customfor

New DNS Record Set with Lab VM

i give lab users easier access newly created lab vms via short link. have existing dns zone created short url organization owns , can add new or cname record sets url when needed, prefer automate record set creation when new vm created in devtest labs.  is possible automate adding record set existing dns zone new lab vm created? i've considered creating artifact runs powershell script on vm creation, seems require including kind of authentication method within script. there other options? hello, before solution, have few questions understand problem. can please let know why want use dns zone? why don't want users create vms in lab , access vms using azure portal? there issue? regards raman raman kumar Microsoft Azure  >  Azure DevTest Labs

"AccessViolationException" when calling to "Marshal.PtrToStringAuto"

i used external methods resolve mx records of several domains, but, i'm getting "system.accessviolationexception" not caught try catch block! i'm working code last couple of years, possible update caused error. strange 1 server out of 12 throws error. here code: private static list< string > _getmxrecords( string domain) { if (environment.osversion.platform != platformid.win32nt) return null ; list< string > results = new list< string >(); intptr ptr1 = intptr.zero; intptr ptr2 = intptr.zero; int errorcode = dnsquery( ref domain, querytypes.dns_type_mx, queryoptions.dns_query_bypass_cache, 0, ref ptr1, 0); if (errorcode != 0) return null ; mxrecord recmx; for (ptr2 = ptr1; !ptr2.equals(intptr.zero); ptr2 = recmx.pnext) { recmx = (mxrecord)marshal.ptrtostructure(ptr2, typeof (mxrecord)); string record = marshal.ptrtostringaut

Delete Directory if Emtpy or Only contains .txt

i using syntax move .xlsx or .xls file 1 master directory.  how can delete directory if file left .txt file or directory empty?  note not want delete c:\files\ directory sub-directories.  so example if move spreadsheet directory c:\files\rodger\ , after move directory is  1) empty 2) has .txt in it i want delete directory. also, new c# syntax, proper way move files 1 directory another?  if happens notice may over-looking i'd love tips on improvement gurus! string path = @"c:\files\"; string newpath = @"c:\master\files\"; var spreadsheet = directory.enumeratefiles(path, "*.xlsx", searchoption.alldirectories); parallel.foreach(spreadsheet, ssheet => { string sssssheet = path.getfilename(ssheet); if (file.exists(newpath + "\\" + sssssheet)) { } else { file.move(ssheet, newpath + "\\" + sssssheet); } }); 1 additional thought if file c:\files\abcd\abcd.xlsx exists in c:\master\files\abcd.xlsx -- still want del

How to add Textbox value to dynamic sql , so that value appears in Dataset

i brand new c# , bare me. trying add textbox field section of dynamic sql. but every time add field errors. correct code add field in dataset? i have posted full dynamic sql used dataset . how pull texboxsearchtext , rename reporttype, can map dataset? public string getsummarysql() { string summarysql = "select " + "rtrim(data.cust_hier_d.cust_amid_lvl_4_id) cust_amid_lvl_4_id, " + "case when data.cust_hier_d.cust_amid_lvl_4_nm null '(null)' else rtrim(data.cust_hier_d.cust_amid_lvl_4_nm) end cust_amid_lvl_4_nm, " + "rtrim(data.cust_hier_d.cust_amid_lvl_2_id) cust_amid_lvl_2_id, " + "case when data.cust_hier_d.cust_amid_lvl_2_nm null '(null)' else rtrim(data.cust_hier_d.cust_amid_lvl_2_nm) end cust_amid_lvl_2_nm, " + "case when data.prod_ln_d.ext_seg_nm null '(null)' else rtrim(data.prod_ln_d.ext_seg_nm) end ext_seg_nm, &qu