Posts

Showing posts from July, 2014

Failure during cache refresh in component Commerce.PaymentMethodCache: Hresult: 0x80131509 The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly

getting error in commerce server 2007 starter site: failure during cache refresh in component commerce.paymentmethodcache: hresult: 0x80131509 requested performance counter not custom counter, has initialized readonly diegolo server error in '/' application. failure during cache refresh in component commerce.paymentmethodcache: hresult: 0x80131509 requested performance counter not custom counter, has initialized readonly. description: an unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code. exception details: system.invalidoperationexception: failure during cache refresh in component commerce.paymentmethodcache: hresult: 0x80131509 requested performance counter not custom counter, has initialized readonly. source error: an unhandled exception generated during execution of current web request. information regarding origin , location of exception can iden

How to calculate the tax at LineItem Level.

hi, i using third party service calculating tax. requirement calculate tax @ lineitem level. commerce server support tax calculation @ lineitem level. urgent appreciated. thanks, rambabu.d out of box commerce server doesn't support feature. other option have extend line item hold tax information , populdate information in basket pipeline , update sum of lineitem tax details order level tax column through total pipeline. hope helps. regards, -ravi kanth http://techblog.ravikanth.net (if post answers question - either mark post answer or vote being useful.) Commerce Server  >  Commerce Server 2007

The request failed with HTTP status 400: Bad Request.

hi, i trying use soapextension in web services processing of soap request , response befor serlize , deserilazation. facing challenges . first let see did implement soapextension.   1) have created class customsoapextension : soapextension  . below code   namespace soapextensionclasslibrary {   public class customsoapextension : soapextension { private stream oldstream; private stream newstream; public override object getinitializer( type servicetype) { return null ; // throw new exception("the method or operation not implemented."); } public override object getinitializer( logicalmethodinfo methodinfo, soapextensionattribute attribute) { testsoapextensionattribute lta = ( testsoapextensionattribute )attribute; // error traps removed clarity return new string [] { lta.paramname1, lta.paramname2 }; } public override void initialize( object initializer) { //return null;//throw new exception("the met

Exploring ActiveX Control (.ocx) from available binaries

hi, i have device controlled controller software interface. not have documentation regarding sdk available manual software.  this software has .dll files , .ocx files available in it's binaries folder.  i want develop custom application in c# communicate controller using available .ocx , .dll files. first of want know if task achievable. secondly, if achievable how? can .ocx files of me? not know start with. kindly, me in regards.  cheers, proof. proof if ocx files registered should able browse see them in various things inserting active x control in dialog in visual studio.   unfortunately, getting details of interfaces (even if doing simple idispatch) not obvious unless can find other documentation or code samples somewhere. Visual Studio Languages  ,  .NET Fra

upload cv

hi ev1 i want upload cv in doc format , show in datagirdview plz ev1 me how can that there control in vs 2008,vs2010 known file upload.use in datagridview you might need use method, findcontrol in datagridview find fileupload control.   if (fileupload1.hasfile)             {                 string fileext = system.io. path .getextension(fileupload1.filename);                 if (fileext == ".doc" )                 {                     s = mappath( "img" );                     s = s + "/" + fileupload1.filename;                     fileupload1.saveas(s);                 }                 else                 {                     response.write( "invalid upload file format" );                 } Visual Studio Languages  , 

BizTalk ESB 2.0 training

hi all, i need details on biztalk esb 2.0 training. need trainer can provide training on biztalk esb 2.0 biztalk professionals in india. please let me know details. -dheer hi, i think should consider options puralsight and/or quicklearn offering. regards, steef-jan wiggers mcts biztalk server http://soa-thoughts.blogspot.com/ if answers question please mark accordingly biztalk BizTalk Server  >  BizTalk ESB Toolkit

Will you ever support IComparable and IComparable<T>?

hello, i wonder whether add support because it's not possible following [contractabbreviator] public static void lessthan<t>(t upperbound) t : icomparable<t> { contract.ensures(contract.result<t>().compareto(upperbound) < 0); } although working fine. [contractabbreviator] public static void lessthan(int upperbound) { contract.ensures(contract.result<int>() < upperbound); } can save lot of work , in opinion lot nicer. regards, eyal shilony i'm wondering, technical limitation prevents supporting this? or design decision? i've searched high , low , found nothing please elaborate. regards, eyal shilony DevLabs  >  Code Contracts

Regarding Identifier in C#

why cannot write identifier name starts integer???? can 1 give me feedback.... latheesh k contact no:+91-9747369936 the reason why specific programming language such c# accepts or not accepts specific pattern of characters identifiers compiler needs able recognize identifiers when parsing source code. effect, designers of language create series of syntactical diagrams establish acceptable paths later implemented in coding of compiler. ideally, such paths need unambiguous initial phase of compilation ("parsing", versus second phase "syntactical analysis") able "tokenize" input , classify each element according syntactical role. if initial character of identifier allowed number, have tokens such instance "1d" represent either identifier or constant (1 decimal). perhaps real role of such token in cases dissambiguated @ later stage of compilation, not during initial parsing stage. compiling such language require compiler perform f

Non obstructive wait, using WaitForSingleObject.....

Image
darn clicked on wrong button question finished not posted hi all, i trying write c# app interface board have designed have used serialdatareceived event  to pick data issue need way of using asynchronous read waitforsingleobject  how can used in c# examples can find c++. what trying write app interface board via usb serial the issue using monitor can see data being sent , replies happening 2 crossing. complete string sent  , wait for  ok, > or period of time (.timeout)  i think waitforsingleobject might need example. public int waitfordata(int timeout) { // bool respond = false; //bool waitforprompt = false; stopwatch sw = stopwatch.startnew(); this.invoke(new methodinvoker(delegate() { replydata = rtbincoming.text; })); //if((replydata.contains(">")||(replydata.contains("ok")))) //

Handling ESB Toolkit multiple correlated (sequential) receives

we trying out esb toolkit. our scenario, need wrap orchestration multiple human interventions , hence multiple correlated receives, sequential and non-activateable. supported esbt without having break orchestration pieces? the esb toolkit leverages built in functioanlity of biztalk/publish subscribe architecture allow creation of new patterns formerly difficult or immpossible implement in biztalk. in order include orchestration in itinerary activateable receive shapes (which can hava filter expression) can included. there no way using toolkit have single orchestration target more 1 itienrary message. remember esb isn't replacement biztalk solutions. tool in toolbox. not problems lend esb solution. 1 of those. hope helps. callaway BizTalk Server  >  BizTalk ESB Toolkit

How to validate an empty array when reading Subkey names...

what trying accomplish make sure name "enabled" exists or not exist under hkcu\\software\\microsoft\\internet explorer\\tabbedbrowsing. but, stuck in reading it.                       the following   if (names3a != null) true never goes because there no names under "  foreach (string name in names3a) " stuck in part. thanks for help code: //tabs/disable tabbed browsing             console.writeline("");             registrykey subkey3 = key.opensubkey("software\\microsoft\\internet explorer", true);             registrykey subkey3a = key.opensubkey("software\\microsoft\\internet explorer\\tabbedbrowsing", true);             string[] names3 = subkey3.getsubkeynames();                      string yesenablednameexists = "";             string noenablednameexists = "";             if (subkey3a == null)             {                 // no found tabbedbrowsing                 console.writ

Disassembler weirdness

hi finally getting this.... i have created disassembling component using xmltextreader, streamwriter and virtualstream after solicitng advice several helpful folks here.  i've followed several examples blogs , component outputs want when test using pipeline.exe.  when use in actual pipeline on receive location, bombs message:   "a body part or part same name has been added message. message can have 1 body part , part names must unique. "   my goal able take message this, instance pipeline property used specify node split on "order" in case: <root someattribute='value' xmlns='value'> <order/> - bunch of subnodes <order/>- bunch of subnodes </root>   and create this: <root someattribute='value' xmlns='value'> <order/>- bunch of subnodes </root>   <root someattribute='value' xmlns='value'> <order/>- bunch of subnodes </root&

Biztalk Sharepoint Adapter on separate Sharepoint Server

i have read many topics putting sharepoint adapter web service on different server, still don't understand.  i have biztalk 2010 server , sharepoint foundation 2010 server - separate physical boxes.    biztalk server not have sharepoint installed because want use separate sharepoint server.  when install biztalk without sharepoint installed, don't see sharepoint adapter in biztalk administrator.   seems blogs say 2 different things: "no, don't need sharepoint on biztalk server" but say "you should see adapter in list after installing biztalk server."   do need install sharepoint on biztalk server though have separate sharepoint server? if answer yes, then:   am repeating same install of sharepoint adapter web service on both serversr?    need configure sharepoint on biztalk server or on sharepoint server?  have explain sharepoint side of sharepoint server administrators. not have permission servers. i feel dense this, documentation not explai

Why does promotion of properties potentially change the message content?

hi there if promote field element x of type string into property x of type decimal the xmltransmit send pipeline change value of message element x into serialized version of property x . if x=1.0 in message, property promoted x=1 expected. however, if message send via xmltransmit send pipeline send message have x=1 , , not expected x=1.0 why that? this behavior observed on biztalk server 2010, when ignoring compile time warning: warning bec1002: node "x" - data type of field or simple content record (xs:string) , promoted property 'ns0:x' (xs:decimal) should same or should map same clr type. thanks michael brandt lassen michael, this happening because of property demotion done xml assembler component in send pipeline. property demotion process of taking message context data , putting message.  please mark post answered question answer, , mark other helpful posts helpful, it'll other users visiting thread similar problem, regards

Custom Action App Launch Url

Image
hi, we have custom action in ribbon of pages library view. action calls a url of app, using following method javascript:launchapp(...). of today following message. due update of microsoft? kind regards vandeput follow me @spvandeput this can occur if did following: while registering app generate id , secret choose specific app domain a now app trying navigate ur doesn't match registered domain  make sure url matching registered domain use when generated appid , app secret either using appregnew.aspx or seller dashboard account. amr amr fouad head of consulting blog: http://sharepointtweaks.blogspot.com https://paper.li/amr_m_fouad/1401229504 twitter: @amr_m_fouad linkedin: https://www.linkedin.com/in/amrfouad SharePoint  ,  Apps for Office and SharePoint

int double datetime data type is class or structure

int double datetime data type class or structure in dotnet? how , how memory allocated data type? thanks actually in case of c# size of int , double defined, int int32 in c#, double double(double precison float, i.e.: 64-bit float) effort on making 32 64-bit porting of code easier. (c# designed when there 64-bit cpus were made there goal make transition possible) for datetime since it's struct, size dependent on implementation. size uint64 + size of it's method there's no restriction on whether new internal structure added in later versions. Visual Studio Languages  ,  .NET Framework  >  Visual C#

Change output encoding of webservices

hi   is there way (globalization encoding...) force output of webservice automatically converted in eg. utf-8?   context: input (parameters, database data, file-info) latin-1. need return result (business-objects) in utf-8 or latin-1, depending on parameter. catch here can not use conversion function in method itself. should be transparent needs usable in multiple projects.  possible, and, if yes, how can done? perhaps via new handler?   any appreciated.   hello chris   yes, still blocked on this. have little time @ moment keep looking latest experiment soap extensions. looks needs done. had in mind too?   the clients use soap response.     Archived Forums A-B  >  ASMX Web Services and XML Serialization

string.replace method

·            i have long list of special characters need replace ie replace  « &#171; . string.replace method best way handle this? hi, no, you're problem not replace characters, is encoding html/xml entities, e.g. http://unicode.e-workers.de/entities.php so consider using encoding method like http://msdn.microsoft.com/en-us/library/73z22y6h.aspx microsoft mvp office access https://mvp.support.microsoft.com/profile/stefan.hoffmann Visual Studio Languages  ,  .NET Framework  >  Visual C#

Custom Validator Component Issue

Image
i have following scenario: this schema: in studentdetails_name,i applied restriction follows: now if in studentdetails_name attribute,besides prakash , ravi  occurs,then want create errornode otherwise no error node created , put error in errorvalue attribute. i want use custom validator component , applied logic there. what should best approach ? prakash this exact same scenario addressed in previous thread. the better, , far common, way address in map. if have use pipeline component, not have validator component.  there's no difference in api pipeline stages other assembler , disassembler. there's nothing special or biztalk specific* implementing in c#.  can use xmlreader/writer, xmldocument or other .net api you'r comfortable with. validate document add error elements *other maybe retrieving schema through documentspec api. BizTalk Server

LA desinger vs LA code editor

hi, i wondering la designer can need or there still features have use code editor edit definition. thanks, ax tech today there still elements of functionality exposed in code-view, though our goal have feature parity in coming months.  an example of things being worked on in designer available in code-view: changing runafter property exception handling or parallel execution modifying retry policies action adding or modifying "spliton" property de-batch triggers adding operation options "singleruninstance" , "singleton" pattern those big ones top of mind, mentioned have work underway expose of these in designer (runafter should coming in next few weeks) Microsoft Azure  >  Azure Logic Apps

how to solve this problem?

hi there, i submitted last week problem till there. see first: http://social.msdn.microsoft.com/forums/en-us/csharpgeneral/thread/ff62549f-a153-4fa4-ab6c-726ed15d4d37 it works string (the sign removed pipe not comma now) not line fed text file. see code used follows: string tempfile = path.gettempfilename(); using (var sr = new streamreader (@"c:\oldfile.txt")) {    using (var sw = new streamwriter (tempfile))    {       string line;       while (line = sr.readline() != null)       {          string pattern = "(?<=(.*?\\|){4})(.*?\\|)";          regex pipetoremove = new regex(pattern);          string match = pipetoremove.match(line).value;          string switchwith = match.replace("|", " ");          line = line.replace(match, switchwith);          sw.writeline(line);       }       file.delete(oldfile.txt);       file.move(tempfile, oldfile.txt); now when run it gives error msg "process can

Lync MWI

dear all, is possible turn on mwi in lync phone (may polycom) programatically? i referrring scenario there no um, if need notify lync user something. in other words how turn mwi light on or off ( not mwi notify message of um) appreciate if can throw light. thanks nobin life gift. gift i managed done sending sip notify mwi message polycom phones. life gift. gift Lync Server  ,  Unified Communications  >  Microsoft Lync Server SDK and Office Communications Server SDK

A function as a generic (template) class variable

i having trouble finding documentation on how use func<typename> constructor.  perhaps wrong approach let me describe need. creating generic/template class stores function return type parameter.  whole purpose of class base class "data" classes used draw control based on large sets of data , simplify process of adding new data points in future.  data types simple variable types (bool, string, int, float, etc...) abstract class geodataset<datatype> : geodatasetbase { protected func<datatype> _datafunction; protected geodataset(string name, func<datatype> datafunction, resourcetype resourcetype, int menupriority) : base(name, resourcetype, menupriority) { _datafunction = datafunction; } } an example of how going use lets want color data points celsius temperature.  create "temperature" class uses float template argument this: public class somedatasourceclass { float gettemperature() { //some code here returns float } }

change text at another program

i type wrong in web browser.i thai sometime type english web browser forgot change lang , it wastes time retype it.i want create program fix ploblem example when type wrong need select @ text change lang prees hot key change text lang.but can't change text program. sorry english. thank. theblacksheep, i don't understand question. perhaps @ details of google's api. belive may able hook translator? cheers, nick "everything should made simple possible, not simpler" - einstein Visual Studio Languages  ,  .NET Framework  >  Visual C#

management studio only after expiration of evaluation license?

i have following problem. power users using sql server management studio 2008 develop queries. 1 of them had installed sql server evaluation edition research. now management studio can't start because of  evaluation period has expired.  on forums can find number of solutions on how upgrade, uninstall sql server 2008 r2 (i did already), , go on using management studio. know solution this? i tried uninstall sql server 2008, sql server 2008 r2, tried regedit solution , install again, installing sql server express (that acceptable ). thanks. gave right clue fix. uninstalling didn't work well, after repair did.   regards, rudolf van der heide  SQL Server  >  SQL Server Setup & Upgrade

Maximum throttling delay configuration

we're experiencing several issues memory.   our maximum throttling delay (both message publishing , message processing) set 500 ms, while default value 5 minutes.   the process memory usage threshold set 70 %.   couple questions:   - setting maximum throttling delay 500 ms pretty disabling it? - value should set to? 5 minutes seem extreme me, while 500 ms seems low.   thanks the setting depends on expected load , message sizes. if messages small 500 ms delay long time based on thoroughput (messages processed per second). example, edi messages of 1-2k or small payloads can need little teardown/cleanup time. larger messages 5 mb or greater take quite bit longer. throttle can biztalk manage message load. if have extremely variable message sizes harder predict reasonable throttle value.   here link to thinking throttle settings , role in biztalk performance: http://blogs.msdn.com/biztalkperformance/ .   thanks,   

Not able to Create LOB relay Target

Image
hi, i following tutorial 1 (using service bud eai , edi)   of step 3 (b) . completed steps previous to .      when add sql relay target in deployement tab doesnt accept values subtraget box .      tried providing full https path subtraget name , , specifiying subtraget name . message below indicates {missing input parameters}    please advise          thanks   sushil this how screen should - if adding target new relay - if adding target existing relay - have specifed necessary parameters ? rohit singh Microsoft Azure  >  Azure BizTalk Services

WSE/DIME - WSE352: The size of the record uuid:{g-u-i-d} exceed its limit

i've gotten dime attachments work, i'm running infamous 4096 limitation. how can download 20 meg file dime attachment? i've tried maxrequestlength setting    <messaging>       <maxrequestlength>-1</maxrequestlength>    </messaging> but doesn't have effect. actually, looking @ docs indicates me setting has effect uploads, rather downloads since this intended prevent denial of service attackers submitting large file uploads server. how download large files via dime attachments? thanks! - joe geretz - oops, bad. my mistake client config file. name of driver fetchfile mistakenly created fetchfile.config. once renamed app.config, able transfer large files. Archived Forums A-B  >  ASMX Web Services and XML Serialization

Is Commerce Server Caching implemented using the HTTP runtime cache, or something else (e.g. COM+ service)

hi, have website deployed across number of web servers , have inconsistent results when attempting refresh marketing caches (using refreshsitecache option in marketing manager).  we have assumed app pool recycle 'silver bullet' refreshing cache, not convinced case. implementation of cs caching using asp.net / iis runtime cache, or com+ service (i.e. independent of iis)? marketing cache not based on asp.net cache (only catalog cache use asp.net cache) refresh marketing cache there handler default can access @ following address: sitecacherefresh.axd?cachetorefresh=advertising sitecacherefresh.axd?cachetorefresh=discounts stelio Commerce Server  >  Commerce Server 2007

Storing Configuration in Sharepoint-hosted App

Image
using dialog box, users can configure sharepoint-hosted app. unfortunately, after page refresh it's gone... what recommended way store configuration data , how done using javascript. thanks, alex hi alex, please take @ article should store sharepoint solution’s configuration data? dmitry lightning tools check out our sharepoint tools , web parts | lightning tools blog | Мой Блог SharePoint  ,  Apps for Office and SharePoint  >  Developing Apps for SharePoint 2013

CLR20r3 error in WinForms application

we're having issue 1 particular application on 1 particular server. we've got dozens of installations of application have worked years, it's 1 customer's server can't execute it. application developed in vs2005 (we can't move 2010, 1 , assembly reference doesn't work in vs2008 or 2010 solutions , we've verified assembly's vendor case). server issues brand new server 2008 r2 current on system updates.   that being said: 1) can't capture unhandled exception @ either application or appdomain level...it crashes before involved , can't attach debuggers because process never starts 2) message we're getting is: description: stopped working problem signature: problem event name: clr20r3 problem signature 01: routedesigner.exe problem signature 02: 2.0.0.0 problem signature 03: 4dcd5df4 problem signature 04:

DataGridView DataGridViewComboBoxColumn Datasource not clearing

Image
hi, i have datagrid has about 2700 records in it. i'm looping each row can filter dropdown datasource on row row basis. works fine.  when close , re-open form not clearing memory form used. as far can tell line ((datagridviewcomboboxcell) this [cell.owningcolumn.index, i]).datasource = selectdatatable(filter.datasorce, filterstring) the select datatable code: datatable selectdatatable(datatable dt, string searchstring) { datatable returndt = dt.clone(); returndt.beginloaddata(); foreach (datarow dr in dt.select(searchstring)) { returndt.loaddatarow(dr.itemarray, loadoption.overwritechanges); } returndt.endloaddata(); return returndt; } im not sure if holding on datatable when doesnt need , if how clear them out. any :) hi, welocme msdn forum. posting here. could show what's data source?  , please make sure filterstring changed @ run time. have made same code projec