Posts

Showing posts from May, 2013

Get microsoft windows Locale ID and name

dear all, i see there locate id specified microsoft below link. http://msdn.microsoft.com/en-us/goglobal/bb964664 how can list of locate_id , country name using c#? can put in drop down list user select. thanks, hi, if found this: using system; using system.globalization; public class printclass {public static void main() { foreach (cultureinfo ci in cultureinfo.getcultures(culturetypes.allcultures)) { console.writeline(ci); } } } in  http://msdn.microsoft.com/en-us/goglobal/bb688121 regards, nico Visual Studio Languages  ,  .NET Framework  >  Visual C#

Indexer failing on Collection(Edm.String) field

we have index has been updating fine, until last night. part of index, have several multi-value fields index collection(edm.string) data type.  the indexer set using fieldmappings follows: (simplified version 1 of mappings)   "fieldmappings" : [            { "sourcefieldname" : "contributorids",         "mappingfunction" : { "name" : "jsonarraytostringcollection" } }        ] the incoming data looks this: ["p510061","p493835"] last night, started throwing errors such this, whenever try run indexer         "key": "s200003901",         "errormessage": "the data field 'contributorids' has invalid value. expected type 'collection(edm.string)'." nothing has changed in data or index setup, i'm @ loss why no longer works. using the 2015-02-28-preview version of api, can use fieldmappings. has changed feature? thanks on this, jim

Passing message streams from BT to external programs?

  how can access , pass bt message stream component? understand messages remain in stream unless there reason them loaded in parser. that's why i'm able successfuly pass type of file thru biztalk engine provided don't need modify (which case here). now, instead of routing receive via orchestration send ports redirect .net compnent processing. can , if how? are looking this? orchestration pass in message .net assembly , in assembly use retriveas method extract stream of data message.   http://blogs.msdn.com/darrenj/archive/2004/09/29/235719.aspx   thiago almeida http://connectedthoughts.wordpress.com/ BizTalk Server  >  BizTalk Server General

Unable to Start Debugging on the Web Server

all of sudden facing issue application. few days back, repaired vs2010 , installed sp1. worked few days again it's failing. please don't suggest manual attaching, don't wanna go now. working windows apps any solution mark answered , if solves question , vote if found helpful. rohit arora what web server? in order debug iis server have running vs admin , have admin privileges on iis box.  there can # of configuration problems can cause error , configuration issues can range vs through os , on iis.  in general recommended use iisx debug iis core designed debuggable.  debugging full iis needed in bizarre security scenarios , custom handlers. michael taylor - 7/20/2012 http://msmvps.com/blogs/p3net Archived Forums V  >  Visual C# IDE

BizTalk Server 2010. No mapping between account names and security IDs was done.

i configuring biztalk server 2010. i'm doing bts 2010 installation on single box (windows 7 enterprise ed + sp1 , sql server 2008 r2 + visual studio 2010) when tried configure biztalk runtime in config wizard, i'm getting "no mapping between account names , security ids done." error. nothing getting logged event viewer. i have gone through lot of discussion forums. not found proper answers. i have created local user administrator access , public , sysadmin access on sql server. i have tried domain user (domain\username) administrator access , public , sysadmin access on sql server. so i'm not sure how resolve issue. pointers great. deepak kamboj solution architect deepak doing single box deployment hoping have not created groups on domain configuring biztalk. if can try 1 suggestion in configuration wizard explicitly specified name of machine before group name groups created on machine, like: nameofmachine\nameofgroup if want use domain

Complex all 0s DFT function

i running cold             int n2 = 16 - 1;             (int f3 = 0; f3 <= 4; f3++)             {                 (int k = 0; k <= n2; k++)                 {                     f[f3] = f[f3] + (complex)dsp2.elementat(k) * complex.exp((-complex.imaginaryone * math.pi * 2d * f3) / 16d);                 }                } and getting : this dsp2: 0 7.07106781186547 10 7.07106781186548 1.22460635382238e-15 -7.07106781186547 -10 -7.07106781186548 -2.44921270764475e-15 7.07106781186547 10 7.07106781186548 3.67381906146713e-15 -7.07106781186548 -10 -7.07106781186548 -4.89842541528951e-15 this f[] f[0] = (-8.88178419700125e-15, 0)  f[1] = (-7.105427357601e-15, 2.66453525910038e-15) f[2] = (-3.5527136788005e-15, 5.32907051820075e-15)// should not 0  f[3] = (-8.88178419700125e-16, 7.105427357601e-15) f[4] = (-7.39557098644699e-31, 8.88178419700125e-15) did thing wrong ? now getting 0 or number close 0 why? i not s

Using Azure Mobile Services from a Portable Class Library for both Windows Phone 8 and Windows 8 App from a single code source.

Image
i've attempted create pcl (portable class library) handle data retrieval, saving, , processing.  in essence, have put viewmodel in separate project and have referenced in both phone 8 app , windows 8 app.  phone 8 app working getting error in windows 8 app "ioexception - specified registry key not exist. i able create new project azure mobile services site , works must have need. this code in viewmodel (pcl) and not error out if triggered phone 8 app. ed interestingly, update 3 did not fix somehow got working.  seems have order in things added solution or being built.  my "problem" solution had 4 projects, pcl, unittests, win8, , winphone8 projects.  keep in mind started phone project, created pcl , moved viewmodel components in , disabled in phone.  added existing win8 project (a basic helloworld app) , wired draw data pcl.  move between projects, setting each startup project. first clue, found if built , ran win8 app (without debugger) worked.

How to Track failed request in BAM Portal

i sending following xml file request file biztalk server , monitoring proper. <ns0:request>  <header>   <reqid>1003</reqid>   <orderdate>2013-04-21</orderdate>   <grandtotal>10001</grandtotal>   <userrole>admin</userrole>  </header>   <items>    <description>microsoft wireless desktop- keyboard , mouse 7000    </description>    <quantity>10</quantity>    <unitprice>106.99</unitprice>   </items>      </ns0:request> bam shows tracking data , count of request in aggregation. but here want track failed request.for have removed "</items>" tag .so xml becomes. <ns0:request>  <header>   <reqid>1003</reqid>   <orderdate>2013-04-21</orderdate>   <grandtotal>10001</grandtotal>   <userrole>admin</userrole>  </header>   <items>    <descr

how to call dotnetUsercontrol events in vb6.0 application?

here have problem have created 1 dotnet usercontrol , calling control in vb6.0.here 1 problem there. here have controls in dotnetcontrol textbox ,combobox etc.her want save control values in database table. possible clicking button located on dotnetusercontrl. here have save button on vb6.0 form calling dotnetusercontrl.here want save values in database clicking save button located on vb6.0 form. problem here not getting logic how can capture buttonclick event of on dotnet control , how can call that event from dotnetcontrol  in vb6.0 button click event.   please understand , please give suggestion .   thank's vsbabu when use .net usercontrol in vb6, .net usercontrol compiled com. expose events of usercontrol, need pack events exposed interface, applied interfacetypeattribute , apply interface control class. following sample.   code snippet [interfacetype(cominterfacetype.interfaceisidispatch)]     public interface imycontrolcomevents     {         [disp

Bing Ads API [WSDL] SOAP-ERROR: , Could not connect to host, failed to load external entity

hello, i using bing ads api library php since last few years, june 06 2016 getting errors soap. i haven't changed server configuration nor code after upgrading v9 last year. i not able connect bing ads api host randomly. i downloading reports daily , enters metrics db few of our clients. out of 12 2 or 3 request going through other giving errors like uncaught soapfault exception: [wsdl] soap-error: parsing wsdl: couldn't load 'https://api.bingads.microsoft.com/api/advertiser/reporting/v9/reportingservice.svc?singlewsdl' : failed load external entity "https://api.bingads.microsoft.com/api/advertiser/reporting/v9/reportingservice.svc?singlewsdl"  in /var/www/html/bingads/clientproxy.php:183 stack trace: #0 /var/www/html/bingads/clientproxy.php(183): soapclient->soapclient('https://api.bin...', array) #1 /var/www/html/bingads/clientproxy.php(66): bingads\proxy\clientproxy->getproxy('https://api.bin...') #2 \bingads\proxy\

Error deploying AS to AAS - seems to be something amis in the on premise data gateway setup

when trying deploy analysis services azure analysis services (one datasource on premise throiugh on premise data gateway) there persistent login failure , stops dployment invalid password error. here full error log. ideas? error message beow. ------ build started: project: dhpdw-reporting, configuration: development x86 ------ ------ deploy started: project: dhpdw-reporting, configuration: development x86 ------ cannot process database. reason: failed save modifications server. error returned: 'error code = 0xc1000012, external code = 0x00000000,  note:   technical details: rootactivityid: 83e19d77-6958-4938-92a1-f4dcb9d7c262 date (utc): 11/15/2017 10:19:31 pm the database operation cancelled because of earlier failure. an error occurred during on-premise gateway related activity. additional error details: dm_gwpipeline_gateway_datasourceaccesserror received error payload gateway service id 166235: async operation e7c7c62f-7d59-4ad6-928e-b0adb43d6479 faul

The advantages of expression blend?

if want use microsoft expression blend ui wpf ,what advantage compared visual studio 2008? thanks. blend focused on creating high quality ui. visual studio for wpf/silverlight focused on eventhandlers / coding. please this... http://social.expression.microsoft.com/forums/en-us/blend/thread/6d8ce219-22b3-437a-9648-44ca30789514/ also this...   http://blogs.msdn.com/expression/archive/2006/12/04/expression-blend-what-is-that.aspx http://en.wikipedia.org/wiki/microsoft_expression_blend prasad - www.beautifulmind.blog.co.in Expression  >  Expression Blend + SketchFlow

Bing Maps v8 migration: Cannot read property road of undefined Error when refresh page.

we using scala , angularjs. bing map load in head section (main.scala.html). <!-- bing maps library (must loaded in head section) --> < script type= "text/javascript" src= "https://www.bing.com/api/maps/mapcontrol" ></ script > map = new $window.microsoft.maps.map( document . getelementbyid ( 'mapdiv' ), { credentials : 'my credential' , maptypeid : microsoft.maps.maptypeid.road, animate : true , showdashboard : !$scope. readonly , useinertia : false , enablesearchlogo : false , enableclickablelogo : false , showcopyright : false }); when refresh map in mapcontroller.js. typeerror: cannot read property 'road' of undefined display the problem won't exist if load page normally. problem not exist in v7.  i highly recommend using callback option of map control. map control loads lot of dependency libraries asynchronously resulting in map load code being fired before map control script loaded. recomm

Host Integration Server Support on Itanium Processor Architectures?

is host integration server 2004, 2006 , 2009 beta supported on itanium processor architectures ? please let me know ashu hi ashu - no. 2004 supportability on 64-bit documented in kb article 885001:  885001 installation of host integration server 2004 in unsuccessful on windows 64-bit operating system http://support.microsoft.com/default.aspx?scid=kb;en-us;885001 the 2006 requirements listed @ http://www.microsoft.com/hiserver/evaluation/sysreqs/default.mspx . as 2009, can't confirm yet believe not include ia64 support. BizTalk Server  >  BizTalk Server General

Using transactions with Itineraries

hello, what best practises of using two-phase commits while using esb itineraries? my scenario involves invoking multiple services but it has or none commit. any suggestions appreciated. thanks. hi dahiya, using esb itiniteraries 2pc transactions highly depends on scenario. example had couple of scenarios required message being routed multiple endpoints inside transaction, receve , send ports 1 - way asynchronous. had use orchestration correlation, , compensation. though not want, in long run, mimicked 2pc process, not atomically. we had scenario utilized 2-way req/response port used wcf 2 way adapter and had message copied , routed multiple endpoints, esb waiting until endpoints succesfully received message , send ack back, @ point in time, esb send ack original caller (2-way req/response). 2pc atomic transation, , wasn't obvious how implement. had use itinierary cache on transmit correlation itineray steps, , verify message ack had appropiate promoted property 2-way adapter exp

Process.Start

  hello,   i see process.start command; way of figuring out when process ends?  there callback can't find?  have kick of series of processes in order, , need 1 end, next 1 begins, etc.   thanks. here 2 methods wrote in c#.net figure out when process ends. need know process name or @ least part of process name, depending on method use. hope helps.   /// <summary> /// waits process terminate or til timeout reached /// </summary> /// <param name="sprocessname"> the name of process (e.g. "notepad") </param> /// <param name="timeout"> timeout in seconds </param> /// <returns> true if process terminated; /// false if process not terminated in allotted time. </returns> public bool waitforprocesstoterminate( string sprocessname, int timeout) { process [] processlist; datetime dstarttime = datetime .now; datetime dcurrenttime = datetime .now; timespan span = dc

Customize Solution Explorer context menu

i'm being dense, can't find how customize context menu project items in solution explorer. it's got whole bunch of sql server stuff don't want in ("new mining structure", "new cube", mean, wtf?) which making necessary scroll "properties", , it's driving me mad. getting rid of these sql items appreciated. and, hello, people designed in first place? ever heard of sub-menus? seriously. mark, i posted walkthrough of customizing context menus in vs on blog bit ago ( http://blogs.msdn.com/ansonh/archive/2005/12/09/502020.aspx ).  should same steps in case, except you'll want choose project , solution context menus instead.  should able delete options don't want (you can drag them off of menu).  don't see same items on context menu - type of project creating (and right-clicking on)? btw - "alt-enter" take directly properties of item you're on. hope helps, anson

Convert a Decimal field to a String Value.

hello everyone, i writing application in c#, using sql database, sql table. 1 column is  "decimal (5,0) need convert string value. rows have 3 or 4 space number, no decimals....i need 5 space string zero's leading make 5 spaces. i know how use tostring method, trying figure out how add leading zero's thank can give dennis downey here c# code on decimal. decimal myvalue = 18.5m; myvalue.tostring().paddleft(5,'0'); edit: if want more specific can refer page:  standard numeric format strings for example, if wanted show currency or wanting append culture information number represented in correct format depending on culture. mark answer or vote helpful if find useful | igor Visual Studio Languages  ,  .NET Framework

837 - " Segment Not In Proper Sequence" errors - BizTalk 2010

hello, i using biz talk server 2010 , parsing edi documents through biz talk server. 4010 version 837 document. i getting below message.  when testing map on visual studio, not getting error. map creates xml fine in output. have set pipeline fine on biztalk adminstrator.  i have map, orchestration , pipeline 5010 version , works fine. 4010 version not working. getting below errors. any suggestions. error: 1 (segment level error) segmentid: ref position in ts: 26 7: segment not in proper sequence error: 3 (segment level error) segmentid: qty position in ts: 35 1: unrecognized segment id thanks, krishna krishna first, make sure using schemas latest cu biztalk server. next, you'll have @ edi directly , compare implementation guide. some possible causes either missing or segment right before ref. BizTalk Server  > 

Charts with aggregation type "Unique (%)" show wrong values

hi, discovered aggregation type "unique (%)" helpful many types of data. discovered percentages shown on right side cannot correct. tried attach images post failed. here examples on dropbox: standard view single bar if @ second item in lower char can see percentage far high compared length of bars. also, if select single bar seems show correct values. checked bars , found every bar value of 2nd item smaller total.   friedo hello friedo, i think percentages on right side is "unique %" calculated on whole period unless bar selected. "unique" on whole period can greater of single bar for category - values can different between bars in same category and 1 bar showing 10 unique users (day a) with other bar showing 10 unique users (day b) can result in 2 bars (unique on day a+b) having 15 distinct users 5 users repeating between bars (same users in day in day b). this maybe more dramatic larger amounts of bars. if 1 ha