Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Compilation Error

Author  Topic 

melon.melon
Yak Posting Veteran

76 Posts

Posted - 2009-01-06 : 00:02:17
Have got a problem while compiling the Visual Studio application
and any help is appreciated. Thanks

The Build was successful but debug give errors in IE-

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

- Global.asax error: The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)
- Global.asax error: Cannot implicitly convert type 'App' to 'object'
- Global.asax error: The type or namespace name 'App2' could not be found (are you missing a using directive or an assembly reference?)

I have added references -

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Net.Mail;

Not sure if the problem is with the incomplete compilation
on-demand compilation option cannot be done since it is not a
web app. Tried converting to web app but no use.

Note: 'App' is one of the classes.


tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-06 : 00:40:33
I don't think you've shown us enough code to assist with this. Although we have an ASP.NET forum here, we don't have too many people here who answer questions in this forum and the primary person is a brand new and proud father. You might have better luck if you posted on a site where there are subject matter experts such as over at www.asp.net

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

melon.melon
Yak Posting Veteran

76 Posts

Posted - 2009-01-06 : 04:02:47
Thanks, i'll have a look there =)
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2009-01-06 : 15:36:42
The above error means, you are using the word App in your code, but did not declare it as a variable and neither does it exist as a namespace in any of the above namespaces.

You should have put your full code here.
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2009-01-06 : 15:39:58
c# is quite an unforgiving syntax, unlike vbscript. You MUST declare all your variables, or understand the framework well.
Go to Top of Page
   

- Advertisement -