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. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.