Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > namespace issue (very odd)

Thread Tools

namespace issue (very odd)

Posts: n/a
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?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR CS0234: The type or namespace name 'DataAccessHelper' does not exist in the namespace 'BCC' (are you missing an assembly reference?) ASP .Net 0 01-06-2006 11:31 AM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
Reaching into the default namespace when using another namespace. Jason Heyes C++ 1 11-19-2004 02:36 AM
Namespace: Is it a scope or a namespace? Anonymous C++ 3 08-18-2003 01:31 PM
Help:Why can't I use namespace System.Web? It is said that this namespace doesn't exist. But it should exist. ASP .Net 1 07-29-2003 04:31 PM