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
M

matthias s 0

@matthias s 0
About
Posts
662
Topics
254
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Asynchronous call of a dynamically loaded method?
    M matthias s 0

    Don't get mad at me, but I don't fully understand the lines where the new thread is started.

    N a v a n e e t h wrote:

    new Thread(delegate(object userState) { DataCarrier c = userState as DataCarrier; // use c.JobInfoInstance here info.Invoke(); c.Handle.Set(); }).Start(carrier);

    If I try to compile this in my code, I get the problem that I need to pass a parameter to the info.Invoke() method. Besides that, the WaitHandle doesn't contain a Set() method. Again, thanks for your help and patience.

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    C# question career

  • Asynchronous call of a dynamically loaded method?
    M matthias s 0

    Thank you very much for your reply. That looks very good and I'll test it as soon as I've understood it. ;) What I don't get is where do I put my parameters (the info object takes a JobInfo parameter) in there and what is the userState object used for? Kind regards

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    C# question career

  • Asynchronous call of a dynamically loaded method?
    M matthias s 0

    they might take quite some time for processing and they should run parallel. once all of them are done, i need to move on.

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    C# question career

  • Asynchronous call of a dynamically loaded method?
    M matthias s 0

    Hi, I'd like to invoke a couple of methods retrieved from multiple, dynamically loaded Assemblies (I have the MethodInfo objects) asynchronously and wait for all methods to finish processing before I continue. The method signature is: public void ProcessJob(JobInfo job); Can this be done? If so, how? Thanks in advance. Kind regards

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    C# question career

  • Configuration Files Location Problem
    M matthias s 0

    hi there, i'm building a small class library which will be used from classic asp (com interop), asp.net and for testing purposes from my console test application. the class library requires an app.config which i have created. a couple of settings are added to it. now my problem: in my console test application i've added a reference to the class library. everything works fine except that the class library doesn't read the configuration settings as i would expect. the values read using the ConfigurationManager.AppSettings["MySetting"] method always return null strings. i've been working with app.config files before and it always worked fine. i guess this might have to do with the hierarchy of configuration settings. i guess, if i would add the configuration file to the console app instead of adding it to the class library, everything would work fine. but this is not what i need. i need the configuration to be attached to the class library. does this have anything to do with installing the class library in the gac? do i need to do that? and if so, how do i do that? thanks for reading thus far. i hope i explained the problem properly. my english is not the best. any help is greatly appreciated.

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    C# com help question csharp asp-net

  • CSS floating div question
    M matthias s 0

    Hi there, I have a div in which I'd like to have a couple of floating divs. My problem is, the outer div has a border. But the border does not wrap around the floating divs inside. What am I doing wrong? a simple example:

    box 1

    box 2

    box 3

    .outer {border:solid 1px #000;} .inner {float:left; width:50px;} Can anyone help? Please note that I do not want to specify a width for the outer div, since it should fill whatever it is placed in. Thanks in advance! Matthias /matthias I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]

    Web Development help question css architecture tutorial

  • Tool to generate data
    M matthias s 0

    hi there, i'm looking for a free tool to to generate random testdata for sql server. do you have any ideas, experiences, links? thanks in advance!

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    Database database sql-server sysadmin question lounge

  • Moving page controls to a form and then the form back to the page?
    M matthias s 0

    Hello, first note that this code concerns .net framework 1.1. I'm having trouble with the following: I have a class derived from Page. In the Page_Load of this class I'd like to do the following:

    HtmlForm form = new HtmlForm();
    form.Name = "test";
    form.ID = form.Name;
    form.Controls.Add(_header); // user controls I've instanciated and loaded
    using LoadControl(...)
    form.Controls.Add(_menu);
    ...

    // add child controls from the derived page
    for(int i = 0; i < Page.Controls.Count; i++)
    {
    form.Controls.Add(Page.Controls[i]);
    }

    form.Controls.Add(_footer);

    Page.Controls.Clear();
    Page.Controls.Add(form);

    What I'd like to achive is to have a base page with a couple of controls on, from which i can derive further. The problem I'm having is, that on each round in the for loop, when I "read" the Page.Control at the given index, the Page.Controls.Count decreases by one. Could somebody please shed some light. Thanks in advance! Greetings from Berlin, Matthias

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    ASP.NET csharp database winforms help question

  • VS 2003 - Asp.Net Project Settings
    M matthias s 0

    thanks a lot. that helped.

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    ASP.NET csharp asp-net visual-studio debugging tutorial

  • VS 2003 - Asp.Net Project Settings
    M matthias s 0

    Hi there, it worked fine. For almost decades now: I create a C# Webproject and set the project options to Debugging->Always use IE = false (translated from german). When starting to debug the project it fires up with Firefox since this is my standard browser. Since a couple of days it does not work this way anymore. Eventhough Firefox is still my standard browser (yes, I checked tripple), IE will fire up when pressing F5. Any ideas on how to solve this? Greetings from Berlin, Matthias

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    ASP.NET csharp asp-net visual-studio debugging tutorial

  • Webservice Object Serialization
    M matthias s 0

    hi, I have an object called NewsItem which I'd like to return from my WebMethod GetNewsDetails. The object has got some properties (like LanguageID, Title and Text), some of which are readonly (like CreationDate). When I debug the project and look at my webmethod, the readonly properties are not mentioned in the soap-response-sample. Once I make them readwrite, it works fine (but kills my design). Can it be done to have a read only property being serialized as well? kind regards and thanks for any reply. edit: I'm using .net 1.1, if that matters.

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    ASP.NET csharp wcf design debugging xml

  • SoapException problem - Still nobody?
    M matthias s 0

    sorry for reposting this but i really need help on this one. i'm trying to fire a SoapException (thus returning it to my client) when an exception occurs. i've followed the steps in the documentation on how to set up a proper soap message (especially on how to provide a Details XmlNode). but once i run my webservice through the browser and call a webmethod firing such exception, i only get the Message-part of the SoapException back (as a string). what i'd need to get is a properly formatted SoapException with all the details i initially provided. does anyone know this problem? i guess i'm missing here something essential. kind regards!

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    ASP.NET help wcf xml tutorial question

  • Errorhandling in Webservices
    M matthias s 0

    don't worry about not solving the issue. it's the will that counts. ;) i'll look into the article, thanks! kind regards.

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    Web Development help sysadmin xml question announcement

  • Errorhandling in Webservices
    M matthias s 0

    but the first one matches the code i've posted:

    throw new SoapException(msg, SoapException.ServerFaultCode, actor, details);

    regards, matthias

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    Web Development help sysadmin xml question announcement

  • Errorhandling in Webservices
    M matthias s 0

    hey kubben, thanks for your reply. yes, i knew this already. but i've copy-pasted your code above into my project, just in case i missed something. the same result. the only return i get is the literal: "Fault occurred". i need to return a properly formatted soap response with a couple of details concerning the error? i was already wondering, if IE is "eating" the soap message and reducing it to this simple string. but it seems my IE settings are ok. kind regards

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    Web Development help sysadmin xml question announcement

  • Errorhandling in Webservices
    M matthias s 0

    hey, i've got a webservice with one webmethod. if an exception occurs in this method, i'd like to throw it (and transport it back to the client) as a SoapException. my code looks somewhat like this:

    [WebMethod]
    public News[] GetLatestNews(string subscriberKey, int count, string languageName)
    {
    try {
    // do something that throws an exception
    }
    catch (Exception ex)
    {
    string msg = "Internal Server Error: " + ex.Message;
    string actor = HttpContext.Current.Request.Url.AbsoluteUri;
    XmlNode details = BuildDetails(actor, ERR_SERVERERROR, msg);

    throw new SoapException(msg, SoapException.ServerFaultCode, actor, details);
    }
    }

    the method BuildDetails creates an XmlNode with some error information (as you can probably guess by looking at the signature). my problem is: when i start debugging the webservice, the page i get when i invoke the method shows only the error message. without any xml around it. but i'd like to have a proper xml-return which contains all of the information i've placed into the SoapException. what am I missing here? thanks in advance.

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    Web Development help sysadmin xml question announcement

  • Webservice XMLSerialization Question
    M matthias s 0

    hey pete, thanks for your reply. as for 1: i understand that my object makes up the contract you've mentioned (the structure of the returned xml). So I believe I as long as I don't change my returned object, everything should work fine for my clients. how would you do it? whats the best practise. in the article of chris (http://www.codeproject.com/cs/webservices/myservice.asp[^]), he's doing the same and the documentation doesn't really give me any useful information. as for 2: yes, it has the SerializableAttribute. 3: I'd like to tell my clients, well, if you have no permission, you'll get this type of response, if you passed in invalid arguments, you'll get that type of exception. my english is not so good, I hope you understand what I mean.

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    C# question xml json help tutorial

  • Webservice XMLSerialization Question
    M matthias s 0

    hi there, I'm currently building a webservice and I've got three questions: is there anything special i need to know about the returned xml? right now, I just return an object (for expample an instance of my Vehicle class) from the WebMethod and this looks fine to me. The second question is, if I use the automated xml serialization with a class which is derived from a base class I defined (e.g. I've got a Car class which derives from the Vehicle class), the properties of the baseclass are not serialized. Properties of the derived class look fine. Why is that? Last but not least: What is the correct way to return an error from a WebMethod if, for example the expected parameters are invalid or an exception occured. thanks a lot!

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    C# question xml json help tutorial

  • IIS pro needed - custom errors
    M matthias s 0

    Firstofall, thanks for your reply. I'm sorry. I didn't mention that this is an asp application, so no web.config available (in a asp.net application running on the same server and using the web.config settings it works fine). But for this asp application I used the IIS->Virtual Directory->Properties->Custom Errors Tab to configure the custom error pages. Can it be that, if you have .net installed, IIS ignores custom error settings because it believes, people will handle this in the web.config? Thanks again for your time.

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    ASP.NET help windows-admin question

  • IIS pro needed - custom errors
    M matthias s 0

    hi there, I've posted this already a week ago in the Web-Development board but didn't get an answer. I'm sorry for crossposting but I really need help on this one: I'm using iis 5 to run an asp application. I have custom error pages defines for the http errors 500 through 502 with an url value of /status_500.asp. The file exists for sure. i then created a testpage which does nothing more then a division by zero, hoping the error-page (there is just a response.write on it) will show up. whatever i do, i always get the standard runtime error page instead of my status_500.asp. does anyone know this problem? any help is greatly appreceated!

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    ASP.NET help windows-admin 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