namespace issue (very odd)

Discussion in 'ASP .Net' started by mazdotnet, Jun 14, 2006.

  1. mazdotnet

    mazdotnet Guest

    Hi everyone,

    I have the following very odd problem (only happens on Windows 2003
    Server and not XP)

    In my class I have (no namespace)
    class test {
    ...
    public static void method (sforce.SforceService binding)
    {
    does something with binding
    }
    ...
    }

    In my code-behind I have

    namespace ns {
    class someclass {
    ....
    somemethod() {
    sforce.SforceService binding; // Define it
    test.method (binding); // Call the method in test
    does something
    }
    }

    Even though they are both referencing the same sforce.SforceService on
    Windows 2003 Server (not on XP) I get an error message that says
    parameter is incorrect
    since ns.sforce.SforceService is not the same as sforce.SforceService.
    It automatically appends ns to it (happens on on the production running
    Windows 2003 Server). Is there a way to force sforce.SforceService to
    stay as is and not become ns.sforce.SforceService?

    Thanks
    MA
     
    mazdotnet, Jun 14, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    348
  2. Raymond Arthur St. Marie II of III

    very Very VERY dumb Question About The new Set( ) 's

    Raymond Arthur St. Marie II of III, Jul 23, 2003, in forum: Python
    Replies:
    4
    Views:
    499
    Raymond Hettinger
    Jul 27, 2003
  3. shanx__=|;-

    very very very long integer

    shanx__=|;-, Oct 16, 2004, in forum: C Programming
    Replies:
    19
    Views:
    1,678
    Merrill & Michele
    Oct 19, 2004
  4. Abhishek Jha

    very very very long integer

    Abhishek Jha, Oct 16, 2004, in forum: C Programming
    Replies:
    4
    Views:
    445
    jacob navia
    Oct 17, 2004
  5. Sunjay Varma
    Replies:
    4
    Views:
    356
    John Roth
    Mar 10, 2011
Loading...

Share This Page