Click here to Skip to main content
15,919,749 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRPC Server is Unavailable Pin
Sabari MD14-Jul-09 22:37
Sabari MD14-Jul-09 22:37 
AnswerRe: RPC Server is Unavailable Pin
Blue_Boy14-Jul-09 22:38
Blue_Boy14-Jul-09 22:38 
QuestionBest Method to Instantiate a Class Pin
Bardy8514-Jul-09 22:01
Bardy8514-Jul-09 22:01 
AnswerRe: Best Method to Instantiate a Class Pin
jc.net15-Jul-09 0:36
jc.net15-Jul-09 0:36 
GeneralRe: Best Method to Instantiate a Class Pin
Bardy8515-Jul-09 1:10
Bardy8515-Jul-09 1:10 
QuestionImplementation of iDatasource Interface Pin
pulak srivastava14-Jul-09 21:50
pulak srivastava14-Jul-09 21:50 
QuestionServer Control Doesn't Work when placing google ads on the page Pin
Dhrumil_Shukla14-Jul-09 21:47
Dhrumil_Shukla14-Jul-09 21:47 
Questiondefault.aspx.cs can not see classes added in App_Code folder Pin
Chesnokov Yuriy14-Jul-09 21:02
professionalChesnokov Yuriy14-Jul-09 21:02 
In web project application just created I added some class to App_Code folder by means of Solution explorer.
It resides in the same namespace as the web project one.
But from default.aspx.cs I can not access that class reporting error that the object is not defined? but it is in the same namespace and should be visible as in C# projects.


App_Code\SomeClass.cs

C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
namespace SomeNameSpace
{
        [Serializable]
        public class SomeClass
        {
                public SomeMethod { ... }
        }
}



default.aspx.cs

C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
namespace SomeNameSpace
{
        public partial class _Default : System.Web.UI.Page
        {
                protected void Page_Load(object sender, EventArgs e)
                {
                        SomeClass sc = new SomeClass(); //<-- error
                  
                }
        }
}



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

Чесноков

AnswerRe: default.aspx.cs can not see classes added in App_Code folder Pin
freshers14-Jul-09 21:22
freshers14-Jul-09 21:22 
AnswerRe: default.aspx.cs can not see classes added in App_Code folder Pin
Chesnokov Yuriy14-Jul-09 22:00
professionalChesnokov Yuriy14-Jul-09 22:00 
AnswerRe: default.aspx.cs can not see classes added in App_Code folder Pin
K030614-Jul-09 21:23
K030614-Jul-09 21:23 
QuestionRe: default.aspx.cs can not see classes added in App_Code folder Pin
Chesnokov Yuriy14-Jul-09 21:59
professionalChesnokov Yuriy14-Jul-09 21:59 
AnswerRe: default.aspx.cs can not see classes added in App_Code folder Pin
himanshu256114-Jul-09 21:25
himanshu256114-Jul-09 21:25 
GeneralRe: default.aspx.cs can not see classes added in App_Code folder Pin
freshers14-Jul-09 21:28
freshers14-Jul-09 21:28 
GeneralRe: default.aspx.cs can not see classes added in App_Code folder Pin
himanshu256114-Jul-09 21:34
himanshu256114-Jul-09 21:34 
GeneralRe: default.aspx.cs can not see classes added in App_Code folder Pin
freshers14-Jul-09 21:41
freshers14-Jul-09 21:41 
GeneralRe: default.aspx.cs can not see classes added in App_Code folder Pin
himanshu256114-Jul-09 21:52
himanshu256114-Jul-09 21:52 
QuestionRe: default.aspx.cs can not see classes added in App_Code folder Pin
Chesnokov Yuriy14-Jul-09 22:03
professionalChesnokov Yuriy14-Jul-09 22:03 
AnswerResolved - Re: default.aspx.cs can not see classes added in App_Code folder Pin
Chesnokov Yuriy14-Jul-09 22:06
professionalChesnokov Yuriy14-Jul-09 22:06 
QuestionProblem with membership provider DB created using ASP.NET configuration Pin
ptr_Electron14-Jul-09 21:01
ptr_Electron14-Jul-09 21:01 
AnswerRe: Problem with membership provider DB created using ASP.NET configuration Pin
r a m e s h15-Jul-09 0:40
r a m e s h15-Jul-09 0:40 
QuestionMail is not reached Pin
Kissy1614-Jul-09 20:56
Kissy1614-Jul-09 20:56 
AnswerRe: Mail is not reached Pin
SeMartens14-Jul-09 21:15
SeMartens14-Jul-09 21:15 
GeneralRe: Mail is not reached Pin
Kissy1614-Jul-09 21:20
Kissy1614-Jul-09 21:20 
QuestionHow to handel NULL referance Pin
vnsraj14-Jul-09 19:47
vnsraj14-Jul-09 19:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.