Posts

Showing posts from July, 2013

For emulating Azure Stack on Azure, using a policy?

i have question colleagues wish use public azure emulate same set of service azs. according presentation here, charles joy, https://youtu.be/dbvwdrl00mm?t=10m30s "using azure service, apply azure policies ..." on left there option that. i'm unable find information on polices , how configure them where. have information emulate same level? sincerly, jon e. carlsen hello jon, the policy emulate azure stack in public azure located here: https://github.com/azure/azurestack-tools/tree/master/policy   note:  make sure to leverage resource group , not entire subscription when enabling policy.       we apologize inconvenience , appreciate time , interest in azure stack. if continue experience issues asdk release, feel free contact us.        thanks, gary gallanes Microsoft Azure  , 

¿Truncated SQL Commands?

hi, i'm using application insights in azure webapp , entity framework data access. i managed sql commands logged @ ai, commands truncated @ 1024 characters. ¿how can increase limit? as know ef generates large sql queries, having 1024-character limitation big problem! thanks, rodrigo. as replied here  there no way sdk side since server side limitation. in near future limit increased. anastasia Visual Studio Development  ,  Visual Studio Team Foundation Server  >  Application Insights (AI)

Updating Powerpoint slides dynamically

i have requirement slides manipulated (inserts, deletes, etc.) in running slideshow. of slides need have data displayed on slide updated regularly, text within textbox example. (similar way date/time operates triggered automatically whenever particular slide displayed) possible?  look @ first reply , following text http://msdn.microsoft.com/en-us/library/bb608618.aspx  . you can bind content controls in word solution elements in custom xml part. when content control bound custom xml part, data in custom xml part displayed in user interface (ui) of content control. if user edits text in control, corresponding xml element automatically updated. similarly, if element values in custom xml parts changed, content controls bound xml elements display new data. more information, see content controls. so if possible in powerpoint, create xmlcustompart, bind field (if can done in app dont know). on set interval in app change xmlcustompart. anze javornik

WSE Interop with JAVA

hi everyone, after trying use wcf, fall wse 3.0 , vs2005 exchange messages java service. creator, have use ws-security 1.0 , signed username token (with no password sended) auth it. specifications: to assure authentication must sign username token private key, insert produced signature soap header signing digital certificate; to assure integrity must sign entire body private key, add produced signature soap header signing digital certificate; to assure privacy (not in messages) must encrypt body digital certificate of service. can me find right policy, assertion ecc obtain this? please me!, 'm newbie of world!! below add example of requested soap message. <soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">     <soap:header>         <wsse:security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"                        soap:mustunderstand="1">        

creating a database with visual c# express 2008

i trying create database using visual studio c# express 2008 edition when right click data connections icon in data base explorer window options available :- refresh , add connection the create new sql server database option isn't highlighted doesn't function.?????? ok, if go data connections , choose add connection, enter server name , give proper authentication info. then instead of selecting database, enter name new database. when hit ok tell database not exist , asks if want create it. that might work :) regards, ruud van falier --- owner @ dottech senior software engineer @ colours, internet company Archived Forums V  >  Visual C# IDE

Best way to secure web services

hello, reading wse. the question simple, need secure nobody can put sniffer in middle see soap request body , headers in plain text. as long know can done using ssl on internet information services. so question why should go further , implement x509 certificates? i recall argument encrypting sensitive portions of message, ws-security could offer improved performance compared encrypting traffic. try up, can find opposite argument. holt adams @ ibm writes, "it's safe enabling security through ws-security technologies @ least twice cost of proving similar capabilities using traditional ssl http" (see best practices web services, part 9 ). may have misremembered this, i'll concede performance point. the x509 approach still worth considering authenticating client server. of course, passwords may suffice purpose. a few other relevant documents: overview of web services security (bea) securing applications use web services (msdn) implementing ws-securit

appendChild

"microsoft jscript runtime error: unable value of property 'appendchild': object null or undefined"   hi folks,   this error got when try create new bing map.....     function getmap() {             //creating bing map var map = new microsoft.maps.map(document.getelementbyid("mapdiv"), { credentials: "-xxxxx-", center: new microsoft.maps.location(1.34015994, 103.8119), maptypeid: microsoft.maps.maptypeid.road, zoom: 11 });   } i've played around it.... and read somewhere that, document couldn't "mapdiv" id because script executed before dom loaded.....   how deal ??   also, i've got map called gothere.sg map...that works    neeeedd heeellpppp...   icy. either move js code bottom of page, or add onload event body tag: <body onload="getmap()">. if else fails check see if mapdiv exists , if doesn't use timeout recall getmap method after few hundred milli seconds.

Azure Resource Group

hi, have created 1 db under 1 resource group.this db pricing tier  s3 standard - 100 dtus using multi threading.  i.e multiple requests hit on db @ same time. later have create db using same resource group above testing environment. db copied above db contains static data. so, here doubts are 1) observed after creating second db performance of first db decreased both using same resource group. guess. please confirm performance issue because of same resource group? if case please suggest solution.. 2)first db pricing tier s3-100 dtus. thread count 100 i.e 100 threads hitting db @ same time. right performance little bit slow. please suggest how improve performance of db? if change plan 150/200 dtus change in performance? & regards ashok  Microsoft Azure  >  Azure App S

ERROR_NO_DATA was thrown sometimes by web service/SOAP

i've web service on machine has ws client (for experiment purpose). if keep looping call ws foo(), error_no_data hresult service. reason , how eliminate exception @ all, if possible? any pointer appreicated. thanks. asmx not return error_no_data, sounds might error client api using access ws. apis using? , full stack trace @ time of error? depending on technologies you're using, might able tracing information diagnose issue; using netmon possibility diagnosing based on goes on over network. ranamauro Archived Forums A-B  >  ASMX Web Services and XML Serialization

Problem with the text

hi, saving innerhtml column long text data type in access, using these cmd = new oledbcommand("update dbo.ite_tab set lng_txt=@txt ite_abbr=@ite_id ", conn); cmd.parameters.add("@txt", oledbtype.varchar).value = ta1.innerhtml; cmd.parameters.add("@ite_id", oledbtype.varchar).value = lb_var1.text; cmd.executenonquery(); ... seems there problem see nothing in column of table after i've saved text without getting errors. similar codes work against sql server. many & best regards, hua min hi huamin, if you, firstly exact sql statement debugging code, , run sql statement in access check if there're errors. my guess 'ta1 . innerhtml ' contains unusual characters, or longer maximum length of column. probability table read-only. and here's article talking when access queries won't update: when access queries won't update

BizTalk Template is Missing in Visual Studion 2008 ....

hi all,   new in biztalk, trying install biztalk on labtop , biztalk server template missing in viual studio 2008 can 1 pls me related same ??? my configuration follows ....   i have installed windows server 2003 installed service pack 2 on m/c. after have installed visual studio 2008 . after installed sql server 2005 . and installed biztalk server 2006 r2 . i followed steps correctly , it's shown me successfully instalation message ... when open visual studion , trying create biztalk application biztalk template missing in visual studion ...   can 1 tell me goes wrong ? i have followd same flow of installtion @ work , it's working fine ...   pls need .... regards, nilesh thakur.         biztalk server projects not supported visual studio 2008, have build projects vs.net 2005 now.   rumors say, microsoft make update makes possible in near furture, don't know when happend. sorry!   /anders

BizTalk Server BAM Issue

we unable open application transactions in bam portal. account added group unable see transactions in bam portal few days saw transactions 3 days getting error when trying see transactions in bam portal duplicate thread. original thread:  biztalk server bam issue rachit please mark answer or vote helpful if reply does BizTalk Server  >  BizTalk Server General

Not able to modify the toolbar using CSOM in a webpart

Image
we trying modify toolbar details of custom list using csom. however, couldn't find option modify toolbar of web-part in page. toolbar property of webpart read-only property in csom , hence cannot modify it.  we have make toolbar=none.   can please let know if there solutions hide toolbar in web-part using csom.? hi, the webpart doesn't has property setting toolbar type view does. as workaround, can use css hide toolbar in list view web part. <style type="text/css"> #hero-wpq2{ display:none !important; } </style> or can set jslink property of web part, , use use jslink hide toolbar. to set jslink property, following code reference: string targetsiteurl = @"https://milesli.sharepoint.com/sites/dennis"; var login = "***@***.onmicrosoft.com"; var password = "***"; var listname="customlist"; var securepassword = new securestring(); foreach (char c in password) { securepassword.appendchar(c);

formula output is always zero point zero

hi, i'm using progress bar , loop, inside is: double prog = 0; for (int = 0; <= count - 1; i++) { prog = ((i + 1) / count) * 100; backgroundworker.reportprogress(prog); } but problem is, progressbar not updating, when put breakpoint on prog variable, show 0.0 output, why this. i'm puzzled, please help. thanks! always remember "thanks", clicking "mark answer" , "vote helpful" if post answers question. hi, nevermind, solved it, declare 1 of digits double. :) prog = ((i + 1) / (double)count) * 100; well can explain me why work? :) always remember "thanks", clicking "mark answer" , "vote helpful" if post answers question. Visual Studio Languages  ,  .NET Framework

Event log is not working in Multiform server

hi , we trying implement event logging in our application. have created separate event source our application. when testing our local dev machine working without problem. when try test same in higher environment (qa, pre-prod) not working. qa environment multi form server. able see event source in event viewer, logging not happening. have tried restarting iis, restarting services.  any suggestion or guidance highly appreciated. thanks in advance it started working after restarting iis , windows eventlog service in server Visual Studio Languages  ,  .NET Framework  >  Visual C#

CustomValidationAttribute doesn't work when other attributes are applied to the class.

i reported on microsoft connect , closed won't fix, if have workarounds (other searching attributes manually), please let me know. here problem: imports system.componentmodel imports system.componentmodel.dataannotations module module1 sub main() dim type = gettype(contact) typedescriptor.addprovidertransparent( new associatedmetadatatypetypedescriptionprovider(type), type) dim contact new contact dim context new validationcontext(contact, nothing, nothing) dim errors new list(of validationresult) dim result = validator.tryvalidateobject(contact, context, errors, true) end sub end module <customvalidation(gettype(contact.contactmd), "*********************")> <metadatatype(gettype(contact.contactmd))> public class contact public property email string public property emailrepeat string public class contactmd '<required()> public property email '<required()> public property

arrayof and the xmtransmit pipeline

  hi   i have web service method receives object contrains array of different object. have c# class library have added web reference web service - act proxy for number of bts2006 projects. when add web reference class library creates reference.xsd expected. bit puzzled see xsd not map object model directly. instead of presenting an xsd parent element containing ubounded sequence of child elements creates parent element name "arrayof" + child element name. explain further: object model has parent object called buylistcollection contains array of buylist objects. reference xsd created visual studio not contain buylistcollection, instead has arrayofbuylist.   i created bts map using reference xsd target schema. have bts orchestration receives message maps schema expected web service (before serializes object model). when tested received exception in event viewer telling me unable convert arrayofbuylist buylistcollection. had me thinking xsd must wrong spent long while

upgrading to 2013 from 2010, question regarding remote shares and possible issues.

i am upgrading to bt2013 2010, since ftp domain change , point new server want have running first , switch. looks far minor issues want current folders messages being dropped via ftp partners, can sharing directories , give 2013 user rights (full). what need know if there known issues 2 different versions of bt (2010/2013) polling same folders @ same time, don't think , i'll find out next week if knows issues may come i'd ready. one server is running 2010 new 1 2013... thanks in advance. bico bielich hi , it better choice stop bts2010 ftp receive location , test bts 2013 ftp receive location pointing same directory  . moving forward on topic ,ftp adapter not file locking file adapter does. thanks abhishek BizTalk Server  >  BizTalk Server General

printing - terminal services

hi guys quick question , our application allows printing internal documents store printer names user selects easy of use works fine. having bit of issue printing on terminal services redirected printers. as aware printer names change in terminal server environment. first part same, rest, after leading space , (, changes location location , session session) e.g. brother model 1 (redirected 11), brother model 1 (redirected 12). though same printer name different different users our printing code fails because of obvious reason. i know can rename names dynamically when printing renaming session id current id way ? there better way ? advise. btw use .net framework 3.5, , winforms project. prk thanks reply. imho , still think original idea still better because i'll renaming session id in printer name , there goes print. e.g. printer brother m1 (redirected 11) , when printing rename 11 correct user's session id. i hoped there unique id attached these printers ,

Can I expose the events for a windows control that has the BrowsableAttribute set to false?

hi, i'm getting speed in c# , wondering, there way expose events windows control have browsableattribute set false? example gotfocus event of textbox? find annoying microsoft has arbitrarily decided can't trusted it.   thanks dave david pantaleoni you can use event want - browsable attribute hides designers (and intellisense).   however, in code, can subscribe still , handle normal: textbox1.gotfocus += this .textbox1_gotfocus; void textbox1_gotfocus( object sender, eventargs e) { // thing } reed copsey, jr. - http://reedcopsey.com if post answers question, please click " mark answer " on post , " mark helpful ". Visual Studio Languages  ,  .NET Framework

Many biztalk inputs messages

hi everybody, i`ve follow scenario one port 3 port types, each port type has different reques , response, develop 1 orchestrations process messages , may run when message receive the question how do ?? don`t know how active first receive shape, how many receive shape used ?? thank`s ideas... begin orchestration listen shape. beneath create many receive shapes there number of message types consume. set activate = true receive shapes. receive multiple messages create many operations in logical receive port in orchestration designer. message fireup orchestration instance , proceed it. if want messages arrive @ same instance following: replace listen shape parallel shape. initialize correlation set in receive shapes. messages must arrive, in order, orchestration proceed. message arrives first initializes correlation set , message follows follow correlation set (despite coded otherwise) correlation set initialized once. please mark answer if helps you. , warm regards amba

Can't Creat Campaigns

i error campaign description invalid, im sure is.  my xml request <?xml version="1.0" encoding="utf-8"?><env:envelope xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:wsdl="https://bingads.microsoft.com/campaignmanagement/v9" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:header><wsdl:authenticationtoken>token</wsdl:authenticationtoken><wsdl:developertoken>token</wsdl:developertoken><wsdl:customeraccountid>***</wsdl:customeraccountid></env:header><env:body><wsdl:addcampaignsrequest xmlns="https://bingads.microsoft.com/campaignmanagement/v9"><wsdl:accountid>***</wsdl:accountid><wsdl:campaigns><wsdl:campaign><wsdl:budgettype>monthlybudgetspenduntildepleted</wsdl:budgettype><wsdl:monthlybudget>20.0</wsdl:monthlybudget><wsdl:dayl

Code Contract Tab Missing

i have installed, reinstalled rebooted etc, etc.  code contract tab not present in c# project properties page.  vs2010 premium 64 bit windows pro.  have resharper 6.0 , productivity power tools loaded.   unable use code contracts because of suggestion turning on static , runtime checking without property page. thanks jeff   hi,  what kind of c# project it? can repro new empty project?  if so, please post .csproj file's contents , i'll try repro. - dave http://davesexton.com/blog DevLabs  >  Code Contracts

how to insert global variable into oracle database using INSERT Command

please  how insert global variable oracle database using insert command. with c# example? int max=10; i want insert value from variable(max) oracle  db using insert query take quick @ example on msdn library article , @ variables :pdeptno, :pdname used insert command. kind regards, wizend Visual Studio Languages  ,  .NET Framework  >  Visual C#

MQSC (MQ Base-Client) Receive Adapter Behaviour when stopping Host Instance - Duplication Issue

i have set receive location on mq series queue using mqsc adapter (non-transactional mq base-client). messages collected , not visible on queue anymore. simple sendport subscription message coming through mentioned receiveport writes collected messages filesystem. everything looks fine:  - no more messages in queue or msgbox, messages have been written final destination, no error messages or warnings in event logs. but:  - if hostinstance mqsc adapter associated stopped messages ever (as long hostinstace running) collected queue "reappear". have original putdate. i'd duplication of messages. it seems if adapter never "commits" deletion of messages on queue know little mq guess. the documentation adapter states: " can configure mqsc adapter support non-transactional messaging when integrating mqseries queues. this, mqsc adapter uses websphere mq base-client. in case, adapter guarantees no messages lost. duplication of messages can occur under failure condit

P/Invoke Interop Problem

hi all, i've been working on program control special type of scientific camera! i'm trying use camera's sdk written in unmanaged c++, , i'm trying interoperate sdk using c#. everything going till got work function had char* arguments, unmanaged method signature is:     int flilistfirst( int *domain, char *filename, size_t fnlen, char *name, size_t namelen);   i first tried use following managed signature:    [dllimportattribute(@strpath, entrypoint = "flilistfirst", callingconvention = callingconvention.stdcall)]  public static extern int flilistfirst(out int domain, out intptr filename,  [system.runtime.interopservices.marshalasattribute(system.runtime.interopservices.unmanagedtype.u4)] uint fnlen, out intptr name,  [system.runtime.interopservices.marshalasattribute(system.runtime.interopservices.unmanagedtype.u4)] uint namelen);   when marshalled returned intptrs string using marshal.ptrtostringauto() converted string looked

Convert Image to base64

hi , i have requirement of creating .vcf file via mobile wewhich can downloaded via web. when convert image file using c# base64 string , when create .vcf file using outlook same image base64 string in file different. i using following method convert image data base64.  convert.tobase64string(imagebytes, base64formattingoptions.insertlinebreaks); issue string generated c# isnt supporting when opening using iphone supports string generated via outlook. cloud me 1 this hi sammani, i've researched more. found outlook automatically process image upload. >>this got base64 string outlook. 1. open exsistinf .vcf file using outlook 2. save again file location. 3. open .vcf file in notepad can see base64 string of image outllof has created , diffrenet string created using c#. i have tried test scenario suggested, when decomplile image, you'll find picture changed outlook. the following code how test on side. string s = @"/9j/4aaqskzjrga

The underlying connection was closed: An unexpected error occurred on a receive

for bingads api v10 campaigns management service, i got error message when run getcampaignsbyaccountidrequest. i dont know whether put correct parameters when use campaignmanagementservice.getcampaignsbyaccountid(). due campaigntype required , also  includenativebidadjustment  element removed, changed campaigntype.searchandcontent, campaignadditionalfield.biddingscheme in parameter of  campaignmanagementservice.getcampaignsbyaccountid(). please advise me can do. thank much. program detail:  i'm using c# development. code sample below: campaignmanagementservice cms = yahoobinghelper.getcampaignmanagementservice(username,password,developertoken,customerid,accountid.tostring()); campaign[] camp = cms.getcampaignsbyaccountid((long)accountid,true,campaigntype.searchandcontent,false,campaignadditionalfield.biddingscheme,false); the error existed when program runs through cms.getcampaignsbyaccountid() function.

system.net.webclient: The operation has timed out

hi experts, "system.net.webexception: operation has timed-out. at system.net.httpwebrequest.finishgetresponse() at system.net.httpwebrequest.getresponse() at system.web.services.protocols.webclientprotocol.getwebresponse() at system.web.services.protocols.httpwebclientprotocol.getwebresponse() at system.web.services.protocols.soaphttpclientprotocol.doinvoke() at system.web.services.protocols.soaphttpclientprotocol.invoke() at smartdeviceapplication2.localhost1.service.helloworld() at smartdeviceapplication2.connection.getallkonumlist() at smartdeviceapplication2.form1.getallkonumlist() at smartdeviceapplication2.form1.initializeall() at smartdeviceapplication2.form1._btn_guncelle_click() at system.windows.forms.control.onclick() at system.windows.forms.button.onclick() at system.windows.forms.buttonbase.wnproc() at system.windows.forms.control._internalwnproc() at microsoft.agl.forms.evl.entermainloop() at system.windows.forms.application.run()

Missing behaviors when editing custom control templates?

i have silverlight 4 custom control (derived control instead of usercontrol) , i'm trying edit supplied templates in blend 4.  i open themes\generic.xaml, go resources tab, click edit resource button, , edit template -> edit current.  when this, behaviors show in assets -> behaviors default ones come blend.  none of behaviors exist in referenced assemblies appear here.  this works fine usercontrols i'm wondering if it's limitation of custom controls? can tell me control make..and can share code , want.   no in custom control no limitation, can thing. Expression  >  Expression Blend + SketchFlow

Stumped on a query

i hoping can me.   it has been long since have had other simple queries in sql struggling solve problem.     let’s have table 1 column named fileextensions, , values in column follows:   .pdf .docx .pptx .pdf .docx .pptx .pdf .docx .pptx     .pdf .pdf .pdf .docx .docx .pptx   i need write query give me following summary results showing how many of each file extension present in column:   fileext                   count .pdf                              6 .docx                           5 .pptx                            4     the example above simplification of need because can't use hard coded values for extensions in statement because not known in advance.     any ideas? select fileext, count)fileext) ct from tablename group fileext please aware ssrs forum rather sql queries forum rgds geoff SQL Server

list box in a combo box?

 hi,  i wondering if possible have list box / button / text field within combo box item? tried write in c#, when run program, doesn't appear. have idea it?  thanks lot! try this combobox _newcombo = new combobox (); _newcombo.name = "mynewcombo" ; stackpanel _sphorizontal; for ( int k = 0; k < 4; k++) { _sphorizontal = new stackpanel (); _sphorizontal.orientation = orientation .horizontal; textblock _newtextblock = new textblock (); _newtextblock.text = "text " + k.tostring(); _sphorizontal.children.add(_newtextblock); checkbox _newcheckbox = new checkbox (); _newcheckbox.ischecked = true ; _newcheckbox.name = "check " + k.tostring(); _sphorizontal.children.add(_newcheckbox); _newcombo.items.add(_sphorizontal); } Silverlight  > 

SP2 Failed to Update Database/Analysis

please help! have no idea why happening , summary doesnt give indication either. see below. time: 05/08/2009 12:50:14.528 kb number: kb921896 machine: armdc02 os version: microsoft windows server 2003 family, service pack 2 (build 3790) package language: 1033 (enu) package platform: x86 package sp level: 2 package version: 3042 command-line parameters specified: cluster installation: no ********************************************************************************** prerequisites check & status sqlsupport: passed ********************************************************************************** products detected                         language  level  patch level       platform  edition setup support files                       enu                     9.3.4035  x86       database services (mssqlserver)           enu       rtm    2005.090.1399.00  x86       enterprise analysis services (mssqlserver)           enu       rtm    2005.090.1399.00  x86       enterprise reporting s