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

  • SEARCH
  • Home
  • 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 6069957
In Process

The Archive Base Latest Questions

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

I just deployed a users and roles asp database to a website and I’m

  • 0

I just deployed a users and roles asp database to a website and I’m getting this exception

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 41:   #endregion
Line 42:    
Line 43:    public UsersAndRolesDataContext() : 
Line 44:                base(global::System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"    ].ConnectionString, mappingSource)
Line 45:    {


Source File: d:\hosting\7122544\html\SSM\App_Code\UsersAndRoles.designer.cs    Line: 43

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   UsersAndRolesDataContext..ctor() in d:\hosting\7122544\html\SSM\App_Code    \UsersAndRoles.designer.cs:43
   admin_ManageUsers..ctor() in d:\hosting\7122544\html\SSM\admin\ManageUsers.aspx.cs:11
   ASP.admin_manageusers_aspx..ctor() in c:\windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\ssm\5b123e8f\6bb9cf4c\App_Web_tz5adhff.10.cs:0
   __ASP.FastObjectFactory_app_web_tz5adhff.Create_ASP_admin_manageusers_aspx() in     c:\windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\ssm\5b123e8f\6bb9cf4c\App_Web_tz5adhff.12.cs:0
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +109
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +334
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184
  • 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-23T09:52:45+00:00Added an answer on May 23, 2026 at 9:52 am

    You are likely missing connection string, named ConnectionString in the config file, so System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString" ] returns null.

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

Sidebar

Related Questions

I'm currently debugging an ASP.NET MVC application that was just deployed to a different
I've just deployed an ASP.NET web site to my hosting provider, but I keep
I just deployed a Hudson server and configured it to checkout, build and deploy
I just deployed my Rails app to Heroku, but the Javascripts that were using
I've got a ClickOnce application deployed that many machines can install just fine -
Just getting my head around Ruby metaprogramming. The mixin/modules always manage to confuse me.
I'm building an asp.net MVC application where users can attach a picture to their
I've a asp.net MVC app deployed to server it uses forms authentication and uses
I just came across this question about initializing local variables. Many of the answers
I've just built a basic ASP MVC web site for deployment on our intranet.

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.