473,591 Members | 2,810 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

someone please help me with this.....

This is the second time I am asking this question in this newsgroup
since I haven't got a solution or response from anyone in my previous
post & I need to resolve this issue desperately. Sorry for the double
post but I just didn't have any other option other than re-posting the
same question in this newsgroup.

Consider the following code in a VB class file:

Namespace LoginUserFetchD B
Public Class ZForZebra : Inherits SoapHeader
Public UserName As String
Public Password As String
End Class

Public Class GetDBRecords : Inherits WebService
Private sqlCmd As SqlCommand
Private sqlConn As SqlConnection
Public sHeader As ZForZebra
...............
...............
End Class
End Namespace

Using VBC. I compiled the above in LoginUserFetchD B.dll which resides
in the folder C:\inetpub\wwwr oot\ASPX\bin

Have a look at the line

Public sHeader As ZForZebra

Though the above code & the ASPX page which uses the above DLL works
without any problems, what I find is Visual Web Developer 2005 Express
Edition underlines the word 'ZForZebra' saying that

'ZForZebra' is ambiguous in the namespace 'LoginUserFetch DB'.

That's the reason why I used such an absurd class name 'ZForZebra'
since I am pretty sure that the .NET Framework won't be having any such
class name. Neither have I used such a class name in any of my class
files (or any other .NET related files) any time. I also tried using

Public sHeader As LoginUserFetchD B.ZForZebra

but that didn't make any difference.

After a lot of research, using the Object Browser, I concluded that
LoginUserFetchD B.dll not only exists in the above-mentioned bin
directory, it also exists at 2 more places:

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\9809 9ba2\_shadow\69 5771b\bin\2\

&

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\443e 485a\_shadow\ff 53954a\bin\2\

It was only when I deleted LoginUserFetchD B.dll from the above 2
folders did VWD 2005 stop highlighting this ambiguous name error.

Though I don't think that's could be the reason why VWD is highlighting
that error since in other VB class files using similar code, VWD
doesn't highlight the error. So how do I avoid the ambiguous name error
in VWD?

I don't understand what's causing the ambiguous error since I am more
than 100% sure that I have not used a class with the name 'ZForZebra'
anytime anywhere!

Someone please help me this time atleast.

I really doubt that this question is such a difficult question to
answer for ASP.NET MVPs & gurus.

Oct 14 '06 #1
7 1769
Is it an actual error (i.e., is it compiling) or is it just VWD reporting an
error in the editor?

If it's still compiling and working fine, I woudlnt' worry about it. I've
seen VS.NET 2005 report bogus errors in the past (although, a restart
generally solves the problem).

If it is a real issue, can you provide me with a zip of the project?

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
<rn**@rediffmai l.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
This is the second time I am asking this question in this newsgroup
since I haven't got a solution or response from anyone in my previous
post & I need to resolve this issue desperately. Sorry for the double
post but I just didn't have any other option other than re-posting the
same question in this newsgroup.

Consider the following code in a VB class file:

Namespace LoginUserFetchD B
Public Class ZForZebra : Inherits SoapHeader
Public UserName As String
Public Password As String
End Class

Public Class GetDBRecords : Inherits WebService
Private sqlCmd As SqlCommand
Private sqlConn As SqlConnection
Public sHeader As ZForZebra
...............
...............
End Class
End Namespace

Using VBC. I compiled the above in LoginUserFetchD B.dll which resides
in the folder C:\inetpub\wwwr oot\ASPX\bin

Have a look at the line

Public sHeader As ZForZebra

Though the above code & the ASPX page which uses the above DLL works
without any problems, what I find is Visual Web Developer 2005 Express
Edition underlines the word 'ZForZebra' saying that

'ZForZebra' is ambiguous in the namespace 'LoginUserFetch DB'.

That's the reason why I used such an absurd class name 'ZForZebra'
since I am pretty sure that the .NET Framework won't be having any such
class name. Neither have I used such a class name in any of my class
files (or any other .NET related files) any time. I also tried using

Public sHeader As LoginUserFetchD B.ZForZebra

but that didn't make any difference.

After a lot of research, using the Object Browser, I concluded that
LoginUserFetchD B.dll not only exists in the above-mentioned bin
directory, it also exists at 2 more places:

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\9809 9ba2\_shadow\69 5771b\bin\2\

&

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\443e 485a\_shadow\ff 53954a\bin\2\

It was only when I deleted LoginUserFetchD B.dll from the above 2
folders did VWD 2005 stop highlighting this ambiguous name error.

Though I don't think that's could be the reason why VWD is highlighting
that error since in other VB class files using similar code, VWD
doesn't highlight the error. So how do I avoid the ambiguous name error
in VWD?

I don't understand what's causing the ambiguous error since I am more
than 100% sure that I have not used a class with the name 'ZForZebra'
anytime anywhere!

Someone please help me this time atleast.

I really doubt that this question is such a difficult question to
answer for ASP.NET MVPs & gurus.

Oct 14 '06 #2
Only VWD reports this error; the class file compiles successfully & the
ASPX page using the DLL works fine in IE as well without any errors.

I agree with you that I shouldn't be worrying too much on it but I
would like to know WHY is VWD generating the error when I am more than
100000% sure that never ever in my life have I named a class
'ZForZebra' in any of the ASP.NET related files residing in my Intranet
server! Restarting doesn't resolve the issue.

Or, maybe it's a bug in VWD 2005 otherwise I don't find any reason for
VWD to report the error!.
Karl Seguin [MVP] wrote:
Is it an actual error (i.e., is it compiling) or is it just VWD reporting an
error in the editor?

If it's still compiling and working fine, I woudlnt' worry about it. I've
seen VS.NET 2005 report bogus errors in the past (although, a restart
generally solves the problem).

If it is a real issue, can you provide me with a zip of the project?

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
<rn**@rediffmai l.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
This is the second time I am asking this question in this newsgroup
since I haven't got a solution or response from anyone in my previous
post & I need to resolve this issue desperately. Sorry for the double
post but I just didn't have any other option other than re-posting the
same question in this newsgroup.

Consider the following code in a VB class file:

Namespace LoginUserFetchD B
Public Class ZForZebra : Inherits SoapHeader
Public UserName As String
Public Password As String
End Class

Public Class GetDBRecords : Inherits WebService
Private sqlCmd As SqlCommand
Private sqlConn As SqlConnection
Public sHeader As ZForZebra
...............
...............
End Class
End Namespace

Using VBC. I compiled the above in LoginUserFetchD B.dll which resides
in the folder C:\inetpub\wwwr oot\ASPX\bin

Have a look at the line

Public sHeader As ZForZebra

Though the above code & the ASPX page which uses the above DLL works
without any problems, what I find is Visual Web Developer 2005 Express
Edition underlines the word 'ZForZebra' saying that

'ZForZebra' is ambiguous in the namespace 'LoginUserFetch DB'.

That's the reason why I used such an absurd class name 'ZForZebra'
since I am pretty sure that the .NET Framework won't be having any such
class name. Neither have I used such a class name in any of my class
files (or any other .NET related files) any time. I also tried using

Public sHeader As LoginUserFetchD B.ZForZebra

but that didn't make any difference.

After a lot of research, using the Object Browser, I concluded that
LoginUserFetchD B.dll not only exists in the above-mentioned bin
directory, it also exists at 2 more places:

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\9809 9ba2\_shadow\69 5771b\bin\2\

&

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\443e 485a\_shadow\ff 53954a\bin\2\

It was only when I deleted LoginUserFetchD B.dll from the above 2
folders did VWD 2005 stop highlighting this ambiguous name error.

Though I don't think that's could be the reason why VWD is highlighting
that error since in other VB class files using similar code, VWD
doesn't highlight the error. So how do I avoid the ambiguous name error
in VWD?

I don't understand what's causing the ambiguous error since I am more
than 100% sure that I have not used a class with the name 'ZForZebra'
anytime anywhere!

Someone please help me this time atleast.

I really doubt that this question is such a difficult question to
answer for ASP.NET MVPs & gurus.
Oct 15 '06 #3
the reason it is "ambiguous" is likely because the class exists in two locations :

1. in the app_code folder where it is developed and
2. in the /bin folder where it is compiled.

you can only use one or the other.

Delete the /bin folder after confirming it will compile and continue your development work. For production only transfer the DLL to
the production server, not the app_code folder contents.


<rn**@rediffmai l.comwrote in message news:11******** **************@ k70g2000cwa.goo glegroups.com.. .
Only VWD reports this error; the class file compiles successfully & the
ASPX page using the DLL works fine in IE as well without any errors.

I agree with you that I shouldn't be worrying too much on it but I
would like to know WHY is VWD generating the error when I am more than
100000% sure that never ever in my life have I named a class
'ZForZebra' in any of the ASP.NET related files residing in my Intranet
server! Restarting doesn't resolve the issue.

Or, maybe it's a bug in VWD 2005 otherwise I don't find any reason for
VWD to report the error!.
Karl Seguin [MVP] wrote:
>Is it an actual error (i.e., is it compiling) or is it just VWD reporting an
error in the editor?

If it's still compiling and working fine, I woudlnt' worry about it. I've
seen VS.NET 2005 report bogus errors in the past (although, a restart
generally solves the problem).

If it is a real issue, can you provide me with a zip of the project?

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
<rn**@rediffma il.comwrote in message
news:11******* *************** @b28g2000cwb.go oglegroups.com. ..
This is the second time I am asking this question in this newsgroup
since I haven't got a solution or response from anyone in my previous
post & I need to resolve this issue desperately. Sorry for the double
post but I just didn't have any other option other than re-posting the
same question in this newsgroup.

Consider the following code in a VB class file:

Namespace LoginUserFetchD B
Public Class ZForZebra : Inherits SoapHeader
Public UserName As String
Public Password As String
End Class

Public Class GetDBRecords : Inherits WebService
Private sqlCmd As SqlCommand
Private sqlConn As SqlConnection
Public sHeader As ZForZebra
...............
...............
End Class
End Namespace

Using VBC. I compiled the above in LoginUserFetchD B.dll which resides
in the folder C:\inetpub\wwwr oot\ASPX\bin

Have a look at the line

Public sHeader As ZForZebra

Though the above code & the ASPX page which uses the above DLL works
without any problems, what I find is Visual Web Developer 2005 Express
Edition underlines the word 'ZForZebra' saying that

'ZForZebra' is ambiguous in the namespace 'LoginUserFetch DB'.

That's the reason why I used such an absurd class name 'ZForZebra'
since I am pretty sure that the .NET Framework won't be having any such
class name. Neither have I used such a class name in any of my class
files (or any other .NET related files) any time. I also tried using

Public sHeader As LoginUserFetchD B.ZForZebra

but that didn't make any difference.

After a lot of research, using the Object Browser, I concluded that
LoginUserFetchD B.dll not only exists in the above-mentioned bin
directory, it also exists at 2 more places:

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\9809 9ba2\_shadow\69 5771b\bin\2\

&

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\443e 485a\_shadow\ff 53954a\bin\2\

It was only when I deleted LoginUserFetchD B.dll from the above 2
folders did VWD 2005 stop highlighting this ambiguous name error.

Though I don't think that's could be the reason why VWD is highlighting
that error since in other VB class files using similar code, VWD
doesn't highlight the error. So how do I avoid the ambiguous name error
in VWD?

I don't understand what's causing the ambiguous error since I am more
than 100% sure that I have not used a class with the name 'ZForZebra'
anytime anywhere!

Someone please help me this time atleast.

I really doubt that this question is such a difficult question to
answer for ASP.NET MVPs & gurus.

Oct 15 '06 #4
Jon, all my ASPX pages reside in C:\Inetpub\wwwr oot\ASPX directory & I
don't find any folder named 'App_Code' within the ASPX folder though
numerous 'App_Code' folders exist as sub-folders within the C:\Program
Files\Microsoft .NET & C:\WINNT\Micros oft.NET folders but none of them
have any DLL named 'LoginUserFetch DB.dll'.

The ASPX folder has a sub-folder named 'App_Data' which has 2
database-related files - ASPNETDB.mdf & ASPNETDB_Log.ld f.

Any other ideas? Should I create a folder named 'App_Code' in the ASPX
folder, copy-paste all DLLs from the 'bin' folder (existing in
C:\Inetpub\wwwr oot\ASPX) to the 'App_Code' folder (& then delete the
'bin' folder) or re-compile all VB class files into DLLs (using VBC) &
save them in the 'App_Code' folder? Will that resolve the issue?
Jon Paal wrote:
the reason it is "ambiguous" is likely because the class exists in two locations :

1. in the app_code folder where it is developed and
2. in the /bin folder where it is compiled.

you can only use one or the other.

Delete the /bin folder after confirming it will compile and continue your development work. For production only transfer the DLL to
the production server, not the app_code folder contents.


<rn**@rediffmai l.comwrote in message news:11******** **************@ k70g2000cwa.goo glegroups.com.. .
Only VWD reports this error; the class file compiles successfully & the
ASPX page using the DLL works fine in IE as well without any errors.

I agree with you that I shouldn't be worrying too much on it but I
would like to know WHY is VWD generating the error when I am more than
100000% sure that never ever in my life have I named a class
'ZForZebra' in any of the ASP.NET related files residing in my Intranet
server! Restarting doesn't resolve the issue.

Or, maybe it's a bug in VWD 2005 otherwise I don't find any reason for
VWD to report the error!.
Karl Seguin [MVP] wrote:
Is it an actual error (i.e., is it compiling) or is it just VWD reporting an
error in the editor?

If it's still compiling and working fine, I woudlnt' worry about it. I've
seen VS.NET 2005 report bogus errors in the past (although, a restart
generally solves the problem).

If it is a real issue, can you provide me with a zip of the project?

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
<rn**@rediffmai l.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
This is the second time I am asking this question in this newsgroup
since I haven't got a solution or response from anyone in my previous
post & I need to resolve this issue desperately. Sorry for the double
post but I just didn't have any other option other than re-posting the
same question in this newsgroup.

Consider the following code in a VB class file:

Namespace LoginUserFetchD B
Public Class ZForZebra : Inherits SoapHeader
Public UserName As String
Public Password As String
End Class

Public Class GetDBRecords : Inherits WebService
Private sqlCmd As SqlCommand
Private sqlConn As SqlConnection
Public sHeader As ZForZebra
...............
...............
End Class
End Namespace

Using VBC. I compiled the above in LoginUserFetchD B.dll which resides
in the folder C:\inetpub\wwwr oot\ASPX\bin

Have a look at the line

Public sHeader As ZForZebra

Though the above code & the ASPX page which uses the above DLL works
without any problems, what I find is Visual Web Developer 2005 Express
Edition underlines the word 'ZForZebra' saying that

'ZForZebra' is ambiguous in the namespace 'LoginUserFetch DB'.

That's the reason why I used such an absurd class name 'ZForZebra'
since I am pretty sure that the .NET Framework won't be having any such
class name. Neither have I used such a class name in any of my class
files (or any other .NET related files) any time. I also tried using

Public sHeader As LoginUserFetchD B.ZForZebra

but that didn't make any difference.

After a lot of research, using the Object Browser, I concluded that
LoginUserFetchD B.dll not only exists in the above-mentioned bin
directory, it also exists at 2 more places:

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\9809 9ba2\_shadow\69 5771b\bin\2\

&

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\443e 485a\_shadow\ff 53954a\bin\2\

It was only when I deleted LoginUserFetchD B.dll from the above 2
folders did VWD 2005 stop highlighting this ambiguous name error.

Though I don't think that's could be the reason why VWD is highlighting
that error since in other VB class files using similar code, VWD
doesn't highlight the error. So how do I avoid the ambiguous name error
in VWD?

I don't understand what's causing the ambiguous error since I am more
than 100% sure that I have not used a class with the name 'ZForZebra'
anytime anywhere!

Someone please help me this time atleast.

I really doubt that this question is such a difficult question to
answer for ASP.NET MVPs & gurus.
Oct 15 '06 #5
sounds like the problem is you don't have a clean website defined in IIS.
You seem to have everything in the wwwroot folder.

--Create a website in IIS and then
--create the correct folder structure in that website
--put your files in the correct folders

http://15seconds.com/issue/050428.htm

<rn**@rediffmai l.comwrote in message news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
Jon, all my ASPX pages reside in C:\Inetpub\wwwr oot\ASPX directory & I
don't find any folder named 'App_Code' within the ASPX folder though
numerous 'App_Code' folders exist as sub-folders within the C:\Program
Files\Microsoft .NET & C:\WINNT\Micros oft.NET folders but none of them
have any DLL named 'LoginUserFetch DB.dll'.

The ASPX folder has a sub-folder named 'App_Data' which has 2
database-related files - ASPNETDB.mdf & ASPNETDB_Log.ld f.

Any other ideas? Should I create a folder named 'App_Code' in the ASPX
folder, copy-paste all DLLs from the 'bin' folder (existing in
C:\Inetpub\wwwr oot\ASPX) to the 'App_Code' folder (& then delete the
'bin' folder) or re-compile all VB class files into DLLs (using VBC) &
save them in the 'App_Code' folder? Will that resolve the issue?
Jon Paal wrote:
>the reason it is "ambiguous" is likely because the class exists in two locations :

1. in the app_code folder where it is developed and
2. in the /bin folder where it is compiled.

you can only use one or the other.

Delete the /bin folder after confirming it will compile and continue your development work. For production only transfer the DLL
to
the production server, not the app_code folder contents.


<rn**@rediffma il.comwrote in message news:11******** **************@ k70g2000cwa.goo glegroups.com.. .
Only VWD reports this error; the class file compiles successfully & the
ASPX page using the DLL works fine in IE as well without any errors.

I agree with you that I shouldn't be worrying too much on it but I
would like to know WHY is VWD generating the error when I am more than
100000% sure that never ever in my life have I named a class
'ZForZebra' in any of the ASP.NET related files residing in my Intranet
server! Restarting doesn't resolve the issue.

Or, maybe it's a bug in VWD 2005 otherwise I don't find any reason for
VWD to report the error!.
Karl Seguin [MVP] wrote:
Is it an actual error (i.e., is it compiling) or is it just VWD reporting an
error in the editor?

If it's still compiling and working fine, I woudlnt' worry about it. I've
seen VS.NET 2005 report bogus errors in the past (although, a restart
generally solves the problem).

If it is a real issue, can you provide me with a zip of the project?

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
<rn**@rediffma il.comwrote in message
news:11******* *************** @b28g2000cwb.go oglegroups.com. ..
This is the second time I am asking this question in this newsgroup
since I haven't got a solution or response from anyone in my previous
post & I need to resolve this issue desperately. Sorry for the double
post but I just didn't have any other option other than re-posting the
same question in this newsgroup.

Consider the following code in a VB class file:

Namespace LoginUserFetchD B
Public Class ZForZebra : Inherits SoapHeader
Public UserName As String
Public Password As String
End Class

Public Class GetDBRecords : Inherits WebService
Private sqlCmd As SqlCommand
Private sqlConn As SqlConnection
Public sHeader As ZForZebra
...............
...............
End Class
End Namespace

Using VBC. I compiled the above in LoginUserFetchD B.dll which resides
in the folder C:\inetpub\wwwr oot\ASPX\bin

Have a look at the line

Public sHeader As ZForZebra

Though the above code & the ASPX page which uses the above DLL works
without any problems, what I find is Visual Web Developer 2005 Express
Edition underlines the word 'ZForZebra' saying that

'ZForZebra' is ambiguous in the namespace 'LoginUserFetch DB'.

That's the reason why I used such an absurd class name 'ZForZebra'
since I am pretty sure that the .NET Framework won't be having any such
class name. Neither have I used such a class name in any of my class
files (or any other .NET related files) any time. I also tried using

Public sHeader As LoginUserFetchD B.ZForZebra

but that didn't make any difference.

After a lot of research, using the Object Browser, I concluded that
LoginUserFetchD B.dll not only exists in the above-mentioned bin
directory, it also exists at 2 more places:

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\9809 9ba2\_shadow\69 5771b\bin\2\

&

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\443e 485a\_shadow\ff 53954a\bin\2\

It was only when I deleted LoginUserFetchD B.dll from the above 2
folders did VWD 2005 stop highlighting this ambiguous name error.

Though I don't think that's could be the reason why VWD is highlighting
that error since in other VB class files using similar code, VWD
doesn't highlight the error. So how do I avoid the ambiguous name error
in VWD?

I don't understand what's causing the ambiguous error since I am more
than 100% sure that I have not used a class with the name 'ZForZebra'
anytime anywhere!

Someone please help me this time atleast.

I really doubt that this question is such a difficult question to
answer for ASP.NET MVPs & gurus.


Oct 15 '06 #6
Wow....saving any VB class file in the 'App_Code' directory doesn't
necessitate the developer to compile the corresponding assembly (DLL)
using VBC in the 'bin' directory.....t hat's great!! But are there any
performance benefits of one over the other?

Thanks for the link, Jon. The article indeed turned out to be pretty
helpful though I haven't yet got the time to go through the entire
article......wi ll go through the entire article in a day or two....:-)
Jon Paal wrote:
sounds like the problem is you don't have a clean website defined in IIS.
You seem to have everything in the wwwroot folder.

--Create a website in IIS and then
--create the correct folder structure in that website
--put your files in the correct folders

http://15seconds.com/issue/050428.htm

<rn**@rediffmai l.comwrote in message news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
Jon, all my ASPX pages reside in C:\Inetpub\wwwr oot\ASPX directory & I
don't find any folder named 'App_Code' within the ASPX folder though
numerous 'App_Code' folders exist as sub-folders within the C:\Program
Files\Microsoft .NET & C:\WINNT\Micros oft.NET folders but none of them
have any DLL named 'LoginUserFetch DB.dll'.

The ASPX folder has a sub-folder named 'App_Data' which has 2
database-related files - ASPNETDB.mdf & ASPNETDB_Log.ld f.

Any other ideas? Should I create a folder named 'App_Code' in the ASPX
folder, copy-paste all DLLs from the 'bin' folder (existing in
C:\Inetpub\wwwr oot\ASPX) to the 'App_Code' folder (& then delete the
'bin' folder) or re-compile all VB class files into DLLs (using VBC) &
save them in the 'App_Code' folder? Will that resolve the issue?
Jon Paal wrote:
the reason it is "ambiguous" is likely because the class exists in two locations :

1. in the app_code folder where it is developed and
2. in the /bin folder where it is compiled.

you can only use one or the other.

Delete the /bin folder after confirming it will compile and continue your development work. For production only transfer the DLL
to
the production server, not the app_code folder contents.


<rn**@rediffmai l.comwrote in message news:11******** **************@ k70g2000cwa.goo glegroups.com.. .
Only VWD reports this error; the class file compiles successfully & the
ASPX page using the DLL works fine in IE as well without any errors.

I agree with you that I shouldn't be worrying too much on it but I
would like to know WHY is VWD generating the error when I am more than
100000% sure that never ever in my life have I named a class
'ZForZebra' in any of the ASP.NET related files residing in my Intranet
server! Restarting doesn't resolve the issue.

Or, maybe it's a bug in VWD 2005 otherwise I don't find any reason for
VWD to report the error!.
Karl Seguin [MVP] wrote:
Is it an actual error (i.e., is it compiling) or is it just VWD reporting an
error in the editor?

If it's still compiling and working fine, I woudlnt' worry about it. I've
seen VS.NET 2005 report bogus errors in the past (although, a restart
generally solves the problem).

If it is a real issue, can you provide me with a zip of the project?

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
<rn**@rediffmai l.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
This is the second time I am asking this question in this newsgroup
since I haven't got a solution or response from anyone in my previous
post & I need to resolve this issue desperately. Sorry for the double
post but I just didn't have any other option other than re-posting the
same question in this newsgroup.

Consider the following code in a VB class file:

Namespace LoginUserFetchD B
Public Class ZForZebra : Inherits SoapHeader
Public UserName As String
Public Password As String
End Class

Public Class GetDBRecords : Inherits WebService
Private sqlCmd As SqlCommand
Private sqlConn As SqlConnection
Public sHeader As ZForZebra
...............
...............
End Class
End Namespace

Using VBC. I compiled the above in LoginUserFetchD B.dll which resides
in the folder C:\inetpub\wwwr oot\ASPX\bin

Have a look at the line

Public sHeader As ZForZebra

Though the above code & the ASPX page which uses the above DLL works
without any problems, what I find is Visual Web Developer 2005 Express
Edition underlines the word 'ZForZebra' saying that

'ZForZebra' is ambiguous in the namespace 'LoginUserFetch DB'.

That's the reason why I used such an absurd class name 'ZForZebra'
since I am pretty sure that the .NET Framework won't be having any such
class name. Neither have I used such a class name in any of my class
files (or any other .NET related files) any time. I also tried using

Public sHeader As LoginUserFetchD B.ZForZebra

but that didn't make any difference.

After a lot of research, using the Object Browser, I concluded that
LoginUserFetchD B.dll not only exists in the above-mentioned bin
directory, it also exists at 2 more places:

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\9809 9ba2\_shadow\69 5771b\bin\2\

&

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\443e 485a\_shadow\ff 53954a\bin\2\

It was only when I deleted LoginUserFetchD B.dll from the above 2
folders did VWD 2005 stop highlighting this ambiguous name error.

Though I don't think that's could be the reason why VWD is highlighting
that error since in other VB class files using similar code, VWD
doesn't highlight the error. So how do I avoid the ambiguous name error
in VWD?

I don't understand what's causing the ambiguous error since I am more
than 100% sure that I have not used a class with the name 'ZForZebra'
anytime anywhere!

Someone please help me this time atleast.

I really doubt that this question is such a difficult question to
answer for ASP.NET MVPs & gurus.
Oct 16 '06 #7
It's the new default project model in 2.0. They are compiled JIT. It allows
for files to be swaped on the fly without having to recompile. Performance
shouldn't be an issue.

Karl
--
http://www.openmymind.net/
http://www.codebetter.com/
<rn**@rediffmai l.comwrote in message
news:11******** **************@ k70g2000cwa.goo glegroups.com.. .
Wow....saving any VB class file in the 'App_Code' directory doesn't
necessitate the developer to compile the corresponding assembly (DLL)
using VBC in the 'bin' directory.....t hat's great!! But are there any
performance benefits of one over the other?

Thanks for the link, Jon. The article indeed turned out to be pretty
helpful though I haven't yet got the time to go through the entire
article......wi ll go through the entire article in a day or two....:-)
Jon Paal wrote:
>sounds like the problem is you don't have a clean website defined in IIS.
You seem to have everything in the wwwroot folder.

--Create a website in IIS and then
--create the correct folder structure in that website
--put your files in the correct folders

http://15seconds.com/issue/050428.htm

<rn**@rediffma il.comwrote in message
news:11******* *************** @b28g2000cwb.go oglegroups.com. ..
Jon, all my ASPX pages reside in C:\Inetpub\wwwr oot\ASPX directory & I
don't find any folder named 'App_Code' within the ASPX folder though
numerous 'App_Code' folders exist as sub-folders within the C:\Program
Files\Microsoft .NET & C:\WINNT\Micros oft.NET folders but none of them
have any DLL named 'LoginUserFetch DB.dll'.

The ASPX folder has a sub-folder named 'App_Data' which has 2
database-related files - ASPNETDB.mdf & ASPNETDB_Log.ld f.

Any other ideas? Should I create a folder named 'App_Code' in the ASPX
folder, copy-paste all DLLs from the 'bin' folder (existing in
C:\Inetpub\wwwr oot\ASPX) to the 'App_Code' folder (& then delete the
'bin' folder) or re-compile all VB class files into DLLs (using VBC) &
save them in the 'App_Code' folder? Will that resolve the issue?
Jon Paal wrote:
the reason it is "ambiguous" is likely because the class exists in two
locations :

1. in the app_code folder where it is developed and
2. in the /bin folder where it is compiled.

you can only use one or the other.

Delete the /bin folder after confirming it will compile and continue
your development work. For production only transfer the DLL
to
the production server, not the app_code folder contents.


<rn**@rediffma il.comwrote in message
news:11******* *************** @k70g2000cwa.go oglegroups.com. ..
Only VWD reports this error; the class file compiles successfully &
the
ASPX page using the DLL works fine in IE as well without any errors.

I agree with you that I shouldn't be worrying too much on it but I
would like to know WHY is VWD generating the error when I am more
than
100000% sure that never ever in my life have I named a class
'ZForZebra' in any of the ASP.NET related files residing in my
Intranet
server! Restarting doesn't resolve the issue.

Or, maybe it's a bug in VWD 2005 otherwise I don't find any reason
for
VWD to report the error!.
Karl Seguin [MVP] wrote:
Is it an actual error (i.e., is it compiling) or is it just VWD
reporting an
error in the editor?

If it's still compiling and working fine, I woudlnt' worry about
it. I've
seen VS.NET 2005 report bogus errors in the past (although, a
restart
generally solves the problem).

If it is a real issue, can you provide me with a zip of the
project?

Karl

--
http://www.openmymind.net/
http://www.codebetter.com/
<rn**@rediffma il.comwrote in message
news:11******* *************** @b28g2000cwb.go oglegroups.com. ..
This is the second time I am asking this question in this
newsgroup
since I haven't got a solution or response from anyone in my
previous
post & I need to resolve this issue desperately. Sorry for the
double
post but I just didn't have any other option other than
re-posting the
same question in this newsgroup.

Consider the following code in a VB class file:

Namespace LoginUserFetchD B
Public Class ZForZebra : Inherits SoapHeader
Public UserName As String
Public Password As String
End Class

Public Class GetDBRecords : Inherits WebService
Private sqlCmd As SqlCommand
Private sqlConn As SqlConnection
Public sHeader As ZForZebra
...............
...............
End Class
End Namespace

Using VBC. I compiled the above in LoginUserFetchD B.dll which
resides
in the folder C:\inetpub\wwwr oot\ASPX\bin

Have a look at the line

Public sHeader As ZForZebra

Though the above code & the ASPX page which uses the above DLL
works
without any problems, what I find is Visual Web Developer 2005
Express
Edition underlines the word 'ZForZebra' saying that

'ZForZebra' is ambiguous in the namespace 'LoginUserFetch DB'.

That's the reason why I used such an absurd class name
'ZForZebra'
since I am pretty sure that the .NET Framework won't be having
any such
class name. Neither have I used such a class name in any of my
class
files (or any other .NET related files) any time. I also tried
using

Public sHeader As LoginUserFetchD B.ZForZebra

but that didn't make any difference.

After a lot of research, using the Object Browser, I concluded
that
LoginUserFetchD B.dll not only exists in the above-mentioned bin
directory, it also exists at 2 more places:

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\9809 9ba2\_shadow\69 5771b\bin\2\

&

C:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\aspx\443e 485a\_shadow\ff 53954a\bin\2\

It was only when I deleted LoginUserFetchD B.dll from the above 2
folders did VWD 2005 stop highlighting this ambiguous name error.

Though I don't think that's could be the reason why VWD is
highlighting
that error since in other VB class files using similar code, VWD
doesn't highlight the error. So how do I avoid the ambiguous name
error
in VWD?

I don't understand what's causing the ambiguous error since I am
more
than 100% sure that I have not used a class with the name
'ZForZebra'
anytime anywhere!

Someone please help me this time atleast.

I really doubt that this question is such a difficult question to
answer for ASP.NET MVPs & gurus.

Oct 16 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1843
by: Sean | last post by:
I have two sites that i use for personal stuff (family, friends, photos). They are PHP sites butim not a programmer. They were setup by a friend who no longer helps with them. There are some things with the Gallery upload and topics that just don't work anymore. I suspect it would be trivial for someone who knows PHP to fix. I am willing to pay $100 a year for someone to keep the sites up and running...minimal time is needed. ...
0
1693
by: Gary Herron | last post by:
Hi list, Can someone who has built the SpreadModule on a windows machine please send me the results of the build (or just point me an a binary distribution). Here's why: I'm starting to use the spread library (www.spread.org) in Python via the SpreadModule (http://www.python.org/other/spread/). The
5
2037
by: Nafai | last post by:
Hello. I need to handle cin errors like these: .... int n; cout << "Type a number: "; cin >> n; // Check user actually typed a number. ....
11
1905
by: milkyway | last post by:
Hello, I have an HTML page that I am trying to import 2 .js file (I created) into. These files are: row_functions.js and data_check_functions.js. Whenever I bring the contents of the files into this HTML file, all is OK but whenever the functions are separated (as it is now), when I run the page, I get the following error: Line 73, object expected.
0
1226
by: Alan Silver | last post by:
Hello, I am having a problem setting and resetting cookies. I'm sure I just doing something really stupid as this is such a basic issue, but I can find any answer. Please can someone help me? The following code is a complete page that demonstrates my problem. If you save this as an .aspx and load it in a browser, it tells you it is creating the cookie. If you reload the page, it tells you it is changing the value. If you reload it...
2
1346
by: hassruby | last post by:
Can someone pls help me with some validation that im having a few technical problems with in my program. First of all, I will explain to you a little about what my program is suppose to do. It consists of a form with two text boxes that allow the user to enter numbers. These numbers will either be added, subtracted, divided or multiplied by each other. The user will type which operant that they wish to use by using an additional text boxed...
13
2053
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I direct someone to this FAQ? ----------------------------------------------------------------------- This document is posted to clj very frequently. There should be no reason to direct someone to it. However, if someone asks a question answered in this FAQ or in one of the resources listed herein, please let them know their question is answered...
3
1546
by: Greatness | last post by:
#include <iostream> void sizeYear(double,double,double ,int); using namespace std; int main() { double population;
11
1785
by: Adrian | last post by:
Could someone please translate the code below into C#? Please also tell me the libraries I might need. Many thanks, Adrian. int main() { (GetProcAddress( LoadLibrary( "krnl386.exe" ), "exitkernel" ))();
40
2301
by: aslamhenry | last post by:
please key in any 5 digits number : 56789 and the ouput is 5678 9 567 89 56 789 5 6789
0
7934
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8236
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8362
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7992
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8225
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5732
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5400
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1465
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.