473,382 Members | 1,658 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,382 software developers and data experts.

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 1173
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*********@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.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
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...
19
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...
8
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...
7
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...
0
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....
0
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...
8
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...
5
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...
3
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:...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.