Posts

Showing posts from April, 2013

how do I retrieve the ClientID of the autohosted remote web app from app web?

i trying construct url using javascript within page of application web. link redirect remote web , must include clientid of autohosted web application. how client_id app web? url = hostweburl + "/_layouts/15/appredirect.aspx?client_id=" + clientid + "&redirect_uri=" + encodeuricomponent(url); i have since been able client_id {remoteappurl} after adding token app manifest using:     var clientid = remoteweburl.substring(8, 44);     url = hostweburl + "/_layouts/15/appredirect.aspx?client_id=" + clientid + "&redirect_uri=" + encodeuricomponent(url); this isn't ideal works fine when deployed autohosted in azure... when running remote app locally debug method results in url localhost iisexpress site instead forcing cut , paste operations debug. is there better way? SharePoint  , 

Unable to pack a site...

i unable pack site available in local iis folder. running xp sql database in server.   if trying pack site, error message:  this computer not web server in following applications in site packaging.   xxxstore xxxstore_catalogwebservice xxxstore_marketingwebservice xxxstore_orderswebservice xxxstore_profileswebservice you must make computer web server each application want include in package file. if continue, package file not contain these applications. want continue?   kindly me resolve issue.   regards,   nazim Commerce Server  >  Commerce Server 2007

Custom component cannot add into user control

Image
hi all, i've got problem while adding custom component onto user control. i've got custom component button (uc_infra_button) , user control, when try drag component user control, button did not shown on user controls appear @ bottom of it.  is there way can let me adding button onto designer? thanks, brian  probably have created uc_infra_button right clicking on project , selecting add -> component. , getting messed up. if uc_infra_button class has "initializecomponent" method, have created uc_infra_button that. if so, have add new class , inherit button below, public class uc_infra_button : button { } anyways, if sure uc_infra_button iherits button, got retry. close open files , try readding control. i hope helps. please mark post answer if solved problem. happy programming! Visual Studio Languages  , 

passing variants from C# client to MFC Automation enabled app

hello  please suggest on this... issue...   http://social.msdn.microsoft.com/forums/en-us/clr/thread/075080ce-563a-418b-a739-af5ff4a38734/ thanks venky    got working.... using variantwrapper makes things work perfect. thanks time. venky .NET Framework  >  Common Language Runtime Internals and Architecture

multi threaded application Performance difference in Windows XP Vs Windows 2008 R2

  hi, we have developed 1 multi threaded application windows xp , windows 2008 r2. where have created 1 worker thread lunches 2 more worker threads. in windows xp takes less time in same code takes time in windows 2008 compare xp. note:- windows xp code compiled in vc 6.0 windows 2008 r2 in vs2008. can 1 tell me why such time difference in there performance? architecture changes there?   manas hi,   if implement application windows 2008 using managed code vs 2008 then. complation happend in 2 steps. first generate il , @ runtime il converted machine code.   when compile code using vc 6.0 (visual c++ 6.0 unmanaged code) complation output directly gives machine code. reason difference in performance.   regards   Architecture  >  Architecture General

Exceptions when using ExecuteAssembly to launch WPF application from C++ main app.

i'm having trouble project. runs producing number of "first chance exceptions" in console window not understand, clarifications or suggestions fixing these welcome. the main application in c++ , links static library contains /clr code. managed c++ code calls c# code runs following function....  public void dostartup( string domainname) { appdomainsetup currentads = appdomain.currentdomain.setupinformation; appdomainsetup ads = new appdomainsetup(); ads.applicationbase = currentads.applicationbase; ads.disallowbindingredirects = false ; ads.disallowcodedownload = true ; ads.configurationfile = appdomain.currentdomain.setupinformation.configurationfile; evidence baseevidence = appdomain.currentdomain.evidence; evidence childevidence = new evidence(baseevidence); // create domain. _domain = appdomain.createdomain(domainname, childevidence, ads); // start new application in new domain. thread thread = new thread(() => { try { directory.set

Redirecting txt doesnt match schema

hello, i trying redirect folder the txt files doesnt match schema , crash on pipeline, how can that? the idea review the txt file , see problem , re-process again.   thanks in advanced have send port file adapter type , subscribing context properties of errorreport explained in this blog post. hth. please mark answer clicking on "propose answer", if helps BizTalk Server  >  BizTalk Server General

Simple BizTalk Query

dear all, please assist me finding solution of below queries. what easiest way develop schema given xml message? what benefit of targetnamespace declaration , cost document?     thanks uttam thanks & regards uttam there several tools create schema given xml, in view creation hand still accurate way. i wouldn't want them generated me in same way don't want classes generated me.  having said that, can generate schema xml file itself, select generate schema add generated items menu -  http://mstecharchitect.blogspot.com/2009/03/biztalk-2009-generate-xsd-schema-from.html   as xml namespaces (which include target namespace) - these same .net namespaces - purpose further distinguish 1 element , critical when using mixture of schema sources.  say have schema represent person. now imagine consuming web service takes person parameter.  you have 2 deal 2 representation of 'person', not same.  without xml namespace there's no way refer 1 rep

How to capture a picture from a camera

hello, i'm working on c# project connect digital camera computer (nothing fancy standard 10mp camera or something) , have application, after clicking button, snaps picture. save newly taken photo camera , put on hard drive. if can give me guidance on appreciate it. if there tutorials or samples of this, to.   thank you. hi this link help http://www.c-sharpcorner.com/uploadfile/yougerthen/810262008070218am/8.aspx reguards complexity resides in simplicity follow me at: http://smartssolutions.blogspot.com Visual Studio Languages  ,  .NET Framework  >  Visual C#

Webservice, missing non generated partial code.

i have database access layer contains dataset partial class has been created contain search methods on tables. business logic layer references dal , partial class code picked , works correctly. webservice references bll. the application consumes web service, through have access dataset, though not pick partial class code have added. below partial class namespace dataaccesslayer {     public partial class databasedataset     {         public partial class permissiondatatable         {             public dataaccesslayer.databasecfmdataset.permissionrow findbyguid(string guid)             {                 system.data.datarow[] rows = select("guid = '" + guid + "'");                 if (rows != null && rows.length == 1)                     return (dataaccesslayer.databasecfmdataset.permissionrow)rows[0];                 return                     null;             }         } } any on trying access information welcome. regards greigg hi, only xml re

XPathNavigatore removing carriage returns from the string

hi we using xpathdocument , xpathnavigator read in memory string contains carriage returns , line feeds. say example: "my string starts here\r\n here next line\r\n" converted "my string starts here\n here next line\n" is there setting on these classes not remove carriage returns? here sample code string s = "<args><arg name=\"p1\" type=\"string\">p1data</arg>\r\n  <arg name=\"p2\" type=\"int32\">0</arg>\r\n  <arg name=\"p3\" type=\"string\">my string starts here\r\n here next line\r\n</arg>\r\n  <arg name=\"p4\" type=\"boolean\">false</arg>\r\n</args>" ;             xpathdocument d = new xpathdocument ( xmlreader .create( new stringreader (s)));                         xpathnavigator n = d.createnavigator();             xpathnodeiterator nodes = n.select( &

Biztalk Adapters for HIS

hi all, i confused biztalk adapters provided host integration server 2006. there 4 adapters provided his.  biztalk adapters host files biztalk adapters host application biztalk adapters host websphere mq biztalk adapters db2 what want know biztalk server come in picture ? does biztalk server use these adapters use mainframes or support these adapters use mainframes? also, there many adapters present in biz talk server, these 4 adapters there in biztalk server 2006?  please provide reference urls support ans ashu   hi,   biztalk integration platform can integrate applications , legacy systems, imagine integrating bank delivery channels core banking system use rpgs , cobol programs on ibm as/400.   to make kind integration might want integrate created rpgs, cobol programs, in case have use “ biztalk adapters host application ”, other kind of applications might integrate out world using mqseries have use “ biztalk adapters host websphere mq ”.   during integration other sys

Sharepoint survey Help

i have created survey in sharepoint , of questions require user choose answer dropdown box. eg. 1 question requires choose medical provider list given user in drop down menu. in dropdown list provide several names of medical providers , included 'other' , blank line. added blank line because if need edit question because no longer have medical provider choose blank line letting no not have medical provider. the problem when go in edit responses blank line not option though option when first took survey. there can solve problem? can pls explain more on mean blank line. by default sharepoint gives allow 'fill-in' choices option. if select option, default you'll text box free type in text , can edit text in text box. bistesh SharePoint  ,  Apps for Office and Sh

Memory Allocation of Waithandles

hi, 34% memory allocation application related waithandles ( hotspots points waithandle.waitany) 70% of application time on synchronization.  what missing here?  thanks veeru i suspect 34% number seeing false positives in memory profiler, due lack of proper support of multithreaded code.  this common problem in many profilers. as 70% of application time being spent in synchronization - means have lot of wall time program, or @ least threads in program, blocked, waiting acquire locked resource.  this not uncommon - percentage may misleading, depending on methodology you're using determine metric. reed copsey, jr. - http://reedcopsey.com .NET Framework  >  Common Language Runtime Internals and Architecture

Cannot installe Biztalk LOB adapter SDK SP2 for 32 bit and 64 bit. Please help!

hi,         working on 64 bit windows 2008 server. have been trying installbiztalk adapter pack sdk sp2. system allows me install 1 version 32bit or 64 bit. tried installing 32 bit first , 64 bit 64bit first , 32bit   in both cases, first 1 installs without problems. when try install second one, following error. another version of wcf lob adapter sdk exists. remove existing wcf lob adapter sdk  through add/remove programs , try installing again. we have adapter pack installed (32 bit , 64 bit). cause issue? please help! thanks. you dont need install both 64 , 32 bit versions of lob adapter sdk. on 64 bit machine, need have 64 bit version of lob adapter sdk. however, adapter pack, need both 32 bit , 64 bit versions installed on 64 bit machine. applies client libraries too. hope helps!   BizTalk Server  > 

ComboBox AutoCompele With DataSOurce from WCF Rest

scenario is, im working wcf rest services data coming wcf rest in form of json , shaped in custom class...... part of code below webclient proxy = new webclient(); string classesurl = string.format("http://localhost:23610/employeeservice.svc/getclasses"); string groupsurl = string.format("http://localhost:23610/employeeservice.svc/getgroups"); try { byte[] data = proxy.downloaddata(classesurl); stream stream = new memorystream(data); datacontractjsonserializer obj = new datacontractjsonserializer(typeof(list<classdetaildto>)); classes = obj.readobject(stream) list<classdetaildto>; // txtfname.text = std; comboclass.datasource = classes; comboclass.displaymember = "classname"; comboclass.valuemember = "classid"; combocl

2006 compatability with WS 2003 SP2

  i've got couple of queries if able assist.   we have biztalk server 2006 installed running on w2003 server sp1. biztalk server compatible w2003 server sp2?   also, why in documentation biztalk 2006 refer r2? don't believe have r2 installed (or branding thing - 2006 instances going r2)?   thanks. during fall 2007, update biztalk server 2006 product released, called release 2 (r2 short). first release of biztalk 2006 comaptible windows server 2003 sp2. 2006 install guide mentions software prerequisites of @ least windows server 2003 sp1 (select document windows server 2003 @ http://www.microsoft.com/downloads/details.aspx?familyid=b273269c-97e0-411d-8849-5a8070698e4a&displaylang=en ).   there many differences between r2 product , earlier 2006 release such windows communication foundation (wcf) support, , greater edi support. want find 2006 (non r2) version of documentation (which still available on msdn) when reading have documentation matches current pr

Policy testing true but not firing with an action set.

i quite new bre (classic start) when create policy checks value of incoming message based on schema template, , add action policy resolving true, retracts. below test output get, policy set as if orderaccount equal 010009 then set transport type file rule engine trace ruleset: potestpolicy 5/4/2012 10:47:39 am fact activity 5/4/2012 10:47:39 am rule engine instance identifier: b7553f84-6024-4303-93c1-f421e536038e ruleset name: potestpolicy operation: assert object type: typedxmldocument:sd.purchaseorder.common.messaging.purchaseorder object instance identifier: 39682040 fact activity 5/4/2012 10:47:39 am rule engine instance identifier: b7553f84-6024-4303-93c1-f421e536038e ruleset name: potestpolicy operation: assert object type: typedxmldocument:sd.purchaseorder.common.messaging.purchaseorder:/*[local-name()='purchaseorder' , namespace-uri()='http://schemas.microsoft.com/dynamics/2008/01/documents/purchaseorder']/*[local-name()='

Ways to implement and use metadata

hi, i've read microsoft's article regarding distributed application approach( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/apparchch3.asp ), part metadata  (actually i've read few times on years, metadata is my main concern) microsoft's explains different ways metadata can used built more generic system, there no examples or links known implementations of metadata techniques (techniques implementing metadata ui components, business components etc). does have example(s) how (or she) implemented metadata ui/bl in applications ? currently need somekind of metadata me couple of things regarding business entity: 1. according to the value of a property in entity, decide ui elements shown , labels , behaviour (required/non-required validations example) 2. same above - time required/non-required checks made part of business logic receives entity adding/updating since number of values property can receive increase on time (and each va

How do I programmatically list all of the projects in a solution?

in solution, there many projects. windows service projects , console projects. want create new project list windows service name in solution. thanks. because have difficulty use dte, use code stackoverflow . public class solution { //internal class solutionparser //name: microsoft.build.construction.solutionparser //assembly: microsoft.build, version=4.0.0.0 static readonly type s_solutionparser; static readonly propertyinfo s_solutionparser_solutionreader; static readonly methodinfo s_solutionparser_parsesolution; static readonly propertyinfo s_solutionparser_projects; static solution() { s_solutionparser = type.gettype("microsoft.build.construction.solutionparser, microsoft.build, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a", false, false); if (s_solutionparser != null) { s_solutionparser_solutionreader = s_solutio

Bing ajax map v7 responsiveness

we have app @ windows store https://www.microsoft.com/ru-ru/store/apps/%d0%9c%d0%b5%d1%80%d0%b5%d0%b6%d0%b0-%d0%b0%d0%bf%d1%82%d0%b5%d0%ba-ds/9nblggh69gvp after app starts. bing map have huge responsive delay when moving , stuck when zooming. if device screen turned off , on again (for opened app. whenever located: on map, on home page or settings page), map unfreeze , fly jet. what happens webview state after screen switch or how can fix map responsiveness without switch screen? additional info - ionic framework app bing ajax map v7 - issue appears on our testing uwp phones. - if screen switched app in background - nothing happened. p.s.: map located @ "home page" - "Наші аптеки" (our pharms) the maps app faster app using javascript. map app native map control (written in c++) , uses vector data rendering which requires lot less data downloaded. javascript map control needs download lot of resources load. it's worth noting there newer bing

DllImport problem

hi,   i'm using p/invoke call couple of blas routines, , strangest thing happening. yesterday wrote code call unmanaged function called dgemm, using dll downloaded web. code snippet [ dllimport ( "blas_win32.dll" )] //[dllimport("libacml.dll")] unsafe private static extern int dgemm_( string transa, string transb, int * m, int * n, int * k, double * alpha, double [] a, int * lda, double [] b, int * ldb, double * beta, double [] c, int * ldc);   then downloaded faster version of library specially targeted amd processors. tried code , worked fine. able run code using both dllimports (blas_win32 , libacml) , evaluate execution speeds , results. put dll files in same folder project (\bin\debug) , there.   today tried run code before start programming , surpprised find dllnotfoundexception message the specified procedure not found  hresult: 0x8007007f   i can't think of changing lastnight, i'm frustrated this.   i tr

Unable to install EKM provider

hi, i trying enable azure keyvault  ekm on sql server , , keeps failing on last command. i have been following instructions @ site: https://docs.microsoft.com/en-us/sql/relational-databases/security/encryption/setup-steps-for-extensible-key-management-using-the-azure-key-vault create asymmetric key sqlserver06102017_key    provider [azurekeyvault_ekm_prov]   provider_key_name = 'sqlserverkey06102017',   creation_disposition = open_existing; it fails following error message: msg 33028, level 16, state 1, line 20 cannot open session cryptographic provider 'azurekeyvault_ekm_prov'. provider error code: 3303. (provider error - no explanation available, consult ekm provider details) thanks. i figured this. client id , secret incorrect. make sure check windows event viewer error messages. clear message instead of "no explanation available", @ sql server prompt. M

creat file ?????

good evening everybody can u me form which  let me    creat empty( wordfile or pdf file or txt file)  , named ,  save in hard disc want thx help link posted above... (this is for simple text file) using system; using system.io; using system.text; class test { public static void main() { string path = @"c:\temp\mytest.txt" ; try { // delete file if exists. if (file.exists(path)) { // note no lock put on the // file , possibility exists // process do // between // calls exists , delete. file.delete(path); } // create file. using (filestream fs = file.create(path)) { byte[] info = new utf8encoding( true ).getbytes( "this text in file." ); // add information file. fs.write(info,

The request was aborted: Could not create SSL/TLS secure channel

hi everyone, we have program written java provide web api https, , have client written c# call web api following code: servicepointmanager.servercertificatevalidationcallback = delegate { return true; }; using (var webclient = new webclient()) { //webclient.usedefaultcredentials = true; webclient.encoding = encoding.utf8; webclient.uploadstring("https://corpserver:58583/api/login", "post", json); } it works fine, microsoft releases  may 2015 .net security updates , our client can't call web api anymore, error message is:  the request aborted: not create ssl/tls secure channel , status code is:  securechannelfailure (internalstatus = requestfatal) .  any ideas? best regards hi, there 3 options fix issue: ask user uninstall kb3061518 add  clientminkeybitlength 0x00000200 (512) value under  hkey_local_machine\system\currentcontrolset\control\securityproviders\schannel\keyexchangealgorithms\diffie-hellman . allow windows n

Named parameters

i have method  public void check(int x,string y, params object [] values ){ //..}  ,my problem how should call method using named parameters. e.g. this.check(x:10,y:"this string ", ???) would need name values params array? yes, positional arguments cannot follow named arguments, , params parameter filled last arguments. therefore, must either name array argument or use no named argument @ all. Visual Studio Languages  ,  .NET Framework  >  Visual C#

The dhcp server failed to see a directory server for Authorization

i upgraded server 2003  windows server 2008 r2. after upgrade, dhcp server started failing give ip address after lease has expired. dhcp issue ip addresses, have restart server. need on how configure server authorize service out restart. assistance highly appreciated ask in windows server forums @ https://social.technet.microsoft.com/forums/windowsserver/en-us/home. first search result "windows server forum", not sure why landed here. this forum not windows. visual c++ mvp BizTalk Server  >  BizTalk Server General

Weired error about duplicate files in SDK folder

hello, i following error message when trying compile codes. tried uninstall , reinstall sdk , control didn't solve issue. ideas? the sdk manifest contains registration information winmd file bing.maps.winmd, there more 1 file same name in sdk directory c:\users\andreasb\appdata\local\microsoft sdks\windows\v8.0\extensionsdks\bing.maps.xaml\1.0\. ensure 1 file name present in sdk directory or contact sdk provider more information. user interface-layer (user interface-layer\user interface-layer) ++ there sort of nightly builld available work with? best regards, andreas this bug in consumer preview version of visual studio. in case saw project 1 referencing bing.maps and project 2 referencing both project 1 bing.maps causing visual studio find 2 copies of bing.maps @ same location , not eliminating duplicates. can work around refactoring code not use second assembly or wait until newer version of visual studio fix available.

Azure Data Factory Copy Activity

have been working on couple days , cannot past error. have 2 activities in pipeline. first activity copies data odbc connection azure database, successful. 2nd activity transfers data azure table azure table , keeps failing. error message is:  copy activity met invalid parameters: 'unknownparametername', detailed message: item same key has been added.. not see invalid parameters or unknown parameter names. have rewritten multiple times using add activity code template , myself, not receive errors when deploying on when running. below json pipeline code. 2nd activity receiving error. thanks. source data set { "name": "analyticsdb-shipups_06shp-01src_az-915pm", "properties": { "structure": [ { "name": "upsd_bol", "type": "string" }, { "name": "upsd_ordn", "type": "