Posts

Showing posts from January, 2015

Exception when accessing static object inside a native .lib, from a managed c++ app

so, here's scenario. have native c++ static library. exposes function contains static object (with destructor). have managed c++ application (compiled /clr). when call library function, exception thrown when object's destructor registered 'atexit' runtime library function (this has been injected compiler object's destructor can called when application finishes).   i have made simple vs2005 solution demonstrates problem - can download here: http://www.megafileupload.com/en/file/59468/threadingerror-zip.html (you'll have wait 30 seconds before can download file - sorry in advance popups)   any appreciated cannot figure out how fix this. @ first thought threading error (hence name of solution) calls 'atexit' called same thread, i'm starting think there might else causing this...   thanks,   james bird     the linker options chose prevent crt initializing properly.  doesn't execute proper startup code initializes atexit() in

unexpected end of stream on Flat File disassemble

<p>i have 3 comma-delimited flat files. strip off headers in pipeline component, , there no footers. created schemas using wizard, , moved root node down level set debatching in pipeline. </p><p>on three, "unexpected end of stream" error on last column of last row of data. </p><p></p><p>i have </p> down there somewhere, ones , zeros. i cut/pasted schema , test data post , believe the  xsd below should work.  if csv file contains <cr><lf> after each record, change <batchdetail> postfix , <schema> property allow message breakup @ infix root no .  <invoicedetail> element child order changed infix . i tested it with ffdasm.exe using following command line: ffdasm.exe elbodata.txt -bs elboendofstream.xsd note: have pipelinetools folder in current command window path using  set path=%path%;%btsinstallpath%\sdk\utilities\pipelinetools; <?xml version="1.0" encoding=&qu

ESB Toolkit Dynamic Routing to FTP using BRE

?hi   i make use of esb toolkit 2.0 , bre dynamical routing of message ftp server. i trying make use of bre vocabularies come esbt 2.0 that purpose, not sure how set username , password should used towards ftp server. any ideas, suggestions?     thanks   süleyman     i wanted make use of esb toolkit adapter providers contains implementation ftp well.. question how configure user name , password within business rule when using esb.endpointinvo vocabulary.   so far think should use setup follows:   set end point outbound transport type ftp set end point outbound transport location ftp://<myftpserver>/<myfolder> set end point config username=<myusernamer>&password=<mypassword>   any comments on this?   thanks süleyman   "tomasso groenendijk" wrote in message news:df65a83f-f7eb-4e13-8af4-d2a73a0b692f... hi, you can create ftpresolver @ itinerary service going route message. in endp

packing 64 bit exe inside a 32 bit PE

is possible pack 64 bit exe in 32 bit pe  using c++ compiler, have 2 choice: - build 32 bit app - build 64 bit app 32 bit app run on 64 bit windows.   but, can't mix want do.... regards , christophe pichaud   mcsd, mcsd.net, mcts net 2.0 www.christophep.com   christophe pichaud Architecture  >  Architecture General

Why does this compile

i curios find out why compiles string test = "test";;;;; a semi-colon empty statement. c# (and c++, java, , languages) don't care white space compiler reads assignment string followed 4 empty statements. convert between vb, c#, c++, & java (http://www.tangiblesoftwaresolutions.com) instant c# - vb c# converter instant vb - c# vb converter Visual Studio Languages  ,  .NET Framework  >  Visual C#

C# static Data Access Layer

hola, this c# data access layer. example, cosider following 2 code snippets 1 using static class dataaccesslayer , other non-static class dataaccesslayer. what pros , cons of static dal if gui asp.net or mvc page in web application. , if think question out of scope of forum, if gui windows form in dirstributed application? please expert inputs. code snippet 1: //dal using system; using system.configuration; using system.data.sqlclient; using system.data; static class dataaccesslayer { private static string connectionstring { { connectionstringsettingscollection connectionstringsettings = configurationmanager.connectionstrings; return connectionstringsettings["connectionstring"].connectionstring; } } public static datatable select(sqlcommand commandsql) { datatable dattable = null; try { using (sqlconnection connectionsql = new sqlconnectio

Visual Studio closes when I try to llok at project properties

if @ project's properties in visual studio 2008, right clicking on project , selecting properties, or selecting project main menu , selecting properties, visual studio closes. this happens more 1 solution not @ time: have had happen 3 different solutions can @ properties of 1 caused vs close. the application event viewer shows 3 errors in succession: source=.net runtime time=15:40:24 category:none event id=1023 .net runtime version 2.0.50727.3053 - fatal execution engine error (7a035e00) (80131506) source=.net runtime time=15:40:24 category:none event id=1023 .net runtime version 2.0.50727.3053 - fatal execution engine error (7a2e0f92) (0) source=devenv time=15:41:03 category:none event id=0 description event id ( 0 ) in source ( devenv ) cannot found. local computer may not have necessary registry information or message dll files display messages remote computer. may able use /auxsource= flag retrieve description; see , support details. following information part of event: data

Connection Issue

hello all,   hoping can weird issue.   i have 2 web servers connecting third server has sql 2005 database (named instance). one web server in dmz , other along database server inside our lan. both of these web servers connect sql 2000 database (default instance) on same server sql 2005 without issues the web server inside of lan (windows 2003) able connect 2005 database without issue. the 1 in dmz (windows 2000) cannot , receives a named pipes error when trying connect via sql native client   when attempting connect via connection string without odbc in .net 1.1 application (using same data works web server inside lan) -> sql server not exist or access denied.   we have opened ports 1434 , 1433 access dmz lan after doing research has not helped. have remote connections named pipes , tcp/ip turned on well.     any assistance issue appreciated.   thanks! probably sql server ok. network problem. have checked firewalls/proxies? possible establish co

PHP API AdGroup ID format

hi guys, there supports php bing api library?  i have problem adgroup id formats. first of all, "addadgroupsrequest" i'm gettings such result in "$response->adgroupids->long[0]": float 1.1368950466744e+15 which equals "1136895046674400". real id "1136895046674416", we're losing 2 last digits here. going further, when trying add ad's "addadsrequest", i'm getting "the adgroup id invalid" message because library converts such long id's above integer, results in 2147483647 number, seems be largest positive value of signed integer in 32-bit systems. here code library, file 'bingads/v10/campaignmanagementclasses.php': /** * adds 1 or more ads ad group. * @link http://msdn.microsoft.com/en-us/library/dn277506(v=msads.100).aspx addads request object * * @uses ad * @used-by bingadscampaignmanagementservice::addads */ final class addadsreques

Displaying web pages on c# UI

we have html5 based web pages internally uses web socket. when lunach these web pages in chrome version 27.0.1453.116 m gets luanched properly. when try lauch index.html page using navigate method(using dot net() version 4.0 , web browser control property) not launched on web browser control. how can run index.html using web browser or else can display web page on .net control. maybe related issue : http://connect.microsoft.com/visualstudio/feedback/details/736253/ie9-webbrowser-control-does-not-render-animations-like-in-ie9 others solve making changes registry: http://stackoverflow.com/questions/4612255/regarding-ie9-webbrowser-control/4613025#4613025 regards joon Visual Studio Languages  ,  .NET Framework  > 

Problems with WSE and HTTPS

i'm trying add web reference wse 2.0 sp2 web service using visual studio 2005.  web service using https.  when try , add web reference, it'll find it, when click add reference, error message says, unable download following files . https://myurl.com/service.asmx?wsdl do want skip these files , continue? other times when try add it, finds service tells me, "the servicepointmanager not support proxies https scheme." other times, when open sample project given me web reference added , try update web reference, creates proxy code, creates proxy code regular web service instead of wse web service. so i'm having kinds of problems!  ideas on of this?  have installed wse 2.0 sp2 on machine, , i'm running behind proxy (i have no trouble browsing services in web browser). jon Archived Forums A-B  > 

Function to check for null and change to string?

let's have this. if strname null strvar end being null: string strvar = "hello " + strname; is there predefined function check if it's null , replace valid string? example: string strvar = "hello, " + isnull(strname, "i have no name"); //result: hello, have no name thanks. you can check before add strvar, using this if(!string.isnullorempty(strname)) { // u need } or can make ternary if after add strvar one string strname = ""; // empty value string strname = strname.equals("") ? "i have no name" : strname; string strvar = "hello " + strname; web developer Visual Studio Languages  ,  .NET Framework

A question about functionality in this code snippet

can please answer few questions regarding example? questions below example. unsafe static void testmethod() { // assume following class exists. //class point //{ // public int x; // public int y; //} // variable pt managed variable, // subject garbage collection. point pt = new point(); // using fixed allows address of pt members taken, // , "pins" pt not relocated. fixed (int* p = &pt.x) { *p = 1; } } questions: what "&" operator directly before "pt.x" in case (i know it's typically , operator)? what significance of asterisk (*) being after data type? what significance of asterisk (*) being before variable had asterisk after data type? i know asterisk has memory pointer variable, not sure of significance of being after data type, before variable , how plays "fixed" statement. understand fixed statement causes variable no

UDDI configuration with Microsoft.Practices.ESB.UDDIPublisher keeps failing to run correctly

when try run publisher application registration of esb webservices keep getting error. searched of internet , found hints ssl checked in uddi server (not case.). looked in service trace viewer , found exception thrown when running publish application. (details below). error : error 285012: unexpected error occurred retrieving business information in uddi business name, 'microsoft.practices.esb.uddi3.uddiclientexception: error 285008: unexpected error occurred retrieving uddi business information business name 'system.servicemodel.faultexception server stack trace:    @ system.servicemodel.channels.servicechannel.handlereply(proxyoperationruntime operation, proxyrpc& rpc)    @ system.servicemodel.channels.servicechannel.call(string action, boolean oneway, proxyoperationruntime operation, object[] ins, object[] outs, timespan timeout)    @ system.servicemodel.channels.servicechannelproxy.invokeservice(imethodcallmessage methodcall, proxyoperationruntime operation)    @

Unable to connect to DocDB via REST API.

getting following error message { "code": "unauthorized", "message": "the input authorization token can't serve request. please check expected payload built per protocol, , check key being used. server used following payload sign: 'get\ndbs\n\nmon, 16 feb 2015 23:01:28 gmt\n\n'" } all trying list dbs under account using nodejs here code: i have replaced original master code , doc db url security purpose var rest = require('restler'); var targeturl = "https://xyzdocdb.documents.azure.com/dbs";      var verb = "get";      var resourceid = "";      var resourcetype = "dbs";      var headers = ["'x-ms-date' : 'mon, 16 feb 2015 23:01:28 gmt'", "'date' : 'wed, 18 feb 2015 05:59:28 gmt'"];         var masterkeybase64 = "my master key";      var authheader = getauthorizationheader(verb, resourceid, r

Accessing app part's configuration data from start page

i am working on a sharepoint-hosted app. users can configure app part using edit pane. now, start page (full immersion experience) use configuration data , update automatically. app part , start page use different aspx pages/js files. how can access edit pane's data start page? thanks, alex hello, not possible, sorry. configuration of webpart available part itself.  alternative provide own configuration mechanism/pages/storage doesn't relay on webpart configuration; couple of apps on the store , in cases can provide friendlier inline experience.   thanks program manager, office developer platform. SharePoint  ,  Apps for Office and SharePoint  >  Developing

convert the schema

Image
i need convert schema into  below schema can guide me how convert given schema following schema. you can just edit original schema in schema editor. or can use original schema if still need it. here can use type definitions original schema in result schema. for example, in original schema can click record importreturn , define "base data type" parameter it. open result schema , import (or insert) original schema. create importreturn record , define "data structure type parameter. structure of original importreturn shown in result importreturn record. changes in original importreturn propagated result record. kind of object ingeritance. leonid ganeline [biztalk mvp] biztalkien: advanced questions: have fun - test knowledge BizTalk Server  >  BizTalk Server Genera

Azure Mobile Apps for an Android app with Google Maps

hello, i'm pretty new azure, , looking bit of advice on services should use back-end of android app. better explain needs, here quick breakdown of app:  android app uses google maps android api allow users view , submit blocked bike lane incidents in philadelphia users able submit incidents cloud database, view incidents submitted other users. each incident includes info on location, date/time, photo stored in database the app part of master's thesis project, , funding limited. chose azure because qualified dreamspark education program, provides free access year i completed android quick start provided azure, , app sends data default "todoitem" database i rather new back-end dev, , i'm bit unsure of whether azure mobile apps serve these requirements, or if l or should explore using mongodb parse server instead?  if decide go azure mobile apps, should use azure documentdb?  additionally, research, know it's possible use mongodb (through mlab) ,

Debugging C# services

i found several documents describing how debug services in visual studio c#, loosely defined. i looking clear sample project. who can me? thanks, keesgijs hi,   there 2 options, both required code windows service.   1) if service running, open project in vs in debug menu select attach process, find service process , click attach. should enable debugging of running service 2) other approach write custom application , imitates windows service – not installing windows service, using “library” test code.   if have, questions not hesitate ask.   cheers,    jakub g Archived Forums V  >  Visual C# IDE

C# Register for COM Interop with external dll (copy local = false)

i have project "register com interop".  it references few dlls, not copied locally (intentionally).   because of this, register coms fail because can't find dlls, though relative paths set in "project references".   is there way around this? what type of application this: web, winform? we had same issue our iis server couldn't find .dlls mvc app.  had install latest version of mvc (3) in order make teh .dlls available. jboyd Visual Studio Languages  ,  .NET Framework  >  Visual C#

How to use mssql.open

hi, can me exact syntax of mssql.open function documentation of seems incomplete. for better or worse, docs sparse on - basic documentation @ http://msdn.microsoft.com/en-us/library/windowsazure/jj554212.aspx   you've been there.  there small link on page github page corresponding node package (as couple of important caveats use in mobile services vs "regular".) https://github.com/windowsazure/node-sqlserver the big things are: you not provide connection string...mobile services handles behind scenes connecting db attached mobile service (other posts exist using other packages connecting other databases.) where msdn content mentions "options", means use success/error callback function options use elsewhere in mobile services scripts.  success callback open include "connection" object parameter.  error callback received description of error occurred.  believe more insight operations can performed on connection object defined in code @

Dropdown using Office UI Fabric not rendering properly

Image
while designing apps office using office ui fabric components. i facing issue in designing drop-down. its coming shown in below image. i have included files in html page: <script  src="https://code.jquery.com/jquery-3.1.1.min.js"></script>   <link rel="stylesheet" href="https://appsforoffice.microsoft.com/fabric/1.0/fabric.min.css">  <link rel="stylesheet" href="https://appsforoffice.microsoft.com/fabric/1.0/fabric.components.min.css">  <script src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.7.2/fabric.min.js"></script> and calling "$('.ms-dropdown').dropdown();" on document load. hi pooja, do mean there are no items in dropdown list? if so, share html , related js reproduce issue in simple html page? i made test below, works correctly. //html reference <script src='https://cdn.rawgit.com/mikewheaton/office-ui-fabri

Will the static checker ever be able to prove String based asserts (involving trim, contains, ...) ?

hi, static checker ever able check asserts these ? imports system.diagnostics.contracts public class class1 sub test() dim str string str = "log.log" contract.assert(str.contains(".")) contract.assert(str.length > 4) contract.assert(str.trim.length > 4) end sub end class generates following warnings: class1.vb(7,9): warning : contracts: assert unproven class1.vb(9,9): warning : contracts: assert unproven hi alexander,   hope ;-) 1 of things want work in next months/year. ciao, f DevLabs  >  Code Contracts

Who can solve this problem? Is there any genius?

hi (genius people),                  getting problem consuming web service. here scenario, i have web application in vb.net 2005 (asp.net 2.0) , web service made in c#.net 2003. have deployed web service well. can accessed through browser. can add web reference in web application. after deploying webservice (and after checking through browser) when try run web application gives big error " server application unavailable ".  if refresh iis , run web application runs well, when web method of web service called in web application gives exception " unauthorized " (looks web-service not running, can't accessed through browser). in net shell, can if iis refreshed , of web (application or service) run first work fine other not work then (that run @ second turn). i have checked properties of web service, windows authentication enabled, anonymous access enabled, every thing fine, problem come. there fault in vs.net 2005? or in vs.net 2003 ? or in compatibility? what&

C# - Convert ASCII to integer value

hi guys,   i have string array data looks number, in example: [ '1', '0' ]   i need use these characters , make them calculation were integers. i trying line below:   code snippet int myint = convert .toint16 (myarray[x])   sometimes integer value, others ascii code (49 instead of integer value of '1') how can fix it? thanks in advance, aldo.       i it! since myarray char[] first have convert character string, integer: code snippet int = convert .toint16( convert .tostring(arraya[c1]));   Archived Forums V  >  Visual C# IDE

Probelm with Regular Expression (Backtracking)

hello, my original  program [large project] became slow because of backtracking of regular expression. taking time not match.  the same logic , input parameters used in different test (small) program. there execution time pretty fast. i debugged self @ regular expression statement. takes different execution times in 2 different programs. can body please tell me how same logic , same inputs can give 2 different execution times in c#? thanks in advance regards, amar ankatha    amar ankatha try moving large file c:\ drive , see if time improves. jdweng Visual Studio Languages  ,  .NET Framework  >  Visual C#

Filter listboxitems

i have listbox showing entries of items xml data file.  i allow user filter entries based on button input.  some of buttons same property, need sort of or boolean filter.  for example, display items (large || medium).  but have multiple properties, , able filter according each.  something items (large or medium) , (sea or air). are there tutorials or advice on how this? hi, one of new features included in sl3 collectionview allows perform set of complex operations against server side data. here can find tutorial how use it. hope helps! sergio garrido. mi blog Expression  >  Expression Blend + SketchFlow

Im trying to excersize on substring but its not working good

the code is: private void test() { int countfiles = 0; byte[] a; string starttag = "t256=\""; string endtag = "\""; int starttagwidth = starttag.length; int endtagwidth = endtag.length; index = 0; w = new streamwriter(@"c:\test.txt"); while (true) { index = f.indexof(starttag, index); string test = f.substring(index , starttagwidth); if (index == -1) { break; } the starttag t256= endtag should 1 qouta " i need find between t256 , " for example if have t256="hi mose" need hi mose for im getting t256= what should next ? ( substring testing far not need in final result ) danieli hi danieli, i found old code in library.  it working fair requirement. private void form

Error : Database &#39;msdb&#39; cannot be opened

while right click on table an exception occurred while executing transact-sql statement or batch (microsoft.sqlserver.connectioninfo) additional information: database 'msdb' cannot opened. has been marked suspect recovery. see sql server errlog more information. (microsoft sql server, erroe:926) whats remady issue what mean anytable ? guess accessing tables of msdb right ? as can see msdb suspect mode have restore known backup. backup because easy so. cheers, shashank please mark reply answer if solved issue or vote helpful if helped other forum members can benefit my technet wiki articles mvp SQL Server  >  Getting started with SQL Server

help me in my (select & in) statement

Image
i wanna select inventories inventories table must exist in going_in table ----------- going_in table ------------------ inventories table        in example case wanna select inventory (10,2,6) cause exist in going_in table hi, select * going_in pk_inventory_id in (select pk_inventory_id inventories) thanks , regards, rishabh SQL Server  >  Transact-SQL

Mixed schema structure

how can make better schema structure below positional data. "vi"|"a"|"18767684744162"|"hr1824"|"f o m g"|"946429145"|"07282009"|""|"125 east barstow avenue"|"suite 000"|"fresno"|"nj"|"08857"|""|"us"|"5592265057"|"4592541281"|""|""|""|""|""|"1047"|"medical service provider (prescription)"|""|""|""|""|"07282009"|"heeman"|"07252009"|"system" thanks, raja hi and have sent flat file schema should ok instance. decided generate new schema using flat file wizard instead of changing yours. let me know if helps. eliasen, representing himself , not company works for. three times mvp , 3 times mcts in biztalk. blog: http://blog.eliasen.dk

create controlls dynamically and fill from database

hai friends  i have 1 query   like select txt1,blob1,blob2,blob3 address  txt1='500'";   have data i need create in c# controlls dynamically in c# from and fill data query after creating these controlls in c# form how can create these controlss dynamically , fill data  regards hotn thought hello, to create controls use data provider such sqlclient or oledb. use oldedbcommand , oledbreader or sqlclientcommand , sqlclientreader , populate datatable. row count datatable , use statement loop thru results. datacolumns have property type , somehow decide how handle loading data. simple static example of creating controls dynamically no regard above, need adapt working datatable. int topindexer = 40; (int x = 0; x <= 4; x++) { textbox tb = new textbox { name = "textbox" + x.tostring(), top = topindexer + x, left = 20 }; this.controls.add(tb); topindexer += 40; } now use ide data wizards in tangent datagridview and/or static con

Obtaining URL to a selected file in OneDrive or SharePoint in Office 365

Image
the picture below onedrive showing 1 of files has been selected.  there method obtaining url to a selected file in picture accessed using service and/or javascript. idea able open file custom "open file" method showing in office web app referred file's extension. goal open ooxml based file direct editing of ooxml file using web language javascript or other. thank you jim hi jim, what developing? developing onedrive add in, sharepoint add ins or office 365 apis? forum used discuss office add ins, impossible achieve requirement office add ins. it helpful if share more information project, , provide more helpful suggestion. best regards, edward 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. Microsoft Off

BizTalk 2013 R2 - Oracle client (Insert into Multiple tables) CompositE Transaction

i know there composite transaction of  inserting multiple tables in sql. is there way can have inserts multiple table @ once ? if yes, can please provide step step procedure achieve   mbh here link on using oracle db w/ composite operations:  performing composite operations on oracle database using biztalk server rachit please mark answer or vote helpful if reply does BizTalk Server  >  BizTalk Server General

Text retrival from xmldocument message?

in present scenario calling swift send pipeline convert  input xml text message.... execute send pipeline have folling parameter apart fom pipeline type 1) input send pipeline message 2) ouput of pipeline taht b xmldocument or xlang message. in scenario m using xmldocument output message of sendpipeline. i m unable extract data xmldocument. can 1 let me know how i exract data.. xmldocument contain text data.. , xmldocument.outerxml not going work... tried fetch using innertext. but unable succeed. fred using method in helper class far easiest.  trust me, ;) BizTalk Server  >  BizTalk Server General

Can I have Application Insights without an Azure account in an UWP app

hi all, when creating uwp application visual studio automatically adding application insights sdk app, don't have azure subscription utilize it. is mandatory have azure subscription utilizing application insights? or the devcenter account have application insight support out azure subscription? thanks. hi, yes, azure subscription required using application insights. please keep in mind recommended solution monitoring uwp  apps   is hokeyapp, not application insights.  here blog post explaining transition process:  https://azure.microsoft.com/en-us/blog/transitioning-mobile-apps-from-application-insights-to-hockeyapp/  thanks. Visual Studio Development  ,  Visual Studio Team Foundation Server  > 

BizTalk Server 2010 VHD - Boot issue - Windows failed to start. Status: 0xc0000225‏

recently had downloaded biztalk server 2010 vhd from  http://www.microsoft.com/en-in/download/details.aspx?id=13624 as per instructions extracted files, resulted into  biztalk2010demo.vhd  file of 24.6 gb , other supporting files.   then tried start virtual machine windows server 2008 r2 hyper-v. but on starting machine getting error message as: 'windows boot manager windows failed start. recent hardware or software change might cause. fix problem:...' which same message presented on page  https://neosmart.net/wiki/0xc0000225/   the error  status: 0xc0000225  is same. there 40 gb of free space on drive containing vhd file.   i tried start virtual machine from  oracle vm virtual box  but getting same error. going through repairing option doesn't either. error still remains.     i tried extracting files twice 10 zip files provided result remains same. so wanted know if there issue in vhd file provided on site or miss