Posts

Showing posts from March, 2014

Detect CommerceCache refresh

i'm wondering if there way detect when commercecache last refreshed using commercecontext object?  reason because outputcaching on our site , want able sync refreshes of commerce cache. thanks, daniel inherit catalog web service when import happens can clear cache. refresh cache catalog or nothing. can manually drop cache values uses asp.net mean have write custom code cache refresh.   once inherited web service override import method right before calling base import remember date time stamp right after import search products updated before based on time stamp. good luck, hope points in right direction. -max Commerce Server  >  Commerce Server 2007

Microsoft Ads are too small.

i want display ads on application. however, microsoft ads don't work properly. they appear, it's size fraction of available size. can't post links yet, there similar thread in forum.  i included ad duplex ads , they're displayed properly. problem affects microsoft ads. if it's of help, dimensions of ad mediator control 320 width, , 50 height. tried supported sizes without luck. can me this? thanks! am presuming seeing above on high res win10 phones. fix in next update goes out end of next week, , don't need update app. Windows and Windows phone apps  >  AdSDK Integration & Ad Mediation

Forcing minOccurs = "1"

hello, i'm working on web service , have objects need returned.  i've set "isnullable = false" objects still show minoccurs = "0" when viewing wsdl.  there else can try or know may doing wrong? thanks, stephanie when need complete control on structure of xml return, should return xmlelement or xmldocument, can create no interference .net. john saunders use file->new project create web service projects use wcf new web service development, instead of old asmx or obsolete wse Archived Forums A-B  >  ASMX Web Services and XML Serialization

Resuming messages vs. orchestrations

we shop new biztalk 2006 r2.  our first application seems simple not behaving expected in circumstances. the orchestration simple.  message received; transformation takes place; message sent external web services; log record written.  our problem occurs when external web service not reply.  biztalk makes 3 attempts , suspends orchestration/message (as should). in admin console see suspended message , suspended orchestration.  both marked resumable.  attempts resume orchestration fail.  can resume message.  however, resuming message seems complete send; log record not written.  once resumed message completes, have terminate suspended orchestration rid of it. 1.  observation, appears resuming message completes activity (shape) suspended.  true? 2.  relationship between suspended message , suspended orchestration?  had thought resuming orchestration pick suspended message.  not seem case. i have looked around on web; in forum; , in books have.  can't find explains above behavior.  or

How can i make that the variable t will be added ot textBox each time once when it should be when itsi nside the while loop ?

private void backgroundworker1_dowork(object sender, doworkeventargs e) { backgroundworker worker = sender backgroundworker; list<string> tempnamesandtexts = new list<string>(); string tempdownload = downloadcontent(); getprofilenames(tempdownload); gettextfromprofile(tempdownload); (int = 0; < names.count; i++) { tempnamesandtexts.add(names[i] + " " + texts[i]); } if (invokerequired) { begininvoke(new action(() => tempnamesandtexts.foreach(item => textbox1.appendtext(item + environment.newline)))); } while (true) { namesandtexts = new list<string>(); if ((worker.cancellationpending == true)) { e.cancel = true; break;

Ribbon Customization on Document Set Manage tab not working

hello, i developing sharepoint 2013 site migration of 2010 site. mean i'm rewriting scratch use sharepoint apps in 2013.  i have app shows custom ribbon buttons on document set home page. buttons appear should , work fine until modify document set home page. modification involves removing "document set contents" web part , replacing "list view" web part (there reasons not germane discussion).  anyway, once web parts changed, custom ribbon buttons appear on manage tab, grayed out, can never clicked.  below "elements.xml" showing customization. appreciated.  by way, worked fine in sharepoint 2010. document set home page set in same manner. undoubtedly new app model has changed something, can't figure out what.  thanks doug h. -------------------------------------------------------------------------- elements.xml: <?xml version="1.0" encoding="utf-8"?> <elements xmlns="http://schemas.microsoft.

Type forwarding - determine whether a type has been moved to another assembly

hi everybody, i'm trying out type forwarding. here ist , works. original code: // typeforwardtest.exe type t = typeof(old.myclass); console.writeline("{0}", t.assembly); // old.dll public class myclass { } // output old, version=1.0.0.0, culture=neutral, publickeytoken=null now move type 'old.myclass' assembly: // old.dll // add reference new.dll // remove declaration of myclass [assembly: typeforwardedto(typeof(old.myclass))] // new.dll public class myclass { } // output @new, version=1.0.0.0, culture=neutral, publickeytoken=null ok, works fine, but: can somehow find out in typeforwardtest.exe myclass has been moved , declared in old.dll? best regards laurin okay big question: why want figure out @ runtime in wich assembly class resides? defining assemblies done @ compile time. , time matter again when start programm. @ runtime code should not ever care get's it's class from. possible answer: other

Sequential Convoy and Long running transaction: Messages still referenced

Image
hi everyone<o:p></o:p> being biztalk developer since 2006, thing still stumps me.<o:p></o:p> i have sequential convoy singleton orchestration debatches messages using rcvpipeline. orchestration needed in a fifo scenario. in order execute rcvpipeline within orchestration need encapsulate within atomic transaction scope. <o:p></o:p> in order have atomic scope orchestration needs long running. have encapsulated atomic transaction within scope (using long running transactions) have exception handling. <o:p></o:p> everything works fine except 1 major detail: when orchestration executes messages still in messagebox. can click on orchestration instance in mgmt console , @ message! tracking disabled receive port orchestration. still, messages not cleaned up. <o:p></o:p> i have set dta-purge 1 hour , works fine, messages still in orchestration.<o:p></o:p> my guess long running transactions not comp

how to create CSV

hi im using code  error show in line (stringbuilder sb = new stringbuilder(); ) can u plz give me stringbuilder class             response.clear();             response.buffer = true ;             response.addheader( "content-disposition" ,              "attachment;filename=gridviewexport.csv" );             response.charset = "" ;             response.contenttype = "application/text" ;             dgporesult.allowpaging = false ;             dgporesult.databind();             stringbuilder sb = new stringbuilder();                        for ( int k = 0; k < dgporesult.columns.count; k++)             {                 //add separator                 sb.append(dgporesult.columns[k].headertext + ',' );             }             //append new line             sb.append( "\r\n" );      

Failure to setup continuous deployment between a VSTS account and Azure Function App using a deployment template

i have permissions , successful in linking function app repo via new portal, works without hitch. i'm using resource of type sourcecontrols "ismanualintegration" set false. use repository url token detailed here : https://channel9.msdn.com/blogs/microsoft-integration/build-and-deploy-serverless-part-2 i have tested repository url , can use clone git locally, no prompt or of kind.  this error get: { "code": "badrequest" }, { "errorentity": { "code": "badrequest", "message": "repository 'updatesitesourcecontrol' operation failed system.invalidoperationexception: vso getrepository: cannot find repository https://tokenname:tokenvalue@cityshob.visualstudio.com/citymind/cityzen%20app/_git/cityzen\r\n @ microsoft.web.hosting.sourcecontrols.vsoproxy.<getrepository>d__49.movenext()\r\n--- end of stack trace previous location exception thrown ---\r\n @

Error using Microsoft Dynamics Ax 2009 adapter in BizTalk 2009

hi! i have installed biztalk server 2009 on windows 7 server, , microsoft dynamics ax 2009 biztalk adapter. aos located on server biztalk server. when there documents in aif queue manager, following error in biztalk, , status of documents failed: event type: error event source: microsoft dynamics ax 2009 adapter event category: none event id: 0 date:  04.05.2010 time:  09:20:47 user:  n/a computer: skbiz01.skeidar.no description: following error occurred in 'receivebatch.submitfailure':  exception hresult: 0xc0c01620 -------------------------------------------------------------------------- product version : 5.0 assembly version : 5.0.0.0 class  : appeventlog method  : writelocalizederror subsystem : biztalkdynamicsadapter -------------------------------------------------------------------------- for more information, see , support center @ http://go.microsoft.com/fwlink/events.asp . does knows error , how fix it? can download schemas

Apps development in SharePoint 2010

hi friends, what difference develop app using "napa office 365" , using visual studio?? what understand using napa office 365 can deploy app's of sharepoint site.but using visual studio can deploy , debug app's in "developer site" correct?? can 1 please give me detail information?? thanks, tirupal. tirupal hi, hope these links helps clarified - http://www.codemag.com/article/1211031 http://blogs.msdn.com/b/officeapps/archive/2013/08/27/use-napa-office-365-development-tools-to-build-apps-for-office-and-sharepoint-on-the-browser.aspx http://www.zdnet.com/microsofts-napa-tools-for-building-apps-for-the-new-office-sharepoint-7000001074/ hope helps! ram - sharepoint architect blog - sharepointdeveloper.in please vote or mark question answered, if reply helps you SharePoint  , 

Biztalk Server 2010 - Performance Issue

biztalk server 2010, takes lot of time execute. first execution taking upto 5 minutes, taking 3 hours. the biztalk solution consists of orchestrations and mappings. hi maswoods, has changed in recent times. did check size of biztalk databases , disk availability on biztalk servers? as stating point run these tools , analysis report: messageboxviewer tool performance analysis of logs ( pal ) tool how use pal : if answers question please mark accordingly. if post helpful, please vote helpful. BizTalk Server  >  BizTalk Server General

The remote name could not be resolved: '[service namespace]-sb.accesscontrol.appfabriclabs.com'

i have downloaded service bus eai , edi labs sdk. when trying deploy basic solution receive following error: ------ build started: project: eaiapp, configuration: debug cpu ------   eaiapp -> c:\users\nick\documents\visual studio 2010\projects\eaiapp\eaiapp\bin\debug\eaiapp.dll ------ deploy started: project: eaiapp, configuration: debug cpu ------ deployment started ... queue1 verification failed. remote name not resolved: 'nick-eai-app-sb.accesscontrol.appfabriclabs.com' customerinput.xsd deployment failed. remote name not resolved: 'nick-eai-app-sb.accesscontrol.appfabriclabs.com' receivesamplexmlmsg deployment failed. remote name not resolved: 'nick-eai-app-sb.accesscontrol.appfabriclabs.com' 0 of 2 items deployed successfully. ========== build: 1 succeeded or up-to-date, 0 failed, 0 skipped ========== ========== deploy: 0 succeeded, 1 failed, 0 skipped ========== i have seen appfabriclabs have been discontinued on for

Hyphens are not allowed in "topic name" input field but warning message says it IS allowed.

Image
so, have lot of topics named using servicebus naming rules (where hyphens, i.e. '-' characters, allowed example). in servicebus namespace have topic named ulf-it-notifyeventsitinerary can see below, , works alright. azure functions ui not allow me use it. can see in screenshot "save" button has been removed, there unclickable. i have tried edit function.json file too, every time "service bus connection" input field gets blanked out , function not work without connection... so, doing wrong?   this bug (see here ). have fix should deployed today. Microsoft Azure  >  Azure Functions

WCF-SAP Unreleased Segments

Image
the adapter "wcf-sap" raised error message. details "microsoft.servicemodel.channels.common.xmlreadergenerationexception: segment or group definition e2idb02003 not found in idoc metadata. uniqueid of idoc type is: idoctyp/3/pexr2002//740. receive operations, sap adapter not support unreleased segments. this error when 2 segments below in sap idoc sent biztalk here generated schema receive sap when use wizard. whenever remove segment sap export file processes successfully. have been toying adapter little on week. when remove segment message comes in typed xml , resolves proper schema.   when change receiveidocformat string , used xpath error : reason: object reference not set instance of object.  how can modify schema matches sap exporting? every configuration try has type of error unless remove segments. unfortunately segments important , cannot removed final version. options?   the actual problem idoc receiving containing unreleased se

Reource to learn Logic Apps

hi experts, can please point me resources can use learn logic apps. current role involves integration using ms biztalk.  regards pushpendra k singh hi pushpendra, resources links logic apps overview :  https://azure.microsoft.com/en-us/documentation/articles/app-service-logic-what-are-logic-apps/ enterprise integration pack features:  https://azure.microsoft.com/en-us/documentation/articles/app-service-logic-enterprise-integration-overview/ enterprise integration pack connectors:  https://azure.microsoft.com/en-us/documentation/articles/apis-list/ you can mail directly padmavc or jonfan specific questions or pointers related integration using biztalk. thanks, padma Microsoft Azure  >  Azure Logic Apps

BizTalk Sharepoint 2010 adapter fails to start workflow "Failed to start"

hi we having problem getting sps2010 workflow start on document submited via biztalk adapater. any appreciated! have biztalk 2010, sharepoint 2010 , v4 (2010) adapter installed. we able send , receive documents between biztalk , sps. however, if place "out of box" workflow on doc list, workflow reports "failed start" when submitted list adapter. the workflow starts fine if it's started manually. looking @ sps logs, following error reported runworkflow: microsoft.sharepoint.spexception: @ microsoft.sharepoint.workflow.spnocodexomlcompiler.loadxomlassembly(spworkflowassociation association, spweb web) @ microsoft.sharepoint.workflow.spwinoehostservices.loaddeclarativeassembly(spworkflowassociation association) @ microsoft.sharepoint.workflow.spwinoehostservices.createinstance(spworkflow workflow) @ microsoft.sharepoint.workflow.spwinoeengine.runworkflow(spworkflowhostservice host, spworkflow workflow, collection`1 events, timespan timeout) @ micros

Try Parse

what difference between following 2 code snippets, int32.try parse fails 1st sample, decimal.try parse succeeds both samples giving output of -50. bit confused why value of 50- (i.e. minus sign -) after 50 okay decimal not int32? extracting value excel sheet , doing conversion.  string value = "50-" ; decimal v = 0; decimal.tryparse(value, out v); vs string value = "-50" ; decimal v = 0; decimal.tryparse(value, out v); regards, vinay hi vinay, string value = "50-" ; decimal v; numberstyles styles = numberstyles.allowdecimalpoint | numberstyles.allowtrailingwhite | numberstyles.allowleadingsign | numberstyles.allowthousands; decimal .tryparse(value, styles , cultureinfo.currentculture, out v); kind regards, aelassas.free.fr Visual Studio Languages

HOW TO GET LIST TYPE VALUE IN TEXTBOX IN SILVERLIGHT ??

dear all,     want display emp name db textbox in silverlight. see below code.   //################################################################################################################  private void button1_click(object sender, routedeventargs e)  { servicereference1.service1client conenction = new servicereference1.service1client(); conenction.getemployeecompleted += new eventhandler<servicereference1.getemployeecompletedeventargs>(getallemployee); conenction.getemployeeasync();   //##########################################  problem raising area / question area  ###################################################################### void getallemployee(object sender, servicereference1.getemployeecompletedeventargs e) { datagridview1.itemssource = e.result.tolist();       // line working excellent display in gridview txt_empname.text = e.result.tostring();  // line not display data in textbox. //this displaying [silverlightapp1.service

Excel 2013 Errors in Linked Tables; An Answer

i'm posting in case else has problem save month have spend trying track down. ms paid support couldn't work out. error reporting in 2013 version useless , less informative 2010.  if see "there errors trying update 1 or more linked tables.  use options below see ways fix these problems, or ok continue without fixing them."  , go options wreck model don't panic.  have found 2 causes 1.  if have incompatible data in 1 of import fields e.g. date entered style 07/29/13 when date format uk 29/07/13, or text. in 2010 got incompatible data error above. 2. if update table has calculated field dependency on table can't find same error. found because updating weekly figures , updated tables 1 @ time in wrong order. broadly think error created on import throw same warning. hope message saves people lot of heart ache. mike hi mike, thank point out. regards, we trying better understand customer views on social support experience, participat

for double, the strange output

Image
double d = -0.1; (int = 0; < 100; i++) { d += 0.1; console.writeline(d); } console.readkey(); it results following: how solve problem? use decimal!   http://stackoverflow.com/questions/618535/what-is-the-difference-between-decimal-float-and-double-in-c noam b. not forget vote answer/helpful, please. encourages you... Visual Studio Languages  ,  .NET Framework  >  Visual C#

Biztalk 2013 Integration with CRM

hi, we have wcf services create, retrieve , update crm entities. using, wcf consuming wizard, have generated crm contract schema , metadata. but if have insert record particular table, how can it? how generate schema for table? assigning values fetch xml fine? please help. i have not integrated biztalk , crm earlier. thanks, lakshmi you not supposed directly access crm database. if dynamics crm such activity not supported microsoft , impact product support. dynamics crm exposes methods through soap/rest api purpose of integration crm. to insert data crm, need identify entity needs created , use create method exposed soap/rest api create instance of entity. populate data in crm db. richard seroter has excellent series of blogs on same i'd urge read. http://seroter.wordpress.com/2011/02/10/the-good-bad-and-ugly-of-integrating-dynamics-crm-2011-and-biztalk-server-2010/ http://seroter.wordpress.com/2011/05/20/creating-complex-records-in-dynamics-crm-2011-from-biz

Sharepoint Copy.asmx to upload Documents in the docment liberary

we using out of box sharepoint web service, copy.asmx load data various document libraries. setup working fine of time except time following errors 1. url invalid. may refer nonexistent file or folder, or refer valid file or folder not in current web. or 2. not load file or assembly 'microsoft.office.policy, version=12.0.0.0, culture=neutral, publickeytoken=71e9bce111e9429c' or 1 of dependencies. access denied. or 3. value not fall within expected range. these errors sporadic. not sure issue in connection working of time. frequency of these concurrent calls 20-30 requests @ time,. volome of file getting transferred small.   please me in identifying issue.   thanks.     hi ankur, i think questions better fit sharepoint forums. please post question in 1 of forums listed here . hth steef-jan wiggers ordina ict b.v. | mvp & mcts biztalk server 2010 http://soa-thoughts.blogspot.com/ | @steefjan if answers question please mark accordin

How to insert "&&" to the attribute value of an xml element???

i have xml element in variable1 name of variable in system find value in way in backend:   < item visibilitycondition = " {#variable1} !=12 && {#variable1} !=3 " > </ item >   i can't put "&&" there, gives me error in xml document @ design time.   i tried use cdata following same problem: < item visibilitycondition = "![cdata[ {#variable1} !=12 && {#variable1} !=3]] " > </ item >   i placed "andand" translated "&&" @ runtime, don't way.   any thoughts or helps highly appreciated.   the ampersand special character in xml used represent entities.  if want have ampersand somewhere in xml value attribute instance, need represent ampersand entity: &amp; you can find background here: http://www.xml.com/pub/a/2001/01/31/qanda.html Archived Forums A-B

Need help with String.Format

hi. i have issue, need format string. here's problem causing code snippet: string formatstring = "mystring{{0},{1}}"; string arg1 = "value1"; string arg2 = "value2"; string result = string.format(formatstring, arg1, arg2); result should "mystring{value1,value2}", formatexception. so can see problem lies, string.format  -method cannot handle format string. how can use format strings while @ same time include additional curly brackets result? to include curly braces in formatted string, need type them twice in format string: string formatstring = "mystring {{ {0},{1} }} "; Archived Forums V  >  Visual C# Language

BizUnit with WCF WSHttp Adapter

i using bizunit test service.... my recive port using wcf-wshttp addapter while submitteing request using bizunit got error cannot process message because content type 'text/xml; charset=utf-8' not expected type 'application/soap+xml; charset=utf-8' . on researching found error because "this mismatch in client/server bindings, message version in service uses soap 1.2 (which expects application/soap+xml) , version in client uses soap 1.1 (which sends text/xml). wshttpbinding uses soap 1.2, basichttpbinding uses soap 1.1" is there way bizunit work wcf-wshttp adapater , can submit request.. hi, for issue, you can try use 2 methods below: 1. change , make binding information in client , service same. 2.  make the custombinding to change basichttpbinding. use soap 1.2 instead of soap 1.1 message encoding. for details, please check links below: http://www.pvle.be/2008/10/soap-12-message-format-with-basichttpbinding/ http://www.dotnetf

Symbol xr400 autonomous mode

hi, i attempting set reader in autonomous polling mode on xr400. can make connection , log in. can set reader in autonomous polling mode reader not read after point. there setup needs done before setting reader in autonomous mode can read tags? although if attempt read tag when not in polling mode reader reads tag, hence know hardware functional. know reasons symbol xr400 not read in autonomous polling mode? i using bytestream protocol, if 1 familiar , can respond appreciated. any ideas troubleshoot helpful. reader version information below. main application version:   3.2.8 dsp version:   3.2.1 dsp loader version:   1.2.1 monitor version:   4.0.0 os version:   5.1.2 fpga version:   3.3.0    report abuse   hi, when have seen/read tag in rfid manager ? device -> view tags ? or process -> view tags ? device -> view tags execute synchronous gettags command on device (probably device scan

Which technology is more flexible for develop of an audio/video chat server?

  hi dear coders; we need develop chat server can user broadcast video/auido (can limit) user , user-to-user video/audio chat? , include text-chat.   is possible create silverlight? there technology of microsoft can it?   and min. server configuration?   let's discuss. lot. hi, check out directshow and windows media sdks at: http://msdn2.microsoft.com/en-us/library/ms783323(vs.85).aspx http://msdn2.microsoft.com/en-gb/windowsmedia/default.aspx personally can't silverlight. Architecture  >  Architecture General

API report different from Bing Ads website

hello, found out api request report not same 1 bing ads website. example, when try campaignperformancereport 07/07/2013 see has <spend> equals 11.88 , <clicks> equals 84.  these values lower see on account website (<spend> equals 12.28 , <clicks> equals 86, in case), every <timeperiod> consider , every campaign have. campaigns, api correct, though. doing wrong? python script used campaign report:  gist <dot> github <dot> com/aviggiano/885df887516c752fab3b thank in advance. hello. i see filtering device via api, , 1 possible root cause of difference bing ads web application. <devicetype>computer smartphone</devicetype> does help? regards, eric Bing Ads API: Development  >  Bing Ads API: Development

Importing a schema which has no target namespace

hi every one, i having schema 1 of client. schema has no target namespace. making new schema have own elements , record element representing prior schema. import first schema in second one. completed successfully, when go set data structure type property of record element, schema not visible in list. when set target namespace in first schema visible in list. issue not set target namespace because messages sent client without namespace , not acceptable biztalk solution. any please? hi, you can include schema instead of import it. in xsd import dialog choose xsd include (or xsd refine) drop down box.   hth, randal van splunteren - mvp, mcts biztalk server http://biztalkmessages.vansplunteren.net please mark answered if answers question. check out powershell provider biztalk: http://psbiztalk.codeplex.com BizTalk Server  > 

Modified an EDI 940 process, GS01 does not fill with OW in fact is blank. Causes issues with the partner.

i consolidated 940 process sendind flat file/edi/xml/sql server run 1 orchestration , dynamic send ports (some send file system , ftp). before working perfect, changes appeared   to perfect , off went production. know seeing that sg01 not being set edi messages, had nothing specific before looked being set party envelope information. added ow there see if show up, nothing. added line in message construction shape when transformation takes place msg(edi.gs01) = "ow"; i have re-started instance after deploying , nothing. any pointers helpful. regards bico  bico bielich 1. make sure party configuration same between test systems , production. 2. if you're trying override gs01, property use edioverride.gs01. BizTalk Server  >  BizTalk Server General

Blend wpf: Pratical differences between Window vs UserControl vs Page .xaml

hello everyone, i must project (wpf) there more 1 window (in vs should have said: winform1+windform2 etc..). when do: project > add new element comes out list of different choices. pratical/significant differences between window vs usercontrol vs page .xaml ?  thx in advanced windows in wpf top level controls in windows, such when have mutiple windows open in ie. usercontrols making custom controls can re-used inside other usercontrols, or windows. page navigation style app in wpf, used in conjunction frame element, (but not always) has forward/back button, how explorer works navigating file systems. Expression  >  Expression Blend + SketchFlow

Urgent REQ::: UI Designer::: VA

  hello there, how doing today? came across resume in internet, looks perfect match 1 of requirements in va. herewith have pasted job description review , feedback. please take @ same , send me updated resume along expected compensation , work authorization status title: application ui designer location: richmond/ harrisonburg, va/ washington, dc duration: long term contract rate: open job description: we looking application user interface design experience rather heavy web design.    they should have background in wpf (windows presentation foundation) expression blend, c#, visual studio , .net. also, great find has experience use cases/workflow diagrams. we looking within driving distance of harrisonburg spend 2 days week working developers during critical design segments of project.  include washington dc area, richmond…etc. thanks time , forward hear soon warm regards, srini encora inc manor oak one, suite 640 1910, cochran road

Need Help :)

hi im new here sorry bad english... im making program opens cmd access internet modem , change mac address problem when put mac address on textbox need last digit add +1. letters or numbers  for example: ill put c8:d1:5e:24:5a:ec on text box , result be c8:d1:5e:24:5a:ed ill wait replies in advance here:   sendkeys.send("sncfg dset wan_mac" + (" " + textbox1.text));             sendkeys.send("{enter}");             system.threading.thread.sleep(500);             sendkeys.send("sncfg dset lan_mac" + (" "+textbox1.text)); i need add +1 last digit ive put on textbox lan mac.. idk why not working says numberstyle not exist in current context im new in visual studio :d c#  add beginning of file: using system.globalization; Visual Studio Languages  , 

A simple if condition problem.

hi all, i’m working on visual studio 2010 c# i’ve got following code: const int intmax = int32 .maxvalue; float tempval = convert .toint64(value); if (tempval >= intmax) { . . . . } my problem that: intmax = 0x 7fffffff , tempval = 1052379000 dosen’t fall on if condition. i don’t understand why? and how can fix it? thanks, shimon. you're saying yourself, intmax 0x7fffffff (in base 16) (roughly 2 * 10^9 (in base 10)) , tempval 1 * 10^9 (in base 10) condition tempval greater or equal intmax return false (hence not entering if part) forgive writing, english isn't native language. Visual Studio Languages  ,  .NET Framework  >  Vis

Open Excel Workbook & Cycle Sheets

i want open workbook , cycle through sheets in workbook.  below trying, gives me error of object not set instance ofa n objet excel.application oxl; excel._workbook owb; wb = oxl.workbooks.open("workbookname", missing.value, true); { //this line throws error on owb.worksheets foreach (excel.worksheet displayworksheet in owb.worksheets) { //more stuff here } } you need set wb something.  try putting code below directly above foreach line owb = oxl.activeworkbook; Visual Studio Languages  ,  .NET Framework  >  Visual C#

In what kind of situation people use delegate

i know when pass function function argument use delegate. when define event use delegate know other situation exist when people use delegate. please discuss many situation sample code. i want know few real usage of delegate can not move without delegate. thanks i tell students 4 (4) main ways use delegates are: single-cast delegate points single method multi-cast delegate helps form invocation list chaining delegates together asynchronous programming using begininvoke()/endinvoke() methods following asynchronous programming model (apm) they form basis of events in c#, every event based on delegate. the popular delegate in use eventhandler delegate. it's included .net. responsible event handlers pattern of: private void <ctrl>_<event>(object sender, eventargs e) { } https://msdn.microsoft.com/en-us/library/system.eventhandler remember - delegates 1 of 5 types of types can define in c#. list includes: class, struct, interface, enum, , delegat

Event notification between servers

i have been asked design internal project have several components extend off core business logic layer.  how can have core notify other components of events when deployed in different places? explanation:  project structure:  core bll  core dal project bll project dal project ui project b bll project b dal project b ui project & b blls have dependencies on core bll common functionality. ditto project & b dal respect core dal. they deployed on internal server in separate folders, such "internalserver/projecta" , "internalserver/projectb".  how handle following case best? in project a user persists change instance, example company, belongs core. project b wants watch changes companies. how can core best notify project b company changed?  how change if project , project b on separate servers? thanks assistance. you need implement publish-subscriber design pattern. each subcriber needs register publi

Accessing BizTalk 2010 party info in C#

in c#, need access biztalk 2010 party agreement info. (we won't discuss terrific api documentation). i have success obtaining partner object using partner.getpartyidforpartyname() method.  but when attempt access agreement (and other partner) properties, throws sqlexception "could not find stored procedure 'edi_partneragreementselect'. inspecting sprocs in biztalkmgmtdb shows number of dbo.edi_* sprocs not 1 listed in exception. have missed magic incantation during install?  is there source of biztalk api documentation has content or example? may wind @ not own. code:   sqlconnection connection = new sqlconnection("integrated security=sspi;persist security info=false;initial catalog=" + database + ";data source=" + server); bindingparameters parameters = new bindingparameters(new version()); parameters.bindingitems = bindingparameters.bindingitemtypes.parties; parameters.includeglobalparty = true; bindinginfo partybindings = bind