published website showing error

S

sangitaraj

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
 
J

Juan T. Llibre

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top