Posts

Showing posts from May, 2015

Execute a WebJob with Powershell

hi, how can execute "on demand" -webjob azure-runbook-powershell? thanks nicole hi,    unable find out documentation on invoking "ondemand" webjob via runbook.    can refer below article shows how run using kudu webjobs rest api.    http://chriskirby.net/running-your-azure-webjobs-with-the-kudu-api/    https://github.com/projectkudu/kudu/wiki/webjobs-api       let know if helps.    regards, nithin rathnakar. Microsoft Azure  >  Azure Automation

how to calculate the off days per each employee

hello there,  i'm asked make application display off days each employee excluding week end.there 21 days off per year each employee , there should counting down display how many days employee toke .im confused how apply this.also,which suitable programming language apply application mean using asp.net or windows application??.  thanks emmy is home work or business case company? here pointers: http://www.codeproject.com/articles/14856/holidays-calendar http://jachman.wordpress.com/2007/11/02/public-holiday-toolkit-v10/ roar jørstad aka sveroa senior consultant, evry as blog: notebook, trick & tips please mark answer or helpful if post useful Visual Studio Languages  ,  .NET Framework  > 

Biztalk 2010 R2 CTP availability

hello everyone, i trying hand on biztalk 2010r2 ctp. have found bugs when using visual studio , ld check if re still in next version submit improve product. i tried checking through connect site, trough technet subscription , trough our partner msdn subscription no luck all. could give me tip or redirect me right place ? thanks lot hautecoeur f. mcts biztalk 2006 mcts wcf 3.5, 4.0 as far know new version not available others people in tap program. http://dipeshavlani.net/2012/08/15/biztalk-server-2010-r2-tap-available/ the ctp said released in october , accept bug-reports ctp. so guess have wait rest of :-) //mikael sand (mcts, icc) - http://blogical.se/blogs/mikael_sand/default.aspx logica sweden BizTalk Server  >  BizTalk Server General

how to use trimend

can 1 me understand role of method "trimend()"with exemple this must self-explaning code: string mystring = "a string                     "; // removes whitespaces @ end of string mystring = mystring.trimend( ' ' ); mystring = "a string__________________________"; // removes underscores @ end of string mystring = mystring.trimend( '_' );   Archived Forums V  >  Visual C# Language

Could not load type '_Default'

i've looked @ countless blogs , forums , have tried , still error: could not load type '_default'. i created asp.net web site, using c# , when go default.aspx page in browser error. far have removed lib environment variables windows system panel, checked vs2005 cmd prompt make sure it's set correctly there, build web site, have web.config file telling debug=true, , on. no matter do, after builds , copy files web server , navigate page, not load type '_default' error. the way i've been able around use inline coding , desperately want away that!!! any appreciated. - chris the lib stuff c++.  it sounds not copying necessary files web server.  under default v2 model web site copy files including cs files web server.  cs files compiled on fly needed asp.net.  can change default settings through project settings.  if pre-compile site you'll need sure copy bin\ directory , files web server. michael taylor - 1/17/07 http://p3net.mvps.org  

Cant connect to Azure Mobile Service via Chrome Plugin

hi, i'm making plugin google chrome browser , have problem connection azure mobile service. i that: try{     var client = new windowsazure.mobileserviceclient('appurl', 'appkey'),     accounts = client.gettable('accounts'); } catch (err) {     alert(err.message); } and have error message: "windowsazure not defined". i added scripts html file , still not working   <script language='javascript' src='popup.js'></script> <script type="text/javascript" src='http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.1.min.js'></script> <script src='http://ajax.aspnetcdn.com/ajax/mobileservices/mobileservices.web-1.1.2.min.js'></script>     <script type="text/javascript" src='https://myappurl/client/mobileservices.web-1.0.0.min.js'></script> can me pls?) thanks. problem solved. add mobileserviceweb.js script background scripts

Regarding SQL Server Agent Jobs for Biztalk

hi all, why messagebox_message_cleanup_biztalkmsgboxdb  job preferred stopped ? we have issue spool growing , lead lot of errors in biztalk production environment.. i believe job in cleaning msgbox database inturn takes control on spool growing ?  any other alternative take care of issue ? believe suspended instance should cleaned regularly.  please suggestions thanks, varun thanks, varun why messagebox_message_cleanup_biztalkmsgboxdb  job preferred stopped ? we have issue spool growing , lead lot of errors in biztalk production environment.. i believe job in cleaning msgbox database inturn takes control on spool growing ?  any other alternative take care of issue ? believe suspended instance should cleaned regularly.  hi varun, highlighted, messagebox_message_cleanup_biztalkmsgboxdb  job started messagebox_message_managerefcountlog_biztalkmsgboxdb job. therefore, recommended keep job disabled. whenever message published i

Cannot Run my Application on another Computer.

Image
hello experts, i created application which i intended test on computerb. when copied debug folder my computer computer b , executed on computer b a error pop-up came stating cannot run applications.i tried possible methods find cause of problem including reinstalling framework 4.0 client profile in computer b application created in 4.0 client profile , including debugging of program files,change of framework version 4.0 3.5 . on checking in eventvwr came across 2 errors coming application first 1 having source in ".net runtime" , in application. error that copied eventvwr this 1 came having source : .net runtime application: cpms.exe framework version: v4.0.30319 description: process terminated due unhandled exception. exception info: system.io.filenotfoundexception stack: at cpms.program.main() 2.)below application error faulting application name: cpms.exe, version: 1.0.0.0, time stamp: 0x4d883db6 faulting module name: kernelbase.dll, versio

Start Windows Explorer using C#

hello all, in 1 of applications, need open network folder , select few files (select means highlight.) using c# code. know can use process.start() method open folder. example, if network folder '\\srvparoned04\homeware$\xone_services\uat1dev\logs\' , can use below statement open folder in explorer : process.start(@ \\srvparoned04\homeware$\xone_services\uat1dev\logs\ ); however, how higlight of files in open folder ? example, if want select (highlight) log files  (*.log), how in code ? can use wmi here? if so, how ? please help. many thanks dileep krishnan hi you can use this http://stackoverflow.com/questions/1073353/c-how-to-open-windows-explorer-windows-with-a-number-of-files-selected if post answers question, please click "mark answer" on post , "mark helpful". Visual Studio Languages

BAM Portal - Unable to move "Available Data and Milestones" to the "Items to Show" window

Image
bam portal - experiencing weird issue.  on bam portal, have 2 activities , trying use activity search create bam query. see inside column choose section, activity's available data , milestones. when select them , use >> move right side of windows, doesn't move.  doesn't move.  in fiddler, the following trace written every time i tried move data fields right side of bam window.  don't see error in event log.  have enabled trace in bam's web.config nothing getting logged there either. # result protocol host url body caching content-type process comments custom 729 200 http localhost /bam/pages/search.aspx?viewname=bamtraining&activityname=outboundorder 61,075 private text/html; charset=utf-8 iexplore:11136 any appreciated. thanks. hi, can check if browser runs compatibility view bam portal configured on machine. hope helps!!!! please mark answered if satisfy reply.

My Silverlight Application getting crashs the IE , while I refresh the page.

Image
0 hi, am doing silverlight project, while running project getting work. while refresh page ie getting crashed. kindly , provide solution. thanks in advance. you need provide more information. are getting error message? can hidden in ie. there may small error symbol on status bar (a yellow exclamation point generally) when clicked give information. Expression  >  Expression Blend + SketchFlow

Biztalk, MSMQ with multiple response queues

Image
hi, i've been engaged biztalk task , wanted little feedback on best (and best practice) way implement , links technical resources on how within biztalk 2010.  high level steps below describe steps in diagram. 1) partner company sending xml messages via msmq msmq receive location @ end.  2) other company's xml has field contains address of queue send reply to.  biztalk app performs internal processing. 3) pop response onto queue on side.  messages addressed message queue addresses received in original request xml 4) messages sent appropriate queues @ other site. message frequency pretty low , responses send contain different document types 2mb each in size. is able provide me guidance on how should implement parts in "my company" side of diagram, adapters...etc should use , tips , tricks on how use them solution structure. any responses appreciated. hi jagil, it helps both companies share same data center. that's 1 problem less! msmq is

Recursion with delagates

i wish write following code error variable not inialized. delegate void recur ( treenodecollection nodes); public void showkeywords( string message) { list < treenode > list = new list < treenode >(); recur recur = delegate ( treenodecollection nodes) { foreach ( treenode node in nodes) { list.add(node); recur(node.nodes); } }; recur(treeview1.nodes); --   error error 12 use of unassigned local variable 'recur'  it possible modify recur recur = delegate ( treenodecollection nodes) to recur recur = null; recur = delegate ( treenodecollection nodes) but think worth modify c# bit make first code possible.   xoid wrote: delegate void recur ( treenodecollection nodes); public void showkeywords( string message) { list < treenode > list = new list < treenode >(); recur recur = delegate ( treenodecollection nodes ) { foreach ( treenode node in nodes) { list.add

WCF Service Application Vs. ASP.NET Web Service Application

hi, firstly know difference between wcf service applicaion , asp.net web service application, , scenarios 1 should opt wcf service or web service. if merits on these 2 services great. thanks in advance, suggestions highly appreciated. regards, vishal mohan all new web service development should done using wcf. "asp.net web service" templates still left legacy purposes. john saunders wcf is web services. not 2 separate things. use wcf new web service development, instead of legacy asmx or obsolete wse use file->new project create web service projects Archived Forums A-B  >  ASMX Web Services and XML Serialization

Azure Stack TP3 POC on nest VM

hi, i know not supported.  however, poc , don't have physical server.  did execute invoke-azurestackdepolymentprecheck.ps1 success status.  got following errors when executing installazurestackpoc -useadfs at trace-error, c:\clouddeployment\common\tracer.psm1: line 44 @ start-test, c:\clouddeployment\roles\common\rolehelpers.psm1: line 1244 @ test-baremetalrole, c:\clouddeployment\roles\physicalmachines\testphysicalmachines.psm1: line 86 @ validate, c:\clouddeployment\classes\baremetal\baremetal.psm1: line 69 @ <scriptblock>, <no file>: line 9 - 3/26/2017 12:49:08 pm invoke-eceaction : task: invocation of interface 'validate' of role 'cloud\infrastructure\baremetal' failed: function 'baremetal:validate' in module 'classes\baremetal\baremetal.psm1' raised exception: 1 or more validation test failed role 'baremetal' on machine 'azurestacktp3' detailed test results @ file '\\azurestacktp3\c$\clo

Need help for receive message with Webserives

i have xml file want receive of werservices...i have published orchistration schema , public ports. next step have dont know please me, apologies, in previous post misunderstood scenario. making clearer. correct if misunderstood scenario, again ;-)   if pointing consume soap message in 2nd orchestration 1st orchestration, can use direct binding , your message will directly subscribed 2nd orchestration.   http://www.winterdom.com/weblog/commentview,guid,3c5d9db1-f563-40d5-a5cf-b4458376dc11.aspx     from best of knowledge if still want go soap communicate between 2 orchestrations need expose orchestration 2 web service. per understanding of soap need intermediate web service route message. http://msdn.microsoft.com/en-us/library/aa559445.aspx   after publishing web service you can specify path of web service orchestration 1's send port property.   hope time, pitching on correct spot!!! :-)   kind regards, nilay parikh. http://biztalk-ssis-ssas.blogsp

Deep Levels of Inheritance and Code Contract Behaviors

i've scaled down , simplified code i've taken big project illustrate problem. however, levels of inheritance correctly represented. code follows: public interface icontext : iunitofwork, isql, idisposable { /// <summary> /// apply changes made in item or related items in graph /// </summary> /// <typeparam name="tentity">type of item</typeparam> /// <param name="item">item changes</param> void setchanges<tentity>(tentity item) where tentity : class, iobjectwithchangetracker, new(); } [contractclass( typeof( irepositorycontract<> ) )] public interface irepository<tentity> where tentity : class, new( ) { /// <summary> /// context in repository /// </summary> icontext storecontext { get; } ..... } [contractclassfor( typeof( irepository<> ) )] internal abstract class irepositorycontract<tentity> : irepository<tentity> where tent

BizTalk Server 2006 R2 SP1

can confirm whether applies to biztalk server 2006 well? thank you! you can't install service pack of biztalk server 2006 r2 biztalk server 2006 bacause r2 latest release. this biztalk server 2006 r2 only. http://blogs.msdn.com/b/biztalkcrt/archive/2009/10/09/announcing-biztalk-2006-r2-sp1.aspx please mark answer if answers question thanks. mo the contents write here personal views, not view of employer , else. BizTalk Server  >  BizTalk Server General

How to remove BOM Character in outlook app container.

hi i build mail app outlook2013 using napa cloud , when container loaded app bom character displayed inside body until our custom code loaded. tried resolve did not solution of these problem. also there problem in our default html (home.html) page head tag have links , included script but when page loaded inside outlook app container head tag code transfer inside body , head tag show blank. please guide me resolve these issues if possible thanks praveen shukla >> all head tag code transfer inside body , head tag show blank.<< i suppose html issue. please try open page in ie browser. same issue happen? also, better if provide simple sample here. Microsoft Office for Developers  ,  Apps for Office and SharePoint

Office365 Share point - How to create query rule using CSOM C#.net

hi there, i need create query rule in office 365. did in ‘search service application’ level - sharepoint (on premise), need implement same query rule concept in ‘site level’ underneath office 365. instead of ‘server side object model’ have using client side object model (csom - c#.net or powershell) note: not sure implementation possibility of server side object model in office 365. so far, i have taken legacy code of  server side object model create query rule in sharepoint (on premise) i trying modify code (server side object model) client side object model, in-order implement query rules in office 365. while convert, modify ssom code level after struggling, not sure far have done required changes.  ssom csom changes summary used “clientcontext” class return context information such objects current web application, site, site collection (namespace:microsoft.sharepoint.client) made connection office 365 (sharepoint) using clien

Azure mobile app offline sync with Xamarin.Forms

hi, i using samples .net backend + xamarin.forms offline sync. however, when pullasync got error on server side 400 bad request. after remotely debug azure, found request of pull like: https://xxx.azurewebsites.net/...  ge datetimeoffset'1970-01-01t00:00:00.0000000%2b00:00')&$orderby=__updatedat&$skip=0&$top=50&__includedeleted=true&__systemproperties=__updatedat%2c__version%2c__deleted&$select=text,complete,id,version,createdat,updatedat,deleted, message='content-type='application/json; charset=utf-8', content-length=unknown' and seems __updatedat not correctly mapped updateat in sql table (using entitydata)...  the models , dto same of sample. any ideas? have installed latest compatible nuget packages , testing on android xamarin.forms. best, min hi, greetings, request refer article may provide information on off-line data sync in azure mobile apps. https://azure.microsoft.com/en-us/documentation/articles/a

Using Sharepoint groups to manage users

i'm pretty new commerce server 09 , integration sharepoint.  have requirement use sharepoint groups manage cs users.  i've got vpc demo loaded , read pipelines, etc., i'm not quite sure start. has done or have ideas?  me going in right direction appreciated. thanks, corey not sure requirement - manage cs users admin activity , can done through business tools (customer , order manager) , these tools work on active directory (authentication) and authorization store (authorization). if can eloborate requirement can able you. regards, -ravi kanth koppala http://techblog.ravikanth.net (if post answers question - either mark post answer or vote being useful.) Commerce Server  >  Commerce Server 2009

Can we use Abstract class with repository design pattern instead of interface

here not asking interface or abstract class rather know can use abstract class instead of interface see below code of repository design pattern interface has been used if expose repository interface public interface iemployeerepository { employee[] getall(); } then advantage have many implementations below public class employeerepositoryef: iemployeerepository { public employee[] getall() { //here return employees after querying ef dbcontext } } public class employeerepositoryxml: iemployeerepository { public employee[] getall() { //here return employees after querying xml file } } public class employeerepositorywcf: iemployeerepository { public employee[] getall() { //here return employees after querying remote wcf service } } see above code has 1 contract method getall() , ever extend interface can provide own implementation. advantage. but question can write abstract class instead of interface ? s

C# System.Data.Common DbCommand and getting Datasets from Oracle

i found no oracle specific forum area, decided post here. getting dataset oracle c# system.data.common library's dbcommand seems tricky task. i using command object in project along dbproviderfactory , dbdataadapter because meant allow use same library multiple database providers, , don't have clutter data access layer of project separate classes accessing each individual database provider. my problem is, stored procedures fetching data oracle require refcursor object added in parameters. however, dbtype library not contain definition object. using "object"-type not work. i have read many places not have add refcursor parameter, endless failed attempts @ running command without refcursor object has brought me conclusion leaving out refcursor object not option when using system.data.common library. here coded example connectionstring purposefully left out.                 dbconnection.open();                 //create command                 dbcomman

Only one usage of each socket address (protocol/network address/port) is normally permitted - C#

hi encounter above error when tick , untick checkbox on form. code below public void udplisten() { try { //e = new emailsetup(); //e.showdialog(); //re = e.getemail(); //debug.write(re); // construct socket , bind trap manager port 162 socket socket = new socket(addressfamily.internetwork, sockettype.dgram, protocoltype.udp); ipendpoint ipep = new ipendpoint(ipaddress.any, 162); endpoint ep = (endpoint)ipep; socket.bind(ep); // disable timeout processing. block until packet received socket.setsocketoption(socketoptionlevel.socket, socketoptionname.receivetimeout, 0); bool run = true; while (run) { byte[] indata = new byte[16 * 1024]; // 16kb receive buffer i

how do i search for a path in xml?

hi all,   i have xml file looks this:   < project > < buildmachine4 > < checkout1 exe = " wco " folder = ' -f -r "c:/work/6.70_extensions/folder/" ' /> < checkout2 exe = " wco " folder = ' -f -r "c:/work/7.00_extensions/folder/" ' /> </ buildmachine4 > < buildmachine5 > < checkout3 exe = " wco " folder = ' -f -r "c:/work/7.10.000_tip/folder/" ' /> </ buildmachine5 > </ project >   basically need have string called "buildstream" can 6.70_extensions, 7.00_extensions or 7.10.000_tip   i wish conduct search in xml file, if "buildstream" (comes combobox.selectedvalue) found match content of  xml file, take path. example if buildstream = 6.70_extensions, take path "c:/work/6.70_extensions/folder/" then, using path set folder non-read only. ie remove "c:/work/6.70_ext

DoCmd.OpenReport "Report Name"

while  writing c# web app  i need   make button click event , need use docmd.openreport "reportname" nd have done search not having luck  any welcome what need reference need  ass system. thank much  code have tried far is        protected void button1_click(object sender, eventargs e)    {             docmd.openreport "report name", ,  acviewpreview         } vijay patel this isn't going work. your code: docmd.openreport "report name", , acviewpreview looks me ms access: https://msdn.microsoft.com/en-us/library/office/ff192676.aspx?f=255&mspperror=-2147217396 for work need running ms access. either sdk distributable or full version. that on client. you're trying use ms access code in c# - isn't going work. and your code running on server. even if used ms access via interop print preview report on server rather client. workable options include: disctribute access clients , connect central

How to know paramters type of unmamaged function

i use loadlibrarya() , getprocaddress() function address , know function (from my dll file) 3 parameters don't know types of them , how know these parameters type? it not possible parameter types given function name in c.  exported c functions name (or mangled version of name).  in c++ default mangling encode parameter info such functions never exported because mangled name confusing. the way sort of parameter info disassemble code unless code violation of licensing agreement of software owner. michael taylor http://blogs.msmvps.com/p3net Visual Studio Languages  ,  .NET Framework  >  Visual C#

How to abort the thread

guys, i using visual studio 2005, .net framework 2.0 we can abort thread using thread.abort(). got exception "thread aborted". i use below scenario. i have class a, in class have method m1(), inside method started thread, thread run method m2() class b. when close form called thread.abort(), after close from, throws exception "thread aborted". after abort statement, thread still running, , inside thread updating list control values present in from. i check other forums, , got solution have abort thread inside thread method. in forum guy said have check 1 variable, based on value can abort thread inside thread method. , can set value variable outside thread. but not suitable me, because thread method have more number of lines , can not insert statement if variable true abort tread in many places. guys if know other way please share     regards, dp when call thread.abort() exception (the 1 noted) thrown inside thread. worker thread should

Get treeview record from TreeNode

here code sample. getting records database , generate treeview dynamically. code: ======= omanuinterfaces = manuinterfaces.gets();             treenode node;             foreach (manuinterface oitem in omanuinterfaces)             {                 if (oitem.is_perent == true)                 {                     node = tree.nodes.add(oitem.manu_title);                     ochildmanu = manuinterfaces.getschildmanu(oitem.objectid);                     if (ochildmanu.count > 0)                     {                         foreach (manuinterface childoitem in ochildmanu)                         {                             node.nodes.add(childoitem.manu_title);                             if (childoitem.sub_parent == true)                             {                                 osubchildmanu = manuinterfaces.getssubchildmanu(childoitem.objectid);                                 if (osubchildmanu.count > 0)                   

Hybrid Connection - Click Once Fails

i attempting configure hybrid connection via azure website. when point time install hybrid connection manager, click once install fails following message: reference in deployment not match identity defined in application manifest.  there known issue hybridconnectionmanager clickonce app @ moment. until resolved, please use following workaround: 1.uninstall hybridconnectionmanager. 2.download , install hybridconnectionmanager.msi      directly http://go.microsoft.com/?linkid=9847760 3.from powershell (admin mode) invoke set-hybridconnectionmanagerconfiguration      -managementport 9352 4.from azure management portal, copy the      primary on-premises connection string , add the      hybridconnectionmanager invoking powershell command add-hybridconnection      –connectionstring “<copied connection string>” regards, shailesh Microsoft Azure