Control Panel
Forum
Hosting Help
6 Months free Hosting (New!)
Resources
Login
Members
Shared Hosting
|
New Features
|
Advertise
|
Tutorials
|
Product Reviews in India
|
Free aptitude test questions
|
TATA Nano Car reviews
Total
members
:
76761
Average new registrations per day (in last 7 days):
80
New Registration:
Open
Register Now
Home
»
Questions & Answers
»
Compiler Error Message: CS0246 ....... missing a using dire...
Compiler Error Message: CS0246 ....... missing a using directive or an assembly reference?
3/21/2008
Author:
Amphol_H
http://aspspider.info/ampholh
http://www.aspspider.info/ampholh/enorthwind/login.aspx
are
there anybody can solve error or give solution to problem
'Compiler Error Message: CS0246: The type or namespace name 'DemoObj'
could not be found (are you missing a using directive or an assembly reference?)'
which caused by refernce to dll of public class *.cs file.
There's no error when running on local pc but generate error when running from public host ?
I try to call function directly from public class file (*.cs) in App_Code
and the same problem. There's no error when running on local pc but generate error when call from host
Answers .............
Author:
Phil Phan
Posted Date: 3/21/2008
http://aspspider.info/philedup
Space - The Project
hmm usually when i see this error, you're missing a web reference file. I would make sure all files under your web reference folder are up on your site, I think there should be 4 files. I'm not sure which ones are absolutely required, but it's always easies to just upload it all.
.resx
.datasource
.cs
.dll
Author:
Amphol_H
Posted Date: 3/22/2008
http://aspspider.info/ampholh
definitely , still got the same error
I loaded *.dll file to both Bin/ and / path.
And also , golbal.asax , resource.resx, logIn.aspx
,LogIn.aspx.cs and web.config
My doubt ,tt's very easy to open on local server
as we can access IIS.
How about others' opinion , anyone got experience
or recommendation
Author:
Jignesh Shah
Posted Date: 3/25/2008
http://aspspider.org/jcubeshah
Welcome to JCUBE Domain
Make sure 'DemoObj' should be the name of your assembly.
Author:
Amphol_H
Posted Date: 3/25/2008
http://aspspider.info/ampholh
Assembly name and namespace is certainly DemoObj.
Is assembly.cs in DemoObj required to upload ?
also I placed
<%@ Import Namespace="DemoObj" %>
to logIn.aspx and there came the same error.
Problem is it could not point to DemoObj.dll file from within
*.aspx or *.aspx.cs
just like folder missing ...
Or else is there any files needed to upload ?
Author:
Amphol_H
Posted Date: 3/29/2008
http://aspspider.info/ampholh
I figured out now.
.dll file have to be placed in folder bin in webroot directory,
but actually, I placed *.dll file to webroot/my created folder/bin.
Thanks for all reply.
You must
login
to post answer for this question.
Partners
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies.
All Rights Reserved.