CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: sambo

Page 1 of 13 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    3
    Views
    1,123

    Re: Prevent outside world from using asmx file

    I realized that I had "Enable Anonymous Access" turned ON in IIS mgr. This was allowing any Tom, ****, and Harry to run my asmx via the anonymous IUSR_MACHINENAME acct.

    After doing that I realized...
  2. Replies
    3
    Views
    1,123

    Prevent outside world from using asmx file

    I have a webservice that I developed using VS2005. I then created a front end application that will make calls to the asmx page.

    The webservice (asmx file) has many functions that are proprietary...
  3. Replies
    3
    Views
    2,151

    Re: Array of string pairs

    I found out that you can't pass a multi-dimensional array to a webservice. So I just passed 2 single dimensional arrays. Messy, but it works.
  4. Replies
    3
    Views
    2,151

    Re: Array of string pairs

    Getting an error...


    string [,] aryKeys = new string[10, 2];
    int nKeysGenerated = 0;

    //error: CS0022: Wrong number of indices inside [], expected '2'
    aryKeys[nKeysGenerated][0] = "key1 first...
  5. Replies
    3
    Views
    2,151

    Array of string pairs

    I need to create an array that will hold an uknown (at compile time) number of string pairs.

    [0] = "pair1 first string", "pair1 second string"
    [1] = "pair2 first string", "pair2 second string"...
  6. Replies
    1
    Views
    1,735

    Re: kill synchronous call to webservice webmethod

    bump
  7. Replies
    1
    Views
    1,735

    kill synchronous call to webservice webmethod

    My client (consumer) application is making a call to a webservice that in turn downloads a file back to the consumer. This file transfer can take a long time and i want to provide the user a way to...
  8. Replies
    4
    Views
    987

    Re: handle connection attempt

    I'm curious how people out there handle connection attempts to the webservices. Certainly there must be some way to intercept a connection request and either allow or deny? Right?
  9. Replies
    4
    Views
    987

    Re: handle connection attempt

    Ok. That's good, but how do I even detect that there is a connection attempt. Something like...


    myService.OnConnection += new ConnectionHandler(handleConnect);

    private void handleConnect()
    {...
  10. Replies
    4
    Views
    987

    handle connection attempt

    I have a webservice written in c#. I simply want to handle (intercept) all connection attempts in order to validate the client IP.

    How do you handle a connection attempt in a webservice?
  11. Thread: XmlInclude

    by sambo
    Replies
    1
    Views
    3,234

    Re: XmlInclude

    I ended up removing the reference to the ArrayList type and replacing it with a direct reference to an ImageList[] class array. Like this...


    public bool FillArry(ImageList[] aryContainer)
    ...
  12. Thread: XmlInclude

    by sambo
    Replies
    1
    Views
    3,234

    XmlInclude

    I have 2 classes that are shared between my webservice and my client app (both in c#)...



    public class ImageFile
    {
    private string m_sFileName;
    private csAWCDefines.UploadType...
  13. Replies
    9
    Views
    7,431

    Re: validate client ip address is within range

    To pareshgh...

    I find it very interesting that you would give me negative feedback on a question I posed that you yourself gave an insufficient answer to.

    To answer your admonition about...
  14. Replies
    9
    Views
    7,431

    Re: validate client ip address is within range

    Check this out... its outstanding!

    NetCalculator
  15. Replies
    9
    Views
    7,431

    Re: validate client ip address is within range

    I am very familiar with the IPAddress class... but how does that answer my question? I don't see any functionality in that class that does what I am asking. Am I missing something?
  16. Replies
    9
    Views
    7,431

    validate client ip address is within range

    I have a range of IP address, 10.0.0.0/8 (which translates 10.0.0.0 to 10.0.0.255).... and I have an IP that I would like to validate is within this range. Like so...


    string sClientIP =...
  17. Replies
    3
    Views
    1,157

    Re: get MAC and IP of my NIC card

    Not sure how that article relates to my question. As you can see, I already have the MAC address. I am looking for a method to relate the MAC to the IP.

    Also, that article is native c++. My code...
  18. Replies
    3
    Views
    1,157

    get MAC and IP of my NIC card

    I am trying to find the IP address associated with a particular NIC card. If a PC has more than 1 NIC card, then it can have more than 1 IP address.

    So... given a particular IP address, how can I...
  19. Replies
    4
    Views
    2,560

    Re: loading bitmap locks file until dispose?

    I came up with another way. This also keeps the memory usage to a minimum


    public void SetBitmap(string sBitmapFullPath)
    {
    try
    {
    if (m_bitmap != null)
    {
    ...
  20. Replies
    4
    Views
    2,560

    Re: loading bitmap locks file until dispose?

    I'm not sure how to do this. I tried creating a new Bitmap class instance and then performing a Bitmap.Clone to copy the old bitmap to the new bitmap. But now I get the same error in reference to the...
  21. Replies
    3
    Views
    694

    Re: macro to add code documentation

    I knew there must be something simple... Thanks!
  22. Replies
    4
    Views
    2,560

    loading bitmap locks file until dispose?

    I am loading a bitmap from a file and using it as the background image of my form.


    string sBitmapFullPath = @"C:\picture.bmp";
    Bitmap bm = new Bitmap(sBitmapFullPath);

    Color col =...
  23. Replies
    3
    Views
    694

    macro to add code documentation

    Is there a macro or an add-in out there that will allow you to hi-lite the blue part and automatically generate the template for the red part? I think I had something like this for VBA at one time,...
  24. Replies
    7
    Views
    1,762

    Re: shaped sub-form inside mdicontainer

    FYI...

    I implemented both samples in my code. I found the codeguru sample to be much MUCH faster.

    Here is the explanation (taken from the codeguru article) as to why the codeguru version...
  25. Replies
    7
    Views
    1,762

    Re: shaped sub-form inside mdicontainer

    I also found a good sample right here on codeguru... http://codeguru.earthweb.com/csharp/csharp/cs_misc/graphicsandimages/article.php/c4259/
Results 1 to 25 of 316
Page 1 of 13 1 2 3 4





Click Here to Expand Forum to Full Width

Featured