Posts

Showing posts from April, 2015

Calling methods within methods

i have 2 methods , need change 1 displays value depending on method. 1 of methods string , 1 boolean. method getspeech needs determin weather or not output method isbig size greater 50.  public string getspeech()         {               dogspeech = "hello. " + breed + ". " + barksound;             return dogspeech;           }         public void setsound(string barksound)         {             this.barksound = barksound;         }       private bool isbig(int size)         {             bool size1;             if (size < 50)             {                 size1 = false;             }             else             {                 size1 = true;             }             return size1;         } any appreciated  thank time Visual Studio Languages  , 

The Application Data folder for Visual C# Express could not be created.(2)

hi again. azus laptop running vista business. visual studio 8. loading cd included book checked out library. "beginning visual c# 2008".  have tried on every web site have found no effect. have turned off uac, antivirus , reloaded - twice. cannot find "application data folder" expected created. totally out of ideas now. thanks.  http://blogs.msdn.com/b/astebner/archive/2006/11/08/how-to-fix-application-data-folder-error-when-launching-visual-studio-2005-on-windows-vista.aspx please mark post answer if helpfull you Visual Studio Languages  ,  .NET Framework  >  Visual C#

Windows Services don't respond

our application has 2 windows services. one, let's call "guard", monitoring second one, let's call "taskmanager". main role of "guard" @ intervals of couple hours reboot "taskmanager".for our customers works without problems, several doesn't. there no posibility sevices in control panel. need use third-party application kill and execute again. so, have few questiuons: 1. reasons can make windows services not respond? 2. how can monitor happens on computer? 3. can "guard" in way if reboot didn't succeed (and how can know it) kill , reinstall or service start again without killing it? p.s. moderators, if it's wrong category kind questions, don't erase it. didn't find category more suitable it. hi! 1. possibly security settings 2. trace class output text file or eventlog in service output events 3. guard can expect response taskmanager in predefined time (30 sec example). if guard not response

Webservice call from BizTalk 2010 to IIS7 fails. The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.

i need investigate more on issue related keep alive settings in iis 7 mentioned in link http://seroter.wordpress.com/2007/08/06/troubleshooting-canceled-web-request/ in our case have orchestration in biztalk 2010 (windows server 2008 r2 standard , iis7) calls webservice (asmx) hosted in iis 7. checked configuration [the "ping maximum responser time (seconds)" under "process model" settings] in iis on both server [biztalk hosting , web service hosting server] , settings same. don't option set keepalive=false, since need use connection pooling feature. have mentioned below exact error message in biztalk server. webexception: underlying connection closed: connection expected kept alive closed server. ioexception: unable read data transport connection: existing connection forcibly closed remote host. socketexception: existing connection forcibly closed remote host most of our webservice calls orchestration working expected, 5% of webservice calls fa

Passing binary files in webservices

i need send binary files in webservice.  have read ws-atach need can used non .net clients. can it? have example? thankss ___________________ hip hop de chiste you can send binary files base64 strings.                     dim b() byte = system.convert.frombase64string(webservice.getfileasbase64string())                     dim bmp bitmap = bitmap.fromstream(new io.memorystream(b, 0, b.length) on webservice end might do dim b() byte return system.convert.tobase64string(b) or can create class binary array , serialize class webservice. Archived Forums A-B  >  ASMX Web Services and XML Serialization

how to make datagridview combobox editable in c#

Image
hello all, i using c#.net create windows application, here use datagridview add new details , use combobox datagridview combobox coloum select items , want add new item here. i aslo set datasoure for datagridview coloum bind data base, i want edit datagridview combobox coloum, here color column want add new color cant , restrict enter number on column here design here code add datagridview combobox coloum on load               datagridviewcomboboxcolumn cmb1 = new datagridviewcomboboxcolumn();             cmb1.headertext = "color";             gvvd.columns.add(cmb1); private void gvvd_editingcontrolshowing(object sender, datagridvieweditingcontrolshowingeventargs e)         {             datagridviewcomboboxeditingcontrol combocontrol = e.control datagridviewcomboboxeditingcontrol;             if (combocontrol != null)             {                 //set dropdown style editable combobox                 if (combocontrol.dropdownstyle != combo

user interface - extensibility window - splitter

hi, when  extensibility window opened  ( cwe) our application, there vertical splitter can hide area @ left im , contact information, maximizing conversation window. my question is, if there option set splitter programmatically,   in  a conversation_added  event  ? thanks stefan the lync client api not provide programmatic access vertical splitter between conversation window , extension. john austin senior programming writer microsoft Lync Server  ,  Unified Communications  >  Microsoft Lync Client Development

How can I identify the creation time of a Receive Location ?

dear friends, i know creation time  of  a receive location. i looked in biztalk managment db (adm_receivelocation table). is column activestartdt refers time @ created ? thanks help. prabath there no way information mgmtdb, best can modified date datemodified column - when config change happened on rl. rest of columns undocumented , should not relied upon. why need information? thanks arindam BizTalk Server  >  BizTalk Server General

How to capture file open events?

hi, i create solution logs when user in windows open file. (like xlsx or txt file etc). both windows explorer or within related application). filesystemwatcher doesn’t work because doesn’t capture file opened other application. captures create/change/delete events, not “open” event. is there way in .net/c# capture event? erik lidman if wanna check if file opened or not, there no in-built function so. here example check: private bool checkfileopened(string path) { try { using (stream stream = new filestream(path, filemode.open)) { //file not opened! } } catch { //check here why failed , ask user retry if file in use. return true; } return false; } //check like: bool bcheck = checkfileopened(@"c:\myfile.txt"); if(bcheck) { //file opened } else { //file not opened } mitja Vi

Expression Blend and Binding

hi! =d as can link table form? i have table shows data 1 person , have form when click on table row loading of form details of person select in table. check out blog post http://www.kirupa.com/blend_silverlight/master_detail_sample_data.htm Expression  >  Expression Blend + SketchFlow

pushpin click handler not working in mobile

pushpin click handler working fine desktop in case of mobile handler unable display infobox   have use "microsoft.maps.events.addhandler(pin, 'click', pushpinclicked);" code handler. can 1 me . i'm not able reproduce this. common scenario , there are a lot of apps out there doing on mobile without issues , no 1 else has reported issue. try code sample on mobile device: http://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk#displayinfoboxonclickpushpin+js [ blog ] [ twitter ] [ linkedin ] Bing Maps  >  Bing Maps Web Controls

AI in c#

i'm creating speech recognition program uses 'case' statements in order hear commands. how make ai (or if know sample) don't have full sentece,only word in full sentence like  case "i open facebook": program going listen, in sentence 'open' , 'facebook'. , how make ai based on 'case' statements in speech recognition?! for overly general pie in sky first programming attempt provide this: c# speech recognition Visual Studio Languages  ,  .NET Framework  >  Visual C#

Design-time Container controls proper designer.cs code generation

hello, currenly making custom control , wish create proper designer it.  have found out using parentcontroldesigner class allow me drop controls using toolbox , gets serialized correctly.  have working smart tag used create controls similar smart tag tabcontrol object , verbs add , remove tabs.  can creation work during life time of instance within designer, cannot of generated controls serialize designer tab pages.  have working property editor dock style , have confirmed work during design time , persist run-time.  however, other properties/methods action items not serializing work designer.  i wondering if point out tutorial me in regard.  have downloaded source code official tabcontrol, however, designer in system.design , has not been deployed symbol servers yet.  i have tried generate code in 2 different ways.  first doing of work in custom actionlist object have created, , second use actionlist proxy dock.  appreciated.  thanks! it sounds smart tag logic is adding controls via

Blend 4 crashes again!

i cant seem build project @ in blend anymore, vs2010 works fine, when try build blend following error: im sick of blend crashing time, cant work time critical when crashes time. please help. microsoft® expression® crash report: date: 2011-01-27 14-12-26 application version: 4.0.1000.1000 operating system version: microsoft windows nt 6.1.7600.0 common language runtime version: 4.0.30319.1 system.nullreferenceexception: object reference not set instance of object.    @ microsoft.expression.designmodel.markup.xamlparser.getpropertyvaluetextcontenttype(itype valuetype)    @ microsoft.expression.designmodel.markup.xamlparser.addpropertiesandchildren(xamlparsercontext parsercontext, documentcompositenodereference nodereference, xmlelementreference xmlelementreference, xmlelement xmlelement, predicate`1 propertyfilter)    @ microsoft.expression.designmodel.markup.xamlparser.addpropertiesandchildren(xamlparsercontext parsercontext, documentcompositenodereference no

Add files to queue: before or after thread.Start()

i have windows service process xml files in queue. files in queue added filesystemwatcher event when files created. the code is: namespace xmlftp { public class xml_processor : servicebase { public string s_folder { get; set; } public xml_processor(string folder) { s_folder = folder; } thread worker; filesystemwatcher watcher; directoryinfo my_folder; public static autoresetevent resetevent { get; set; } bool running; public bool start() { my_folder = new directoryinfo(s_folder); bool success = true; running = true; worker = new thread(new threadstart(serviceloop)); worker.start(); // add files queue filesystemwatcher event return (success); } public bool stop() { try { running = fal

Get Unmatched record using xpath expression in c#

hi , var temp = xdocfile.xpathselectelements("//ref[label/text()=translate(@id, 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz', '')]"); i want unmatch records using above xpath equation can please tell me possible ? in below example, id , label compulsory,need search unmatched records  input: <ref id="sec1">see fig test   <label>1</label> </ref> <ref id="temp34">see fig test   <label>3</label> </ref> <ref id="sec4">see fig test </ref> <ref sub="sec4">see fig test </ref> <ref id="4test">see fig test   <label>4</label> </ref> output: <ref id="temp34">see fig test   <label>3</label> </ref> <ref id="4test">see fig test   <label>4</label> </ref> i got right expresion:

Integrate Interactive Designer with existing applications (Juliano Nunes ) - 3/21/2006 7:35 PM PST

by: juliano nunes are there way use interactive designer project existing visual studio 2005 project? interactive designer work web applications too??? thanks. []'s juliano by: unni ravindranathan (ms) sure, share msbuild format underneath. however, create wpf user interface, need add necessary references (look @ default project create see references need add). also, not winforms design tool - not able edit existing ui inside interactive designer. regarding web applications, interactive designer tool creating windows presentation foundation. if targeting browser hosted wpf application, let create , author these in tool. thanks, -unni -- this posting provided "as is" no warranties, , confers no rights. "juliano nunes" <julianonunes@discussions.microsoft.com> wrote in message news:acc3e421-16c0-40c4-be1b-86878b920608@microsoft.com... > there way use interactive designer project existing > visual > studio 2005 project? >

Adam Cozad and Davis Koepp hews

sketching of jacks life played in earlier decades alec baldwin hunt red october, harrison ford patriot games, clear , present danger , ben affleck sum of fears isnt yet mature 007 type. origins story, , script adam cozad , davis koepp hews faithfully clancys sketching of jacks life [url=http://support.wattpad.com/hc/communities/public/questions/200968990]watch godzilla online[/url] isnt [url=http://support.wattpad.com/hc/communities/public/questions/200969550]watch x men days of future past online[/url] carrie mathisons [url=http://support.wattpad.com/hc/communities/public/questions/201074804]watch million dollar arm online[/url] cia, [url=http://support.wattpad.com/hc/communities/public/questions/201075244]watch amazing spider man 2 online[/url] [url=http://support.wattpad.com/hc/communities/public/questions/201074864]watch legends of oz dorothy's return online[/url] jack [url=http://support.wattpad.com/hc/communities/public/questions/200969060]watch rio 2 online

The type or namespace name 'Example' could not be found

 hi,           have example.dll used reference in desktop application.when compile application  following error the type or namespace name 'example' not found(are missing using directive or assembly reference) i have included using example in form1.cs in windows application. i not sure why error.i checked bin folder of windows project.the example.dll added reference is not getting copied.it urgent,please assist me. thanks, cp cp_25 the fact dll example.dll not mean has namespace called example. need source code or documentation dll can namespace. urgency matter of perspective. nothing posted on site urgent me, nor suspect others. post help, voluntarily , when able. regards david r --------------------------------------------------------------- every program becomes rococo, , rubble. - alan perlis valid measurement of code quality: wtfs/minute. Visual Studio Languages

A few questions.

in vb6 application used long time making small multi-player games save udt so for = 1 max_animations filename = app.path & "\data\animations\animation" & & ".dat" f = freefile open filename binary #f put #f, , animation(i) close #f next i wondering if there similar way in c#? lastly better? struct or class hold list/array of data? this not vb6, more kind of ms basic 1.  however, this. static void save(byte[][] annimations) { (int = 0; < annimations.length; i++) { system.io.file.writeallbytes(@"thepath\thefilename" + convert.tostring(i) , annimations[i]); } } success cor Visual Studio Languages  ,  .NET F

RCW DispId changed

hi all. i'm using third party activex component. i've received new version of it (actualy version number same, api has changed). after generating rcw new component noticed, dispid methods has changed , new methods has been introduced. old rcw not work new activex version, because of dispid changes. my qustion is: how can application work both activex versions? (a) have load different rcw based on witch version installed on user mashine, or (b) maybe can customize rcw work both version (e.g. creating dublicate methods different distids), or there any other posibility? i have no experience com, maybe reasoning incorrect.   thanks help. juozas. that's major, major crime activex developer.  must go vendor , demand version that's either backwards compatible or uses different guids.  if don't, you'll stuck unsolvable versioning problem. .NET Framework

How can i make a web service accept data over SSL ?

dear all, how can make web service on ssl accept data web/desktop applcation in ssl mode ?   in words ?   how can message sent on secure transport, such secure sockets layer (ssl) web service ?  how can ?     hi, it's not web service issue, web server handles issue. configure iis accept ssl connection , add desired web service iis, if user connects server in way, web server "application server" refuse connection asking https connection only. implemented scenario in our environment , works fine! if need further information on configuring ssl in iis please let me know! Archived Forums A-B  >  ASMX Web Services and XML Serialization

C# + AD LDS - Help interpreting error message

i've written code manage membership of ad lds container using c#. in our testing, error thrown when attempting commit our changes directoryentry if people added. code works fine if these specific users aren't included in membership. detailed exception generated is: system.directoryservices.directoryservicescomexception unhandled hresult=-2147016657 message=a constraint violation occurred. source=system.directoryservices errorcode=-2147016657 extendederror=8373 extendederrormessage=000020b5: atrerr: dsid-03152804, #1: 0: 000020b5: dsid-03152804, problem 1005 (constraint_att_type), data 0, att 1f (member) stacktrace: @ system.directoryservices.directoryentry.commitchanges() @ hci.directoryservices.adlds.role.save() in c:\projects\et\shared\hci.directoryservices\adlds\role.cs:line 186 @ hci.test.admanager.passwordmodifier.main() in c:\projects\et\admanager\hci.test.admanager\program.cs:line 303 @ system.appdomain._nexecuteassembly(runtimeassembly assembly,

Assembly load() or dependency problem

hi everybody,   loading app on windows storage server 2003, following exception : could not load file or assembly 'mailmill, version=1.0.3.3, culture=neutral, publickeytoken=5de605f1a26e31f5' or 1 of dependencies. attempt made load program incorrect format. notice windows storage server 2003 64 bit edition   also, copied binaries xp 32 bits machine, works fine, windows storage 2003 64 bits. is's way do.   app uses maillmill.net component send emails. works fine on windows xp, not on 2003. know maillmill needs capicom installed. have installed it, no changes. it seems maillmill.dll needs dll not on machine , find wich one. tried use dependency walker , checkasm find dependences, nothing came up. guess there must [dllimport] inside of maillmill.dll or that causes exception. don't know how debug issue.   i same issue dll  ( itapi3.dll ). don't know if problem comes os 64 bits version or something  else.   could not load file or assembly 'i

How could I know if I am running a NGEN'ed image?

after ngen'ed program , run it, found there no change on memory cost , running speed. doubt if still running old version(not ngen'ed) of program. how can run ngen'ed image directly? or how can know if running ngen'ed image? thanks! there no way run directly, think, nor of determining if can run. ngen makes difference if managed assemblies huge, , commonly shared dlls. how big they? if have profiled , found jit time insignificant, make no difference. here article ngen: http://msdn.microsoft.com/msdnmag/issues/05/04/ngen/default.aspx and describes when may useful (very rarely): http://msdn.microsoft.com/library/en-us/dnpag/html/scalenetchapt05.asp in particular, read section titled "scenarios limited or no sharing should not use ngen.exe", explains why large, shared dlls can benefit. stand-alone exes benefit. .NET Framework  > 

WinDBG and "no runnable debugees" (C# and Winsock code)

i have written application windows 7 using c#. using windbg debugging. point windbg directories sym, source , image. end "no runnable debugees error in 'g'". wondering can done. winsock application , halting on socket.recvfrom(); when ping disabled firewall on target machine. why debugging. hoping answer don't have rewrite application winpcap. thank you! sepoto. hi, thansk post. more specific hwo debug application? have tried starting application first , attach windbg running process? also, questions related debugging, please consider microsoft.public.windbg newsgroup better option. please mark right answer @ right time. thanks, sam .NET Framework  >  Common Language Runtime Internals and Architecture

ASp.net Web Application

       hello all   i developed asp.net web application using vs 2005. i need see wesite in computer throught lan, procedure this. plz me   thanx in advance you should able deploy application iisserver connected lan , access it. please check: http://msdn2.microsoft.com/en-us/library/ms178610.aspx in future asp.net questions, please post on http://forums.asp.net   Archived Forums A-B  >  ASMX Web Services and XML Serialization

Tag does not exist in XML namespace...

the solution builds fine in visual studio ide. tfs build, error: error mc3074: tag 'rectangle.effect' not exist in xml namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'. line 11 position 22.   here's xaml complaining about:     < usercontrol x:class = " fpdt.customcontrols.d3linechart " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:d3 = " http://research.microsoft.com/dynamicdatadisplay/1.0 " height = " auto " width = " auto " loaded = " usercontrol_loaded " > < usercontrol.resources > < datatemplate x:key = " followmarkertemplate " > < grid > < rectangle radiusx = " 5 " radiusy = " 5 " fill = " lightgray " stroke = " darkgray " >

Environment variable for package configuration

  hi, gurus, thanks kind attention. i having problem environment variable ssis package configuration. thing can find variable within package configuration collection, can not see system environment variables. when open package, gives me warning specified environment variable can not found. can of give me advices it? have restart machine package running on? thanks lot in advance help and looking forward hearing shortly. best regards, yours sincerely,     one of huge benefits can using environmental variables ability use indirect configurations.  i.e. environmental variable points package file location / server / whatever rest of configurations environment located.  thus, can have 1 set of configurations dev environment, test environment, third qa , fourth production, etc...  there number of threads on forums here dealing number of blog posts on web.  if little searching around think you'll find indirect configurations highly recommended... http://blogs.conchango.co

cannot connect sql server management database engine? .i amsql server 2008

=================================== cannot connect swathi-pc\mssqlserver. =================================== network-related or instance-specific error occurred while establishing connection sql server. server not found or not accessible. verify instance name correct , sql server configured allow remote connections. (provider: sql network interfaces, error: 25 - connection string not valid) (.net sqlclient data provider) ------------------------------ help, click: http://go.microsoft.com/fwlink?prodname=microsoft+sql+server&evtsrc=mssqlserver&evtid=87&linkid=20476 ------------------------------ error number: 87 severity: 20 state: 0 ------------------------------ program location:    @ system.data.sqlclient.sqlinternalconnection.onerror(sqlexception exception, boolean breakconnection)    @ system.data.sqlclient.tdsparser.throwexceptionandwarning(tdsparserstateobject stateobj)    @ system.data.sqlclient.tdsparser.connect(serveri

enforce integer for axis label

hello all, i have stacked bar in tablix group repeats many times.  max value y axis anywhere 3 300.  300 auto interval works fine values such 50, 100, 150, etc.  when max 3 auto interval 0.25, 0.5, 0.75, etc.  don't want fractional values shown, integers.   colin. hi colin, here didn’t give version of sql server reporting service. generally, in sql server reporting service2005, might not able control value of minimum, maximum, interval @ our own will. in sql server reporting service2008, write expression reset these property’s value control whether display fractional values or not, mentioned 0.25,0.5,0.75 etc. steps ssrs2008 below: 1.      right-click y-axis, , select axis properties 2.      in value axis properties dialog box ,you see property of interval, click fx button type in control expression. such =iif(max(fields!datafield.value)<4,1,0). interval value on y-axis 1 if maximum <4, otherwise, interval auto. if have question, please feel free a

String value is not appearing from Excel in DFT

hi, i have values in excel below, -id-----name-----subid-----subname   10-----abc----------1----------hyd ------------------------2---------chn -----------------------3----------blr   aaa---xyz-----------1----------us -----------------------2----------uk trying insert values in table. value 'aaa' not getting inserted in table. column id when appears in excel source data type 'double precision float' table column id data type varchar(50). have included data conversion component convert column dt_str still value 'aaa' not getting inserted instead null getting updated. can't have numbers strings in excel source load table? please let me know ! ! --------------------------- radhai krish | golden age no more far | -------------------------- take @ this: http://www.mssqltips.com/sqlservertip/2770/importing-data-from-excel-using-ssis--part-1/ http://stackoverflow.com/questions/5138073/ssis-2008-excel-sou