473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Namespace Problem in ASP.NET

I am currently having an issue with an ASP.NET page not finding the
class library located in the application's /bin directory. The page
recognizes the compiled .dll class when running on my development
machine (IIS6/WinXP Pro) but when uploading to the web host the simple
error message of "Type Not Defined" is returned.

I have since opened an incident with the web host support personnel
but they claim that all they have is the standard .NET Framework
install and that there are no other configurations in place. I had
them double-check the default local assembly cache directory is the
/bin directory, so I am not sure what else could be the problem.

Does anyone know what other dependencies exists to be able to use
custom developed namespaces in ASP.NET.

Any help would be greatly appreciated...

Jared
Nov 18 '05 #1
6 1411
Some web hosts turn off the ability to have dll's in the bin directory, and
require that all code be in the .aspx pages.

Other then that, then other cause is that the DLL is not actually there.
Otherwise, the web app looks in the GAC and its own bin directory for dll's.

"Jared Turley" <jt*********@hotmail.com> wrote in message
news:3e**************************@posting.google.c om...
I am currently having an issue with an ASP.NET page not finding the
class library located in the application's /bin directory. The page
recognizes the compiled .dll class when running on my development
machine (IIS6/WinXP Pro) but when uploading to the web host the simple
error message of "Type Not Defined" is returned.

I have since opened an incident with the web host support personnel
but they claim that all they have is the standard .NET Framework
install and that there are no other configurations in place. I had
them double-check the default local assembly cache directory is the
/bin directory, so I am not sure what else could be the problem.

Does anyone know what other dependencies exists to be able to use
custom developed namespaces in ASP.NET.

Any help would be greatly appreciated...

Jared

Nov 18 '05 #2
The file is in fact physical there, and according to the support
people they claim they haven't done anything different than the
default installation of the .NET Framework, which leads me to believe
that there are no restrictions upon using namespaces.

I am wondering if there are any directory/user permissions that are
causing the problem. Just a thought

"Marina" <mz*******@hotmail.com> wrote in message news:<uL*************@TK2MSFTNGP11.phx.gbl>...
Some web hosts turn off the ability to have dll's in the bin directory, and
require that all code be in the .aspx pages.

Other then that, then other cause is that the DLL is not actually there.
Otherwise, the web app looks in the GAC and its own bin directory for dll's.

"Jared Turley" <jt*********@hotmail.com> wrote in message
news:3e**************************@posting.google.c om...
I am currently having an issue with an ASP.NET page not finding the
class library located in the application's /bin directory. The page
recognizes the compiled .dll class when running on my development
machine (IIS6/WinXP Pro) but when uploading to the web host the simple
error message of "Type Not Defined" is returned.

I have since opened an incident with the web host support personnel
but they claim that all they have is the standard .NET Framework
install and that there are no other configurations in place. I had
them double-check the default local assembly cache directory is the
/bin directory, so I am not sure what else could be the problem.

Does anyone know what other dependencies exists to be able to use
custom developed namespaces in ASP.NET.

Any help would be greatly appreciated...

Jared

Nov 18 '05 #3
Here's an idea...

Are you sure the Type Not Defined error is because it can't find YOUR
namespace/class?

Is it possible you are using a component (3rd party) on that page that is
not on the server?
Regards
Brian W

"Jared Turley" <jt*********@hotmail.com> wrote in message
news:3e**************************@posting.google.c om...
I am currently having an issue with an ASP.NET page not finding the
class library located in the application's /bin directory. The page
recognizes the compiled .dll class when running on my development
machine (IIS6/WinXP Pro) but when uploading to the web host the simple
error message of "Type Not Defined" is returned.

I have since opened an incident with the web host support personnel
but they claim that all they have is the standard .NET Framework
install and that there are no other configurations in place. I had
them double-check the default local assembly cache directory is the
/bin directory, so I am not sure what else could be the problem.

Does anyone know what other dependencies exists to be able to use
custom developed namespaces in ASP.NET.

Any help would be greatly appreciated...

Jared

Nov 18 '05 #4
I am positive, the page works fine when it is executed on my
development machine. I have developed the classes myself for code
re-use across multiple pages so there is nothing to do with 3rd party
components.

"Brian W" <brianw@gold_death_2_spam_rush.com> wrote in message news:<uC**************@TK2MSFTNGP11.phx.gbl>...
Here's an idea...

Are you sure the Type Not Defined error is because it can't find YOUR
namespace/class?

Is it possible you are using a component (3rd party) on that page that is
not on the server?
Regards
Brian W

"Jared Turley" <jt*********@hotmail.com> wrote in message
news:3e**************************@posting.google.c om...
I am currently having an issue with an ASP.NET page not finding the
class library located in the application's /bin directory. The page
recognizes the compiled .dll class when running on my development
machine (IIS6/WinXP Pro) but when uploading to the web host the simple
error message of "Type Not Defined" is returned.

I have since opened an incident with the web host support personnel
but they claim that all they have is the standard .NET Framework
install and that there are no other configurations in place. I had
them double-check the default local assembly cache directory is the
/bin directory, so I am not sure what else could be the problem.

Does anyone know what other dependencies exists to be able to use
custom developed namespaces in ASP.NET.

Any help would be greatly appreciated...

Jared

Nov 18 '05 #5
No, that's not what I asked.
I am positive, the page works fine when it is executed on my
development machine.
Of course it worls on your development machine. But what I asked was. are
your sure the Type Not Defined error is because can't find *your* class?
Isn't it possible the error is bacause some other class can't be found?

I have developed the classes myself for code
re-use across multiple pages so there is nothing to do with 3rd party
components.
Well, I don't know that from your original post, do I? An just because it it
*you class* doesn't mean you didn't use a 3rd party component, ho do I know?

Does the server work with a bare-bones web app?

Have you created a new WebApp with nothing else and copy it to the server,
ie. put the .dll in the bin directory and .aspx oin the root. Obviously if
you get the same error it is the servers problem, if not then it's in your
code/configuration.

Regards
Brian W

"Brian W" <brianw@gold_death_2_spam_rush.com> wrote in message

news:<uC**************@TK2MSFTNGP11.phx.gbl>...
Here's an idea...

Are you sure the Type Not Defined error is because it can't find YOUR
namespace/class?

Is it possible you are using a component (3rd party) on that page that is not on the server?
Regards
Brian W

"Jared Turley" <jt*********@hotmail.com> wrote in message
news:3e**************************@posting.google.c om...
I am currently having an issue with an ASP.NET page not finding the
class library located in the application's /bin directory. The page
recognizes the compiled .dll class when running on my development
machine (IIS6/WinXP Pro) but when uploading to the web host the simple
error message of "Type Not Defined" is returned.

I have since opened an incident with the web host support personnel
but they claim that all they have is the standard .NET Framework
install and that there are no other configurations in place. I had
them double-check the default local assembly cache directory is the
/bin directory, so I am not sure what else could be the problem.

Does anyone know what other dependencies exists to be able to use
custom developed namespaces in ASP.NET.

Any help would be greatly appreciated...

Jared

Nov 18 '05 #6
Okay, no need for the arrogance...so if there was a problem with it
not finding the class that is contained in the namespace then it would
fail to execute on my machine, that is what I meant. However that is
not the case, the class name in which I am trying to use is
'NCSchedule' in which the actual error message is "Type 'NCSchedule'
Not Defined"...I didn't feel the need to go into that much detail in
previous threads.

Additionally I backed up to make things more simple and used the old
'HelloWorld' tactic and embedded that such logic into a class library
with the same results.

And yes the server is serving up other web applications, it is
maintained by a hosting company. I have had other experience using
the same type of coding practice on other web hosts with no such
problems, which is why I don't think there is anything wrong with my
code.

"Brian W" <brianw@gold_death_2_spam_rush.com> wrote in message news:<ef**************@TK2MSFTNGP10.phx.gbl>...
No, that's not what I asked.
I am positive, the page works fine when it is executed on my
development machine.


Of course it worls on your development machine. But what I asked was. are
your sure the Type Not Defined error is because can't find *your* class?
Isn't it possible the error is bacause some other class can't be found?

I have developed the classes myself for code
re-use across multiple pages so there is nothing to do with 3rd party
components.


Well, I don't know that from your original post, do I? An just because it it
*you class* doesn't mean you didn't use a 3rd party component, ho do I know?

Does the server work with a bare-bones web app?

Have you created a new WebApp with nothing else and copy it to the server,
ie. put the .dll in the bin directory and .aspx oin the root. Obviously if
you get the same error it is the servers problem, if not then it's in your
code/configuration.

Regards
Brian W

"Brian W" <brianw@gold_death_2_spam_rush.com> wrote in message

news:<uC**************@TK2MSFTNGP11.phx.gbl>...
Here's an idea...

Are you sure the Type Not Defined error is because it can't find YOUR
namespace/class?

Is it possible you are using a component (3rd party) on that page that is not on the server?
Regards
Brian W

"Jared Turley" <jt*********@hotmail.com> wrote in message
news:3e**************************@posting.google.c om...
> I am currently having an issue with an ASP.NET page not finding the
> class library located in the application's /bin directory. The page
> recognizes the compiled .dll class when running on my development
> machine (IIS6/WinXP Pro) but when uploading to the web host the simple
> error message of "Type Not Defined" is returned.
>
> I have since opened an incident with the web host support personnel
> but they claim that all they have is the standard .NET Framework
> install and that there are no other configurations in place. I had
> them double-check the default local assembly cache directory is the
> /bin directory, so I am not sure what else could be the problem.
>
> Does anyone know what other dependencies exists to be able to use
> custom developed namespaces in ASP.NET.
>
> Any help would be greatly appreciated...
>
> Jared

Nov 18 '05 #7

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

Similar topics

1
by: John L. Clark | last post by:
I am curious as to the rationale, and effect, of having default namespaces not applying (directly) to attributes (see http://www.w3.org/TR/REC-xml-names/#defaulting). Given an attribute without a...
3
by: Mike Dickens | last post by:
hi, i'm sure this has come up before but havn't managed to find an answer. if i have the following xslt <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet method="xml" version="1.0"...
6
by: Don Wash | last post by:
Hi There! I just need some advice on Namespace management for creating reusable VB.NET applications. I would like my applications to have this namespace structure... Namespace MyCompany ...
8
by: Petter Reinholdtsen | last post by:
I ran into a problem on HP-UX 11.00 the other day, where it refused to compile a program using 'using namespace std;' at the top. The reason seem to be that the compiler refuses to accept 'using...
2
by: puzzlecracker | last post by:
after reading some of the post I found out something rather radical to my previous understanding: that when you do #include<iostream> #include<string> #include<vector> etc compiler puts...
2
by: Tony Johansson | last post by:
Hello! I'm reading a book about C++ and there is something that I don't understand so I ask you. Below I have the text from the book and the code from the file where main is located and some...
7
by: Kevin Newman | last post by:
I've been toying with a namespace manager, and wanted to get some input. So what do you think? if (typeof com == 'undefined') var com = {}; if (!com.unFocus) com.unFocus = {}; ...
14
by: Tiraman | last post by:
Hi , I would like to use nested namespace . I have 3 namespace as dll's : Namespace A Namespace B Namespace C And i want to have some namespace that contain them all , some thing like
2
by: Jeff Brown | last post by:
Hi, I suspect that this isn't possible, but I figured I'd ask. My project has a root namespace, let's say it's "Root", that applies to almost every source file (which is why I've set it as the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.