473,387 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

when i am trying to run the site, i got this error (System.NullReferenceException: O)

using this connection string i got the error

Expand|Select|Wrap|Line Numbers
  1.       private string GetConnectionString()
  2.     {
  3.        //calling up the connection string that was set up from the web config file
  4.         return 
  5.             System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
  6.     }
  7.  
Aug 26 '11 #1
1 1055
Frinavale
9,735 Expert Mod 8TB
Do you have a connection string in your web.config (or application config file) with the key "ConnectionString"?

-Frinny
Sep 2 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Hemil | last post by:
Hello Friends, I need your help in resolving the above error message in my asp.net application. Surprisingly, when I build and run the solution on my local machine it works fine but I get the...
0
by: noe | last post by:
I have done a DLL in unmanaged code C++ and in that dll I have defined a function that use memcpy.This dll run ok.I use that dll in a aplication in C# managed code in Visual Studio .NET. I import...
0
by: huobazi | last post by:
I have many dropdownlist controls in my ascx (and use LoadControl in a aspx fiel) file,so i write a method "InitList(DropDownList list,string strsql,string TextField,string ValueField)" but when i...
5
by: Patrick.O.Ige | last post by:
What could cause the error:- System.NullReferenceException: Object reference not set to an instance of an object. Any ideas?
7
by: VB Programmer | last post by:
(Using Whidbey, but I don't think it matters.) I keep getting this error: System.NullReferenceException: Object reference not set to an instance of an object. Here is the line it's happening...
2
by: Graeme Neath | last post by:
I'm having a very bizarre problem. I have a vb.net application which uses the ESRI MapObjects 2.2 component (unmanaged code). When I use the MapObjects built-in function 'CopyMap' to copy the map...
2
by: Kash | last post by:
Hi everybody I have a session on my vb.net web applications first page to store an one dimensional array: dim myAry(2) As String myAry(0) = xVal myAry(1) = yVal...
0
by: Bill Baker | last post by:
I have a class that requires the Machine Name as a parameter in the construtor. It is a Windows Form app. When I run the executable, I get the "Send Error Report..." dialog. When I debug in VS.NET,...
5
by: zvikorn | last post by:
Hi, I'm trying to call a function written in a dll file, from ASP.NET 1.1 web application. Part of code in global.asax: <%@ Import namespace="WPPSYSTEMDLLLib" %> Sub Application_OnStart()
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.