473,803 Members | 3,886 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

published website showing error

Hello,

I have created a website in ASP.net 2.0 and published it on the
webserver. The following error message is displayed.

Compiler Error Message: CS0246: The type or namespace name 'Utilities'
could not be found (are you missing a using directive or an assembly
reference?)

where utilities.cs is a class file placed in APP_CODE folder in the
same namespace as the website.

The site is running fine on the local server.
The web server is also unable to load the code behind files.
while everything seems to be fine on the local system.

Now i came to know that Framework 1.1 is installed on the web server.
Could this be due to version problem??

i am able to run the pages on the webserver without calling the class.?

Could anybody please suggest me a solution.

thanks,
sangita

Jun 16 '06 #1
1 1195
re:
where utilities.cs is a class file placed in APP_CODE folder in the
same namespace as the website.
Now i came to know that Framework 1.1 is installed on the web server.
The App_Code folder is a special folder which only works in ASP.NET 2.0.

You cannot run a website which requires ASP.NET 2.0
on a server which only has ASP.NET 1.1 installed.

There's two solutions to your problem :

1. install .net framework 2.0 on the server
2. rewrite/recompile your application so it complies with .net framework 1.1

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"sangitaraj " <sa*********@gm ail.com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.com.. . Hello,

I have created a website in ASP.net 2.0 and published it on the
webserver. The following error message is displayed.

Compiler Error Message: CS0246: The type or namespace name 'Utilities'
could not be found (are you missing a using directive or an assembly
reference?)

where utilities.cs is a class file placed in APP_CODE folder in the
same namespace as the website.

The site is running fine on the local server.
The web server is also unable to load the code behind files.
while everything seems to be fine on the local system.

Now i came to know that Framework 1.1 is installed on the web server.
Could this be due to version problem??

i am able to run the pages on the webserver without calling the class.?

Could anybody please suggest me a solution.

thanks,
sangita

Jun 16 '06 #2

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

Similar topics

0
1415
by: Remi | last post by:
Hello Everybody! I am going to develop a multi-language website which will include Traditional Chinese, Simplified Chinese, Thai, Japanese, etc. (and English as well). I would like to take an advantage of support that ASP.NET has to offer for localizing. Probably I will use resources and to retrieve localized text among with XML serialization of datasets. There is no need to store data in the SQL Server database, since the
19
2284
by: Swaregirl | last post by:
Hello, I would like to build a website using ASP.NET. I would like website visitors to be able to download code that I would like to make available to them and that would be residing on my personal server. Are there any code samples or books that someone can recommend so that I can implement this. I would prefer VB.NET code, but I am willing to convert from C# if necessary.
8
2268
by: VB Programmer | last post by:
I would appreciate your assistance on this ASP.NET 2.0 site.... This is the wierd problem: While accessing the built in .NET functions for 'profiling' or 'membership' an error is generated (see following 2 examples): ---- EXAMPLE 1 -------- OK --> Dim p As New ProfileCommon OK --> p = Profile.GetProfile(Me.ddlRacer.SelectedItem.Text) FAILS --> Me.lblDebug.Text = p.FirstName.ToString
7
4050
by: vamichael | last post by:
When I try to run the Website Administration Tool from my published application using http://localhost/myapp/webadmin.axd I am getting a "resource not found" error message. I can use the Admin tool from the IDE however. I noticed some people referring to a directory called c:\Inetpub\wwwroot\aspnet_webadmin\, which i do not have on my system.
0
865
by: Falnom | last post by:
I published my website to a folder on my network but now when I try to view it in my browser (at that location) it doesn't work -- I get this error: Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error
0
1118
by: clickon | last post by:
I am working on a portal web application that is largely modular. I have been working on it on a "development" website. Some sections have been tested and are complete. I decided to set up a Live website on the same server so i could work on the development web site without affecting people using the completed sections. I set up the website and then used VS 2005 to "publish" the site. This seemed to work OK, it precompiled the whole...
8
2853
by: Herb | last post by:
In my design environment this works fine, but when I deploy it I get an error. I have a class "MessageBox" defined in my "App_Code" folder. My aspx file contains the line "Imports MessageBox" at the top. When I deploy and run the website I get the following error. Server Error in '/' Application. --------------------------------------------------------------------------------
5
1409
by: jrcapp | last post by:
On my machine I am developing a .NET site. When I execute it, everything runs perfectly. When I publish it (to my machine in a folder so IIS can access it), I get a SQL error: "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection" I know what the error means, but I don't understand why I'm getting this on the published site and not when I run/execute the site from Visual Studio 2005.
3
3546
by: AliR \(VC++ MVP\) | last post by:
Hi Everyone, I have written a silverlight application, which talks to a WCF service, which was created within the website after watching this video: http://silverlight.net/learn/learnvideo.aspx?video=47177 The service gathers some data using a class library. This all works fine within Visual Studio, but when published to a web server it throws an excpetion, in the first xxxxServiceComplete call back, which
0
9700
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...
1
10292
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
10068
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
9121
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
7603
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
5498
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...
1
4275
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
2
3796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
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.