Posts

Showing posts from April, 2010

Maps - External Assembly - Static class...unavailable

i using sso config tool richard seroter http://seroter.wordpress.com/2007/09/21/biztalk-sso-configuration-data-storage-tool/ i trying use utilities classes retrieve data sso. the helper class static class reason towards using in orchestrations. in 1 of maps using scripting functoid external assembly. i unable select helper "static" class in dropdown list configure script functoid. are static classes in external assemblies not allowed accessed through scripting functoid configured use "external assembly" ? why ?   i think forget mark method or class public   BizTalk Server  >  BizTalk Server General

write to a log file while running program as a normal user (log file created while running as administrator)

i wrote application called scheduled batch file. i else in batch file requires administrator rights have run administrator.  the log file first created when running administrator. now want run application normal user.  the issue writing log file fails because not have permissions it. this program run on multiple machines, while can manually change permissions of log file on dev machine, annoying manually everywhere.  any ideas programatically? i remember doing quick , dirty once before hardcoded username , domain wanted grant permission to. hi friend, do mean you want to run batch file administrator or application? if batch file, please try following code. in c#: ===================================================== try { processstartinfo procinfo = new processstartinfo(); procinfo.useshellexecute = true; procinfo.filename = @"cmd.bat"; //the file in dir. procinfo.workingdirectory = @""; //the working dir. procinfo.verb = "runas";

load multiple pushpins based on latitude and longitude from sql table in bing v8

now started migrate bing v8 control. struggling load multiple push pins based on our latitude , longitude. need retreive huge lat long sql server. how pass latlong values db javascript there 3 main ways this. first use asp.net , on page load or through script manager, connect db code behind (server side c# code) , retrieve data , pass down client. second option create web service connects database , returns data json. once have data on client matter of looping through , creating pushpins latitude , longitude values. option use ssrs report viewer.  here examples: https://social.msdn.microsoft.com/forums/en-us/3a3140d7-48a2-4a1a-8700-93197e07b1c7/accessing-wkt-from-sql-server-display-on-a-bing-map-gift-back-to-the-community?forum=bingmapsajax https://blogs.bing.com/maps/2013/07/31/how-to-create-a-spatial-web-service-that-connects-a-database-to-bing-maps-using-ef5/ http://technet.microsoft.com/en-us/library/ee240845.aspx http://ajaxmapdataconnector.codeplex.com/ https://co

Parsing HTML data from a webpage - the htmlelementcollection does not recognize the Table tag within the Form tag.

i have custom application uses javascript , renders information in webpage. in attempt parse html obtain text content, got structure of body.innertext below. <form> <table> <tr><td/><tr/> <tr><table>text interested in </table></tr> </table> </form> when use htmlelementcollection, can form tag, <table> within not recognized child. doing wrong? child count returned 0 in code below. htmlelementcollection elemcoll = null; htmldocument doc = webbrowser1.document; if (doc != null) { elemcoll = doc.getelementsbytagname("form"); foreach (htmlelement element in elemcoll) { messagebox.show(element.children.count.tostring()); htmlelementcollection tabelecoll = doc.getelementsbytagname("table"); } } thanks in advance! you mean “innerhtml” instead of “innertext”. otherwise simple text, not html table. can check value of element.innerhtml ? shou

Should I use AdMediatorControl in my C++ UWP app?

i have c++ uwp app uses adcontrol. there article https://msdn.microsoft.com/library/windows/apps/xaml/dn864359 telling can maximize ad revenue using admediatorcontrol in app. status of admediatorcontrol @ moment? work fine c++ uwp app? hi shamansoft, form install microsoft advertising libraries , can see ad mediation using admediatorcontrol class not supported uwp apps windows 10. server-side mediation coming uwp apps using same apis foe banner ads( adcontrol ) , video ads( interstitialad ). based on description, project windows 10(uwp), suggest use adcontrol add microsoft advertising. more detailed information adding ads in project, can refer to adcontrol in xaml , .net . best regards, cherry bu   msdn community support please remember click "mark answer" responses resolved issue, , click "unmark answer" if not. can beneficial other community members reading thread. if have compliments or complaints msdn support, feel free contact

Error on searching through a table for values

hey guys, i'm having problem updating table. gets information put every 5 seconds, different clients. checks if there client in table (it compares ip addresses) , updates if finds one, if not adds new row. when crashes error: "collection modified; enumeration operation might not execute". when searched around fix saw needed loop, cant think of how it, here relevant bit of code:                 if (clientinfo != null)                 {                     foreach(datarow dr in clienttable.rows)                     {                         string strdatarowip = convert.tostring(dr[0]);                         if (string.equals(clientid, strdatarowip))                         {                             dr.beginedit();                             dr[1] = clientvalue1;                             dr[2] = clientvalue2;                             dr[3] = clientvalue3;                             dr[4] = clientvalue4;                            

Why you can do "SqlConnection con = new SqlConnection(cn.ConnectionString)" injection?

hi friends. my english bad.... :p in work friends say: in sqlconnection conn = new sqlconnection(); can sql injection. question is: true or not? why? , correcto form? thanks answers. chargoy no. creating sqlconnection object cannot attacked sql injection. when pass parameterized query directly sqlcommand without using sqlparameters. below blog has explanation on it. http://www.codeproject.com/tips/492403/preventing-sql-injection-in-ado-net hope helps. please mark post answer if solved problem. happy programming! Visual Studio Languages  ,  .NET Framework  >  Visual C#

Stream Analytics job has validation errors: The input year2015input used in the query was not defined.

i error when try run streaming job. stream analytics job has validation errors: input year2015input used in query not defined. input aliases: year2015input query: select     * into     [historicaldataoutput] from    [year2015input] the source type reference. first query ever. trying grab input , pass on blob storage. seems ok except query editor not accept name of input. any idea? we resolved issue on email. input defined reference data, not data stream. asa can query data stream inputs. reference data static data can combined data stream using join operator. (asa can configured receive full snapshots of data on schedule). all asa queries must include @ least 1 data stream input. reference data can added data stream using join operator. Microsoft Azure  > 

BizTalk EDI looking for wrong schema.

hi, i’m receiving following error while receiving edi message. error encountered during parsing. x12 transaction set id '' contained in functional group id '110000758', in interchange id '400000767', sender id '<senderid>', receiver id '<receiverid' being suspended following errors: error: 1 (miscellaneous error)                 6: finding document specification message type "http://schemas.microsoft.com/biztalk/edi/x12/2006_companyname#x12_ 00300 _850" failed. verify schema deployed properly. i don’t know why searching “x12_ 00300 _850”, whereas should http://schemas.microsoft.com/biztalk/edi/x12/2006_companyname#x12_ 00302 _850 . give setting part? have made agreement same other environment in working. i have read other links answer because schema not deployed. here, looking wrong schema. can check setting? thanks. kunal g hi kunal, as boatseller suggested , discovered "version determined fir

regarding RFID

good morning all,   hi new forum. have project in mind using rfid. here discussing project details.   its school application. want use rfid tags in students identity cards(id cards).  can take their attendance , movements.   kindly guide me how approach task using biztalk rfid technology in asp.net.   awaiting valuable guidlines.     with regards mahaboob you can integrate biztalk server applications biztalk rfid-enabled applications in several ways, including following: • using biztalk sql adapter receive event data stored in rfidsink database (receive scenario) • using biztalk sql adapter send request rfidsink database , event data response (solicit-response scenario) • using web service exposed biztalk rfid biztalk orchestration (solicit-response scenario)   we have samples demonstrating how integrate biztalk server biztalk rfid.you can find download package sample online @ samples @ http://msdn2.microsoft.com/en-us/biztalk/bb608378.aspx .

Unable to connect to SQL instance with SMO via C#

i having situation occur quite odd.  have instance of sql 2008 r2 adventureworks db attached.  if try connect database sqlconnection object, works expected.  need use smo , connection failing when using same connection string.  , mean same - using same const value within same method.  below code, along notation of fails , error message is: public void testsqlconnection() { const string constring = @"integrated security=sspi;data source=maindev\sqlexpress;persist security info=false;initial catalog=adventureworks2008r2"; const string databasename = "adventureworks2008r2"; // first try connect sqlconnection sqlconnection conn = new sqlconnection(constring); try { conn.open(); system.diagnostics.debug.write(string.format("via sqlconnection: {0}", conn.state)); } catch (exception ex) { showexception(ex); } { conn.close(); } // try using smo obj

How to generate a message that doesn't have all those includes. (Supress namespaces)

ok maybe it's quite simple have no idea look. i have pretty complicated schema ( details see here : http://bloggingabout.net/blogs/wellink/archive/2010/09/30/download-all-files-referenced-in-an-xsd-locally.aspx  ) baisically boils down following : a lot of codelists contained in own xsd a base entity xsd build uses codes codelists a specific entity xsd build , uses base enitity finally message build specific entities now if generate message / map / or whatever, i end message has namespaces of codelists defined. this... < ns0:delivery xmlns:ram =" urn:un:unece:uncefact:data:standard:reusableaggregatebusinessinformationentity:3 " xmlns:ns34 =" urn:un:unece:uncefact:codelist:standard:unece:reportingthresholdtriggertype:d07a " xmlns:ns77 =" urn:un:unece:uncefact:codelist:standard:6:3055:d07a " xmlns:ns94 =" urn:un:unece:uncefact:codelist:standard:unece:contractortype:d09a " xmlns:ns3 =" urn:un:unece:uncefact:cod

Compare two char arrays

hi  so im new c# , im trying figur out have problem. want compare 2 char arrays 1 string converted array (textinputtecken) , other 1 char array containing vowels (vokaler). want change vowels in textinputtecken letter i, have way of doing without char array vowels (vokaler).  (int = 0; < textinputtecken.length; i++) { if (textinputtecken[i] == 'a' || textinputtecken[i] == 'e' || textinputtecken[i] == 'i' || textinputtecken[i] == 'o' || textinputtecken[i] == 'u' || textinputtecken[i] == 'y' || textinputtecken[i] == 'Ã¥' || textinputtecken[i] == 'ä' || textinputtecken[i] == 'ö' || textinputtecken[i] == 'a' || textinputtecken[i] == 'e' || textinputtecken[i] == 'i' || textinputtecken[i] == 'o' || textinputtecken[i] == 'u' || textinputtecken[i] == 'y' || textinputtecken[i] == 'Ã…' || textinputtecken[i] == 'Ä'

Why we need a struct? When to use it?

Image
i'm rookie in c#, was reading demo projects recently , found modle class, , don't konw why need struct, it seems same class. difference them? why need use struct? hello, main difference structs passed\copied value , classes passed\copied reference i wrote demo illustrate statement. please have look here "pointclass" class pointclass { public int x,y; public pointclass(int x,int y) { this.x = x; this.y = y; } } in main class class program { public struct pointstruct { public int x,y; public pointstruct(int x, int y) { this.x = x; this.y = y; } } static void main(string[] args) { pointstruct structpoint = new pointstruct(); structpoint.x = 10; structpoint.y = 10; console.writeline("initi

Unable to create Mobile Service

Image
lately have got azure trial subscription try out mobile services, whenever try create the new mobile service error message. there solution fix it? thanks, prashant prashant v c you activated mobile services subscription? if yes - try use browser.... if doesn't work add subscription "pay order.." or , open subscription. Microsoft Azure  >  Azure Mobile Apps

Is it necessary to pull logs from at least one VM to be able to pull Azure AD logs?

the article on log integration azure ad (https://docs.microsoft.com/en-us/azure/security/security-azure-log-integration-ad)  says " you must have completed steps in started  article ( https://docs.microsoft.com/en-us/azure/security/security-azure-log-integration-get-started) ". started article describes installing  azure log integration and setting collect logs vm. logically vm-related steps should not necessary not 100% clear 2 articles if skipping ok if want collect logs azure ad. please can confirm? hi simon - good point! let review statement , make sure more clear on absolute requirements are. you're correct, if don't want collect vm events, don't need collect them. thanks! tom learn more azure security @ azure security team blog Microsoft Azure  >  Azure L

HttpParseException - Parser error - could not create type - my ASMX webservice

something has gone wrong asmx web service project (using visual studio 2005 , wse 3.0); cannot run web service (it used work , have changed no source code). here current symptom: server error in '/trimbrokerservice' application. parser error description: error occurred during parsing of resource required service request. please review following specific parse error details , modify source file appropriately. parser error message: not create type 'trimbrokerservice.fileservice'. source error: line 1: <%@ webservice language="c#" codebehind="fileservice.asmx.cs" class="trimbrokerservice.fileservice" %> source file: /trimbrokerservice/fileservice.asmx    line: 1 version information:  microsoft .net framework version:2.0.50727.3053; asp.net version:2.0.50727.3053 application log: event code: 3006 event message: parser error has occurred. event time: 4/1/2009 1

Placing labels on the map (such as for vehicle identifiers)

hi all, i have switched silverlight maps standard map control due restrictions on our company network (terminal servers can't handle silverlight well).  i've successfuly migrated functionality standard control stuck on 1 item. labels. the application used track several hundred vehicles , unable display labels on map next custom icons using.  in silverlight quite simple stuck on how implement in version.  can me place simple labels on map? thanks in advance! there property on pushpin called textname can set point css class. can create styles make creating labels on map pretty easy. here code put seems have nice result: <! doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd" > < html > < head > < title > </ title > < meta http-equiv = "content-type" content = "text/html; charset=utf-8" > &

structure layout

i have use following structure using dllimport typedef struct {     long tpye;        lt l;          int       nl;          char      *kl;          int       kll;       bc1 bcl;         bc2 bch;     } m; lt,bc1,bc2  are enum. how above should be marshalled? what  hello s h1,   1. c++ , c# enums. >>  lt,bc1,bc2  are enum. how above should be marshalled? 1.1 enums in c++ integer types default. enums integer types in c# default. hence may translate them directly in c# c++ equivalents. 1.2 however, please read section 2 , other useful advise expounded below.   2. explicit declararion of enum type. to sure of matching types, declare underlying type enums. e.g. : c++ : enum lt : int {  lt_0 = 0,  lt_1 = 1,  lt_2 = 2,  lt_3 = 3 }; enum bc1 : int {  bc1_0 = 0,  bc1_1 = 1,  bc1_2 = 2,  bc1_3 = 3 }; enum bc2 : int {  bc2_0 = 0,  bc2_1 = 1,  bc2_2 = 2,  bc2_3 = 3 }; c#     enum lt : int     {