Posts

Showing posts from March, 2015

SSO clustering question - recovering from server failure

howdy using biztalk 2010, have our sso service running on our sql cluster, 2 servers. one of sql servers went down, have rebuilt , added cluster, database side fine still have sso issues. after trying few things , researching; current plan, sound correct?  unfortunatly not have non production envionment practice on. fail on msdtc to rebuilt server.  (need believe because configuring sso doesn't work without msdtc) use biztalk config , configure sso join existing database backup key on working server fail on sso restore key onto new server sound reasonable? thanks paul failover msdtc ensure msdtc configuration correct & same across both nodes :) and plan reasonable. matter of fact entirely workable. regards. BizTalk Server  >  BizTalk Server General

Exception when trying to change MapPolygon Fill with VisualStateManager

i'm trying change fill of mappolygon using visual states this:          < visualstatemanager.visualstategroups >              < visualstategroup  x : name = "ishighlightedstategroup" >                  < visualstate  x : name = "ishighlightedstate" >                      < storyboard >                          < coloranimation  duration = "0"  to = "yellow"  storyboard.targetproperty = "(mapshapebase.fill).(solidcolorbrush.color)"  storyboard.targetname = "_maprect"  d : isoptimized = "true" />                      </ storyboard >                  </ visualstate >                  < visualstate  x : name = "normalstate" />              </ visualstategroup >          </ visualstatemanager.visualstategroups >  and following exception system.invalidoperationexception unhandled user code   message=cannot resolve targetproperty (mapshapebase

error CS1705 when invoking csc.exe at runtime to load a different version assembly

environment details vs2012 ultimate 11.0.50727.1 iis 7.5 .net 4.5 visual c# problem description our product comprises of several asp.net user controls hosted inside dnn framework. under normal circumstances have custom utility convert these user controls server controls, package inside assembly , host inside dnn. works fine. trying host these user controls in manner can omit packaging step, @ least during development. save lot of time, enable direct source code modifications (.ascx , .ascx.cs) without re-packaging , allow vs debugging out of box. enable this, have placed .ascx , .ascx.cs files inside specific folder within our hosted web site. @ runtime, call control.loadcontrol(control virtual path) load these controls. @ point csc.exe comes picture. things failing. hence posting in c# forum. c# compiler tries compile dynamically generated .cs files , fails following exception: error cs1705 : assembly 'xxxxxxxxx, version=1.0.0.0, culture=neutral, public

suggestionResult.address.postalCode returning undefined

bing map auto complete suggestionresult.address.postalcode returns undefined time all other address information returned this should been resolved. believe fixed couple releases ago. [ blog ] [ twitter ] [ linkedin ] Bing Maps  >  Bing Maps Web Controls

Whether build custom adapter or modify SOAP/WCF Adapter....?

hi, have requirement in need talk third party product "xxx" has web service interface integration. according our design have generic orchestration with: [receive] ---> [transform] ---> [direct bound send receive request/response] ---> [transform] ---> [final send.]        generic thing.  now communicating xxx web services have make 15 different method calls , according response need take decisions (basic if else stuff). question is... develop custom adapter in write code ll handle multiple calls ws or can modify soap or wcf adapter , this. because adapter going handle soap request responses talks xxx web services. orchestration ll have direct bound physical port ll subcribe msg published in msg box , perform requests. pub sub model. comments guys. vishal vishal mody could use .net project reference call web services? if not, still use orchestration lots of ports admittedly lot of ports manage. i think question whether want manage ws settings in

How to retrieve a list of active sessions?

i have asp.net application , in session_oninit popuplate arraylist in "application" space contains ids of  users logged in. i want this: if user log web application , user logged same account, want last user log in take valid session want invalidate session of "old" user. is there method access list of active sessions on web server , invalidate specific session forced logout of user logged in? asp.net web app specific questions should asked in forums @ http://forums.asp.net . forum questions related web services. my best guess @ answer question halfway there maintaining list in session_oninit , have add "session valid" indicator list, invalidate conflicting entry , check against the list every incoming request. however, have find mechanism make work in multi-server farm scenarios.   Archived Forums A-B  > 

Local side software, that also sync to cloud every hour for cloud access and backup

hi, am new c# , programming. know there way make full pos , accounting software package, local based, person mobile , need sync remotely server? hi andretti dawson, any update? if question has been solved, please mark useful reply answer. best regards, wendy msdn community support please remember click "mark answer" responses resolved issue, , click "unmark answer" if not. can beneficial other community members reading thread. if have compliments or complaints msdn support, feel free contact msdnfsf@microsoft.com . Visual Studio Languages  ,  .NET Framework  >  Visual C#

Where to store application settings ?

  hi   i writing application have store application settings. which 1 best way store application settings , why ? windows registry an xml file.   regards, haris   no registry - ms recommends limiting registry access user applications.  guess 2+ versions, registry may not exist in same form know of today.   yes xml file - assume .net application.  app.config file xml file.  there amount of robust , rich api set manage information in app.config file.   yes to database - other connection information, store app settings information in databse.  dont use practice, many others recommend , use this.  nothing wrong in that.   Architecture  >  Architecture General

Treeview Database primary key and foreign key.

Image
i have database contains 2 tables. clients table , appointment table. each client has name, surname , id(primary key). in appointment table there id(foreign key references id(pk) in client table). populating treeview both client data , appointment data. want app link appointment node treeview client node in treeview contains same id. basically, select user in treeview , in node users information along child node contains users appointment information. eg this current code : using system; using system.collections.generic; using system.componentmodel; using system.data; using system.drawing; using system.linq; using system.text; using system.windows.forms; using system.data.sqlserverce; namespace menusql { public partial class menu : form { sqlceconnection conn = new sqlceconnection(@"data source = c:\sqlcom\mydatabase#1.sdf"); public menu() { initializecomponent(); } private void menu_load(

Orchestration or Custom Pipeline

hello all! i have question input benefits of custom pipeline on orchestration. have orchestration replaces of segments values generated custom functions have created. dropping large files 20k health care claims , have been receiving intermittent timeouts. my question better performance in pipeline? if why... if not why... hi, the thumb rule follow is, if there no business transformations, use pipeline. because of performance. however, performance relative thing. also, badly designed pipeline can lead bad performance. however, because pipelines can used in messaging scenarios (ie no orchestrations reqd), save on lot of resources automatically. coming to situation, mentioned custom functions. these functions do? also, timeouts linked database server (or web server)? need answer question first pin point problem area. dont believe size of messages (20k) has timeouts experienced. problem seems downstream systems. cheers, integrations architect http://dipeshavlani.net p

Office PIA doesn't install properly on machine with Office Virtualization (SoftGrid)?

Image
hi, i'm writing application , i'm using  office pia access powerpoint. installed office version 2010 ver.14.0.5130.5001 microsoft office home , bussiness 2010. pia ver. 14.0.4763.1024 latest available download microsoft website. i'm using code on office 2010 installation , works, on machine, office installed in virtualization mode using softgrid , can't execute: application application = new applicationclass(); exception trace translated me because have polish trace. could not load assembly 'microsoft.office.interop.powerpoint, version=14.0.0.0, culture=neutral, publickeytoken=71e9bce111e9429c' or 1 of dependencies . file not found |system.io.filenotfoundexception: can't load file  'microsoft.office.interop.powerpoint, version=14.0.0.0, culture=neutral, publickeytoken=71e9bce111e9429c' or 1 of dependencies. after copy file application folder  error disappeared shows: retrieving com class factory component {91493441-5a91-11cf-8

Listbox Scroll Multiple items

(silverlight) i have listbox, itemspaneltemplate wrappanel. i modified listbox style's - scrollviewer's - horizontalscrollbar's smallchange bigger , smaller values not anything. the horizontalscrollbar increments value 16 units when > clicked irrespective of smallchange's value.     <scrollbar x:name="horizontalscrollbar" grid.column="0" height="18" istabstop="false" margin="-1,0,-1,-1" orientation="horizontal" grid.row="1" visibility="{templatebinding computedhorizontalscrollbarvisibility}" value="{templatebinding horizontaloffset}" viewportsize="{templatebinding viewportwidth}" style="{staticresource scrollbarstyletesttemplate}" cursor="hand" largechange="{templatebinding viewportwidth}" maximum="{templatebinding extentwidth}" smallchange="0.01"/>   creativity flows created a  behavior listbox , us

error while configuring windows sharepoint services for BizTalkservices 2009

i'm trying install biztalkservices 2009 on windows 2008 64-bit server. on other windows 2008 64-bit server have installed sql2008. i'm following instructions in "installing biztalk server 2009 in multicomputer environment.docx" , "installing biztalk server 2009 on windows server 2008.docx" i'm choosing windows sharepoint services 3.0sp2 in last document far "configure windows sharepoint services" i use recommended defaults , ending in "configuration failed" from log-file can read 37:12  12  inf                        entering function parameter.isdefinedvaluechosen 01/07/2010 11:37:12  12  inf                          parameter windowsauthprovider chosen, returning value onlyusentlm 01/07/2010 11:37:12  12  inf                          definded value onlyusentlm parameter windowsauthprovider chosen 01/07/2010 11:37:12  12  inf                        leaving function parameter.isdefinedvaluechosen 01/07/2010 11:37:12  12  inf          

C# Winform block or delay sleep and hibernate

hi guys, i'm i've been trying run application @ hibernate syncing, can run application using powermodechanged event handler, though unable allow enough time @ hibernate/suspend application run fully. is there anyway delay hibernate/sleep (roughly) 5 minutes or block entirely restart after? hello, > there other way if press hibernate button or close lid of notebook having similar affect? or through group polocies , on logoff , shutdown? maybe should post thread on windows desktop forum response. think need windows message. http://social.msdn.microsoft.com/forums/windowsdesktop/en-us/home?category=windowsdesktopdev . regards, we trying better understand customer views on social support experience, participation in interview project appreciated if have time. helping make community forums great place. click here participate survey. Visual Studio Languages

How to Get SQl Server Instance name

i doing windows application in c#.net (3.5) sql server 2005 end. my task required sql server's server name in combo box without logging in sql server/ or instance name.   i tried access via registry keys unsucessfull hardcoding key values.   but there can servername of sql server in combobox.   osql -l did not work, how should approach this     check this http://msdn.microsoft.com/en-us/library/system.data.sql.sqldatasourceenumerator.getdatasources.aspx if post answers question, please click " mark answer" . if post helpful please click "mark helpful" . Visual Studio Languages  ,  .NET Framework  >  Visual C#

error Object cannot be cast from DBNull to other types.problem how to solve

hi guys have problem  firstly code  function maxtotalquantity public int maxtotalquantity(string connectionstring) { sqlconnection con = new sqlconnection(connectionstring); sqlcommand cmd = new sqlcommand(); cmd.connection = con; cmd.commandtype = commandtype.text; cmd.commandtext = "select max(totalquantity) dbo.endwork"; con.open(); int commit = convert.toint32(cmd.executescalar()); con.close(); return commit; } calling function  sales.salesclass salesclass4 = new sales.salesclass(); int totalquantity = salesclass4.maxtotalquantity("data source=192.168.1.3;initial catalog=yamo;user id=admin;password=2233;connection lifetime=3;max pool size=3;connection timeout=30"); label10.text = totalquantity.tostring(); end work table  id int unchecked qunatityend int checked position nvarchar(50) checked issentint checked totalquantity int checked unchecked but error show me when run code give me error object c

Passing parameters to powershell script in C#

hi, have read lot of posts regarding issue still can't make work http://stackoverflow.com/questions/527513/execute-powershell-script-from-c-sharp-with-commandline-arguments http://www.codeproject.com/articles/18229/how-to-run-powershell-scripts-from-c http://social.msdn.microsoft.com/forums/en-sg/csharpgeneral/thread/faa70c95-6191-4f64-bb5a-5b67b8453237 i have windows form 2 textboxes tb_user tb_office i have powershell script on c:\scripts\script.ps1  that need run 2 parameters script.ps1 -user tb_user.tostring() -office tb_office.tostring() so getting textbox content parameters call script on button click, code is: private void button1_click(object sender, eventargs e) { string user = tb_user.tostring(); string office = tb_office.tostring(); var scriptfile = @"c:\scripts\script.ps1"; runspaceconfiguration runspaceconfiguration = runspaceconfiguration.create(); runspace

Get and use MainWindowHandle for a hidden or minimized window

i want , use mainwindowhandle of hidden or minimized window can take snapshot of it. not want make window visible in process. window window on system, not 1 own. snapshot part no problem -- getting mainwindowhandle works challenge. i have tried many variations on showwindowasync, sendmessage, findwindowex, etc. if window restored, if not visible, no problem either -- works fine. when window hidden or minimized mainwindowhandle either zero, or when using findwindowex, value when window minimized different when window restored. most grateful method definitively provides mainwindowhandle window in state. thanks! hi jeronymite,   welcome msdn forum support.   main window window opened process has focus (the toplevel form). must use refresh method refresh process object get current main window handle if has changed .   can mainwindowhandle property processes running on local computer. mainwindowhandle property value uniquely identifies window associated process.   proce

How to get logged in user name in ADFS3.0 ?

when log in adfs server 3.0. how user name has log in ? want pass user name api. please me. have tried using current thread's principal? win app current thread's user ad user. principal windows account user name. there couple of different ways information , may not consistent cases (such impersonation , services). environment.username windowsidentity.getcurrent.name thread.currentprincipal  (iprincipal) (for web apps , in context of controller or page) this.user  (iprincipal) for iprincipal use identity property iidentity has user name in name property. note iprincipal may not windows principal, depending upon how app configured win apps be. michael taylor http://www.michaeltaylorp3.net Visual Studio Languages  ,  .NET Framework

better debugging and troubleshooting support

there couple things done make working azure search easier: allow use browser conduct simple queries. right doesn't seem possible apikey needs part of header. allow non-ssl request debugging purpose. since ssl traffic encrypted, hard troubleshoot issues incorrect filters , query request. probably wrong place, couldn't locate feature suggestion azure search. hi, due fact require authentication, there not easy way support in browser.  have tried tool fiddler ?  great way sounds want conduct simple queries , see traffic.  there tutorial walks through example of here . if looking @ more of ui tool managing index, might want check out reddog tool , created sandrino di mattia of realdolmen. liam sr. program manager, sql azure strategy - blog Microsoft Azure  >  Azure Search

Instances are not created in performance counter

Image
hi guys, i have different problem using performance counter when run code create performance, performance counters created instances not creted when debug project able create instance of performance counter.any highly appreciable regards, munna   hi munna, your description unclear. can please provide code or more useful information? best regards, cookie luo[msft] msdn community support | feedback us get or request code sample microsoft please remember mark replies answers if , unmark them if provide no help. .NET Framework  >  Common Language Runtime Internals and Architecture

Could not find any resources appropriate for the specified culture or the neutral culture

Image
can body explain why getting error. could not find resources appropriate specified culture or neutrual culture. make sure "manufacturing.images.resources " correctly embedded or linked assembley "qbsbm" @ compile time, ot satellite assemblies required loadable , singed. hi kavitha, welcome msdn forum. it seems issue documented in the kb article below. please check it. you may receive "system.resources.missingmanifestresourceexception" error message when access .resources file of form @ run time. http://support.microsoft.com/kb/318603/en-us you can check below threads talking same issue. could not find resources appropriate specified culture or neutral culture http://social.msdn.microsoft.com/forums/en-us/winforms/thread/30d3f13f-0f2e-4852-833f-32d3f557c38a/ http://social.msdn.microsoft.com/forums/en-ie/winforms/thread/c27c0b8c-0501-4077-bf4c-8621b6e72714 have nice day. bob shen [msft] msdn community support | feedback us

My Frist App...

hi, varsity student, have visual programing subject, , want start designing apps on ''free time'', have been programming for about 2 year now so still little ''clue less'' sufficed  to say, willing learn, had idea build a point of sale application, i did research , started design. want have app -with a "log in" page- place orders , record sales on a items  that are on demand, new stock comes in every week, store customer details , able update information and view of the inventory, thinking of designing 1 windows phone can link database , sms service notify customer of an order , that orders can taken remotely online.      hi, student and i have visual programming subject @ school , start designing apps in free time, i'm looking design point of sale application small business, does anyone have pointers, tips could really use help. Visual Studio Languages

BUG !: Virtual Catalog - searchOptions Sorting issue when CatalogClassTypes does not include CatalogClassTypes.CategoryClass

hi there,   i have run strange problem or bug.. please please let me know if should log pss bug or if understanding / coding problem..   i trying run search on virtual catalog which searches product items and variants, it should sort results by displayname.. simple enough might say.. let me explain issue.   if search that has searchoptions.classtypes = catalogclasstypes.allclasstypes or searchoptions.classtypes = catalogclasstypes.categoryclass, search works search returns categories in returned dataset.   if search without either of above 2 catalogclasstypes returns error sortproperty not exist.   this search function works on virtual catalog: private catalogitemsdataset ftsearch() { catalogitemsdataset retval = new catalogitemsdataset (); catalogsearch search = commercecomponents.helpers. cataloghelper .catalogcontext.getcatalogsearch(); search.language = system.globalization. cultureinfo .currentuiculture.name; search.catalognamescollection = com

how to remote access window 2012 and display the real time graph of cpu usage of virtual machines

what link of sample code of below link? https://msdn.microsoft.com/en-us/library/aa645516(v=vs.71).aspx i write application remote access window 2012 , display real time graph of cpu usage of virtual machines hi check below thread example on how cpu usage of machine: https://social.msdn.microsoft.com/forums/vstudio/en-us/56e0253a-e596-4947-a6f8-57319b07a22c/cpu-usage-for-remote-system-with-c vb code converted: dim cpucounter performancecounter cpucounter = new performancecounter() cpucounter.machinename = "machine_name_here" cpucounter.categoryname = "processor" cpucounter.countername = "% processor time" cpucounter.instancename = "_total" dim cpuusage string = cpucounter.nextvalue() + "%" i'm quoting the  performancecounter.machinename property page:" can write values counters reside on local computer. however, can read counter values computer in enterprise have access privileges. when set the  m

Scheduling Job in a Web Farm

hello, i have farm of .net servers. application needs scheduled jobs - sending reports / notifications periodically. the question - best way schedule job? i want same set of software run on machines - if in case 1 machine goes down, other able run scheduled job. the options considering: 1) making them sql server jobs ( failed on in cluster), but these jobs need resources available on .net servers, , donot think opening backward connectivity db app be best way. 2) have kind of lock in database, , schedule job on all machines in windows scheduler. 1 wakes first, gets lock , executes job. others exit. 3) same 2, windows service instead of scheduled job. in case - unable find way of allowing users schedule job. there library can read unix style cron job setting and run programs accordingly? is there better way of doing ? there clustered scheduler available windows? regards pranshu you may want @ grid/utility computing e.g. http://www.digipede.net/products/digipede-network.h

How to invoke VS Debugger on C# program from command line (devenv.exe usage?)

how 1 invoke visual studio debugger command prompt on c# application has been built in visual studio 2010 debug - without first loading project in visual studio?   some internet forums claim can done vc++ not vb.net or c#. hi hhinman2, try using system.diagnostics.debugger.launch in application's entry point (eg. main). Archived Forums V  >  Visual C# IDE

ERROR: Connecting to the LOB system has failed.

i error when trying connect oracle db thru lob : connecting lob system has failed.  ora-1017: invalid username/password; logon denied. i use same read uid , pass to connect thru sql client , works fine. gives? 1. ora uses case-sensitive schemaname/user. try login through toad, sql+ or sqldeveloper, in order check account information works out. 2. sure, re-enter schemaname/user + password in lob configuration after applying import of binding file, since not imported. hth BizTalk Server  >  BizTalk Server Adapters and Adapter Pack

Referencing Non-Silverlight .Net 3.5 Class Libraries

what happen ability reference non-silverlight class libraries? in alpha, able reference our .net 3.5 class libraries silverlight control long did not invoke non-supported namespaces. now, getting error can no longer reference libraries not built independently for silverlight? it crazy expect developers maintain two different versions of class libraries support usage of silverlight. missing or did take away this capability????? in alpha, able reference our .net 3.5 class libraries silverlight control long did not invoke non-supported namespaces. wow, worked? never tried. am missing or did take away this capability????? i'm really surprised hear worked in first place. i'm guessing you're gonna out of luck on one. knows, have tried reversing process, i.e. compile silverlight , see if you're full 3.5 binary can link it? :) Silverlight

Attach SQL Server Databse from Backup

hi, we using sql server 2005 , have deleted database (technicaldb).  have retrieved copy of database (both mdf , ldf) files backup. we have tried attach database (mdf , ldf) on server running sql server.  find have recreate both sql server , database login again. when attach database original server, need delete sql server login & recreate or can map sql server login attached database ? thanks hi tony, is attached happened on remote , local server? for remote server, need add login , if go orphan user please fix that, more details on : http://www.mssqltips.com/sqlservertip/1590/understanding-and-dealing-with-orphaned-users-in-a-sql-server-database/ for same server, shouldn't need add login , things should work you. in case these logins got created need add login , user @ both level server , database. santosh singh SQL Server

RIA returning new objects?

Image
hi,  i have ria service doing calculations , returning results:   public iqueryable getcalculateddata( int mydata1, int mydata2) { var returnval = new list(); var mydatacollection = (from x in this .context.mydata x.id = mydata1 select x); var mydatacollection2 = (from x in this .context.mydata x.id = mydata2 select x); for ( int = 0; < mydatacollection.count(); i++) { returnval.add( new mydata { value = mydatacollection.tolist() . value +mydatacollection2.tolist() . value ; }); } return returnval; //here data correct }  on silverlight app side unexpected results: private void mydataloaded(loadoperation operation) { listbox.itemsource = operation; }  in listbox items have same value , first value calculated. how can return results this? do need create new domain class can't persisted return these values, or going wrong?  thanks,   nisbus query operations can return e

Facing issue in VSTS build - The job has been abandoned because agent admins-Mac-mini did not renew the lock. Ensure agent is running, not sleeping, and has not lost communication with the service.

hi abruptly facing below issue in xamarin.ios project vsts build below: the job has been abandoned because agent admins-mac-mini did not renew lock. ensure agent running, not sleeping, , has not lost communication service. my observation is, before few days, build successful (which includes xamarin.ios project containing solution, running uitest on xamarin test cloud, after build deployment on hockeyapp release step) i restarted mac machine on premise host, after started facing issue if not running xamarin uitest on cloud (it means build taking less time), build getting successful after that, release step failed same above error if build contain running uitest step, build step failing, made sure uitest successful, publish artifact step failing i have tried re-configuring agent, altogether new agent setup not success. please help. additional information above: tar file have downloaded vsts agent, vats-agent-osx-x64-2.109.1.tar, guess 2.109.1 stating version.