Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
J

jkersch

@jkersch
About
Posts
20
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • namespace of WCF
    J jkersch

    well, if you ask how you could retrieve the service namespace from withing the client, thats not very complicated. your service proxy has an Endpoint property that contains information about the service endpoint. there you can find a contract-property that contains (with some other information) the namespace. it's up to you wheter you can use the service namespace in the client, but i guess in most cases where you just simply want to communicate with a service, do some stuff and disconnect after it, you don't have to bother with namespace on the client side. But at least there is the possibility to use it (like most of the stuff in WCF, hardly anyone will ever use ALL of its features ;) regards j.

    C# question csharp wcf com

  • WebRequest.Proxy
    J jkersch

    correct ;)

    C# question

  • namespace of WCF
    J jkersch

    hi george, well...i guess this depends on your scenario. if you just want to simply consume a webservice, you probably won't need adding namespaces to your servicecontracts. but if things get larger, complexer, ... i guess it's doesn't harm starting to add namespaces to you services, but as i said, if you're in a simple scenario, your clients probably don't care about namespaces at all. regards j.

    C# question csharp wcf com

  • namespace of WCF
    J jkersch

    well, at least in my company, we use namespaces e.g. for versioning. for example:

    [ServiceContract(Namespace = "http://www.mycompany.com/product/2007/12")]

    and

    [ServiceContract(Namespace = "http://www.mycompany.com/product/2008/08")]

    notice the difference? at least for us this eases versioning. but i guess this is just one reason for using namespaces

    C# question csharp wcf com

  • Windows Authentication
    J jkersch

    just use win32 api to impersonate with your user credentials. try something like [DllImport("advapi32.dll", CharSet=CharSet.Auto)] public static extern int LogonUser(String lpszUserName, String lpszDomain, String lpszPassword, int dwLogonType, int dwLogonProvider, ref IntPtr phToken); regards j.

    C# question com security tools

  • Help Passing ArrayList form C# to Javascript
    J jkersch

    have you tried using an old-school array instead of ArrayList? (i.e. yourArrayList.ToArray()) javascript is probably not capable of handling non-basic .NET types ;)

    C# csharp javascript html data-structures help

  • include windows explorer in c# App?
    J jkersch

    Hi there, i wonder if there is a way to include the windows-explorer in your own application. i need the abilty to show some folders with files in my app and it´s quite a lot of work to do the stuff with the ListView control. is there any way to include windows explorer in my app? maybe through some kind of activex? thanks jkersch

    C# csharp com question

  • Howto download a file from http-site
    J jkersch

    have you tried the WebClient class? WebClient w = new WebClient(); w.DownloadFile(address_str,file_str); //if you want to hold the file only in memory, try // w.DownloadData() //for parameters check msdn this is maybe a lot simpler than working with HttpWebRequest objects ;) best regards j.

    C# tutorial csharp question

  • saving a remote binary file (swf) locally with c#
    J jkersch

    You could also try the following (very simple) code: System.Net.WebClient wc = new System.Net.WebClient(); wc.DownloadFile(URIString,FileNameString); maybe this is not that complicated for such a trivial task. best regards jkersch

    C# csharp php com adobe debugging

  • Nesting Invalid HTML in XML Docs
    J jkersch

    tried ?

    XML / XSL php question csharp html design

  • SOAP Web Service in Win Forms Application?
    J jkersch

    hi there, i just wondered if it is possible to "host" a .NET WebService withing a WinForms Application ( and not as ASP.NET stuff in IIS). I know this is no Problem in Java and i´d like to know if i can do this with C#. we´re developing a business software and we want our WebService in our Application (encapsuled in a Plugin). well...is this just possible? i tried to just let my class inherit from System.Web.Services.WebService but i have no idea how to access this "WebService" Object. any ideas? thanks jkersch

    C# csharp java asp-net winforms wcf

  • Windows Service networking restrictions?
    J jkersch

    i tried my account (is in domain admin group),tried local system account (ok,now i know that this definitely doesn´t work ;) and Domain Administrator Account, it´s all the same. now i just run the networking stuff wrapped in a commandline tool with task scheduler, but a windows service would my favourite choice... thanks though j.

    C# sysadmin question

  • Windows Service networking restrictions?
    J jkersch

    hi there, today i realized a really strange behaviour of windows services. i made a windows service that regularly checks some network services. i wrote a class to perform these checks. it works perfectly when i wrap it into a userspace program (command line). but the same piece of code always refuses to connect when wrapped into a windows service. is there something i have to obey when doing network programming with windows services? thanks, j.

    C# sysadmin question

  • Test Network Services with C#?
    J jkersch

    hi there, i´m figuring out what´s the best way to check network services with c#? i want to check if RDP and ICA Services are up on my servers. i tried to just open a TcpClient and if it throws an exception on connect() i guessed it´s unavailable. But thos didn´t work for me. it always throwed the exception though the service was online. increasing timeout-values didn´t work either. i also tried connecting via System.Net.Socket but i gut the same results. any ideas how i can check network services with c#? best regards from .at

    C# csharp sysadmin question

  • cannot invoke method via reflection...?
    J jkersch

    i finally found the error. my (public) run-method wanted to have object[] Myparameters as argument. i wanted to invoke it with methodobject.invoke(classobject,object[] MyParameters). i wrapped the object[]-array my method uses in a second object[] array i.e. methodobject.invoke(classobject,new object[]{object[] MyParameters}); and it worked out of the box, thank´s a lot nevertheless, jkersch

    C# csharp help question

  • cannot invoke method via reflection...?
    J jkersch

    Hi there, i have a trie to invoke a method via reflection from Events.dll (the method that tries to create an instant of the class containing the method also resides in Events.dll) invoking method is : private void execute(string actionname,string[] parameters){ Assembly a = Assembly.LoadFrom("Events.dll"); Type[] ts = a.GetTypes(); Type t=a.GetType("IOW.NET.Events.StartProgram"); MethodInfo runmethod = t.GetMethod("run"); object obj=Activator.CreateInstance(t); runmethod.Invoke(obj,parameters); } Class StartProgram looks like this: namespace IOW.NET.Events { public class StartProgram: Event { public StartProgram(){} public void run(object[] parameters) { //do something } } } My Programs interrupts working when i call runmethod.Invoke(obj,parameters); any ideas where the error is? i just can´t find it. Events.dll is in the right directory, otherwise it would give me an error when i load the assembly from file. i can also read all types from the Assembly-object without problems. thanks for any hints best regards jkersch

    C# csharp help question

  • Drawing Window on Second Display...?
    J jkersch

    well, i´m using WinXP,SP2 German.but it should also work on win2kpro german. but normally displays won´t get disconnected. is it possible to select explicitely which of the connected displays to use showing forms? i know its possible to enumerate connected displays via native call EnumDisplayMonitors(NULL, NULL, MyInfoEnumProc, 0); but i didn´t get it to work by now via native calls. i wonder if there is possibility to do it with just .NET

    C# graphics question

  • Drawing Window on Second Display...?
    J jkersch

    Hi there, i wonder if there is a way to open a window on a specific display. i have workstations with 2 monitors attached, but programs always show on the first display. is there a way to open them on the second display? any ideas? thanks a lot jkersch

    C# graphics question

  • Restricting Form-Moving to horizontal?
    J jkersch

    well, i created a Bitmap as hwnd (a transparent images that resides on top of the screen (win32.getDC via native function in user32.dll) and i wonder how i can access window x and y position values and how i can get x and y of the mouse position. is there something like a mousemove event with native win32 windows? i have to bitmap hWnd to remain at the same x-position all the time. and ideas? thanks jkersch

    C# question

  • Restricting Form-Moving to horizontal?
    J jkersch

    hi there, i wonder if there´s a way to manipulate a window that i can only be dragged horizontal with mouse (i.e. vertical mouse movements are ignored). any ideas? thanks, best regards jkersch

    C# question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups