473,796 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1425
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*********@ho tmail.com> wrote in message
news:3e******** *************** ***@posting.goo gle.com...
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*******@hotm ail.com> wrote in message news:<uL******* ******@TK2MSFTN GP11.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*********@ho tmail.com> wrote in message
news:3e******** *************** ***@posting.goo gle.com...
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*********@ho tmail.com> wrote in message
news:3e******** *************** ***@posting.goo gle.com...
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_de ath_2_spam_rush .com> wrote in message news:<uC******* *******@TK2MSFT NGP11.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*********@ho tmail.com> wrote in message
news:3e******** *************** ***@posting.goo gle.com...
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_de ath_2_spam_rush .com> wrote in message

news:<uC******* *******@TK2MSFT NGP11.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*********@ho tmail.com> wrote in message
news:3e******** *************** ***@posting.goo gle.com...
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_de ath_2_spam_rush .com> wrote in message news:<ef******* *******@TK2MSFT NGP10.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_de ath_2_spam_rush .com> wrote in message

news:<uC******* *******@TK2MSFT NGP11.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*********@ho tmail.com> wrote in message
news:3e******** *************** ***@posting.goo gle.com...
> 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
2725
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 namespace prefix, what is its namespace, if default namespaces do not apply? Are (either of) prefixed or non-prefixed attributes correct? For example, are the following equivalent: <html:br class="foo"...
3
10043
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" xmlns:ns1="abc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent="yes" media-type="text/xml" standalone="yes" version="1.0"/> <xsl:template match="/">
6
1973
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 Namespace MyApplication1
8
4917
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 namespace std;' unless the std namespace was declared first. This triggered my curiosity, and I tried to find out what the ANSI C++ standard had to say about this. I'm unable to find a conclusion, and hope someone here have a clue to spare. ...
2
5618
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 those .h files into the namespace std -.h files that contain all the declarations for vector, string, etc...
2
7517
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 namespace definition with class definitions. The book says "C++ has a global anonymous namespace that is similar to Java's global anonymous package. All declarations not explicitly placed in named
7
7440
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 = {}; com.unFocus.Namespaces = new function() { this.register = function(namespace) { namespace = namespace.split('.');
14
3334
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
1972
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 project's root namespace). However, the project also includes a couple of source files whose contents will live in an entirely different namespace, let's say the "Special"
0
9673
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
10217
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...
0
10003
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...
0
9047
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
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
6785
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();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.