Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6013087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:29:52+00:00 2026-05-23T02:29:52+00:00

My hosted website is not working, and is giving an error. **The name ‘General’

  • 0

My hosted website is not working, and is giving an error.

**The name 'General' does not exist in the current context**

Line 19:     if (passedArgument == "true")
Line 20:     {
Line 21:         General.Session.UserID = "";
Line 22:         General.Session.UserName = "";
Line 23:         General.Session.ShoppingCart = null

General is, as you can see, a namespace containing the class Session.

               namespace General
  {
/// <summary>
/// Summary description for Session
/// </summary>
public class Session
{
    public Session()
    {
    }

My service provider tells me I should check my code, but it’s working just fine on my local machine. Why is it not finding the namespace, and generating the error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:29:53+00:00Added an answer on May 23, 2026 at 2:29 am

    Usually, this means that you are running in a sub-directory (i.e. not the site-root), and that directory is not marked as an application in IIS.

    Basically, App_Code is resolved relative to the nearest application (or the root otherwise). So if your app is at /someapp, then instead of looking in /someapp/App_Code, it is looking in /App_Code. Where your files aren’t.

    If this is the case, mark the folder as an application in IIS. This varies between IIS versions, but the end-result is that the folder icon should display a cog in IIS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a working PayPal button on my website. It's not hosted by PayPal,
In .net when a website hosted in IIS how do you get the current
On my website http://tehcoffee.com/ the gmaps4rails gem is not working. (except for the individual
One of the projects I am working on includes a website that is hosted
I'm currently working on deploying a asp.net website to a shared hosted environment, and
I have a website hosted on a Linux server. If someone sends me an
I have a website hosted with godaddy. Basically for my work I use TFS.
We have a website hosted on Azure. It is media based, and we are
I have a internal website hosted on IIS. I added the following meta code
I have a small website hosted by my university. The policy is that no

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.