Click here to Skip to main content
15,914,160 members
Home / Discussions / C#
   

C#

 
GeneralRe: Microsoft Windows Software Development Kit Pin
Colin Angus Mackay29-Mar-08 5:33
Colin Angus Mackay29-Mar-08 5:33 
Generalmodeling tool OnPaint Pin
Gareth H29-Mar-08 4:15
Gareth H29-Mar-08 4:15 
GeneralRe: modeling tool OnPaint Pin
Colin Angus Mackay29-Mar-08 5:37
Colin Angus Mackay29-Mar-08 5:37 
GeneralRe: modeling tool OnPaint Pin
Gareth H29-Mar-08 5:45
Gareth H29-Mar-08 5:45 
GeneralRe: modeling tool OnPaint Pin
Colin Angus Mackay29-Mar-08 5:56
Colin Angus Mackay29-Mar-08 5:56 
General.NET Application to sent a FAX Pin
Member 388976029-Mar-08 4:13
Member 388976029-Mar-08 4:13 
GeneralRe: .NET Application to sent a FAX Pin
Gareth H29-Mar-08 4:19
Gareth H29-Mar-08 4:19 
GeneralDatabase connection problem Pin
wsamuel29-Mar-08 4:05
wsamuel29-Mar-08 4:05 
Server Error in '/MemberPhoto' Application.
--------------------------------------------------------------------------------

Value cannot be null.
Parameter name: String
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.ArgumentNullException: Value cannot be null.
Parameter name: String

Source Error:


Line 23: dbConnectionString = ConfigurationManager.ConnectionStrings["MemberPhotoConnection"].ConnectionString;
Line 24: dbProviderName = ConfigurationManager.ConnectionStrings["MemberPhotoConnection"].ProviderName;
Line 25: productsPerPage = Int32.Parse(ConfigurationManager.AppSettings["ProductsPerPage"]);
Line 26: productDescriptionLength = Int32.Parse(ConfigurationManager.AppSettings["ProductDescriptionLength"]);
Line 27: siteName = ConfigurationManager.AppSettings["SiteName"];


Source File: c:\Inetpub\wwwroot\MemberPhoto\App_Code\MemberPhotoConfiguration.cs Line: 25

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: String]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2725203
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +102
System.Int32.Parse(String s) +20
MemberPhotoConfiguration..cctor() in c:\Inetpub\wwwroot\MemberPhoto\App_Code\MemberPhotoConfiguration.cs:25

[TypeInitializationException: The type initializer for 'MemberPhotoConfiguration' threw an exception.]
MemberPhotoConfiguration.get_DbProviderName() in c:\Inetpub\wwwroot\MemberPhoto\App_Code\MemberPhotoConfiguration.cs:45
GenericDataAccess.CreateCommand() in c:\Inetpub\wwwroot\MemberPhoto\App_Code\GenericDataAccess.cs:111
CatalogAccess.GetDepartments() in c:\Inetpub\wwwroot\MemberPhoto\App_Code\CatalogAccess.cs:54
DepartmentsList.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\MemberPhoto\UserControls\DepartmentsList.ascx.cs:22
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832


I am wondering if this message shows that i've not connected to the database.Anyone can help me to solve this problem? There is no error occur in my coding when i debug and only this message comes out when i choose to 'start without debugging'.

When i choose to 'start debugging', another error 'TypeInitializationException was unhandled by user code' shown.
GeneralRe: Database connection problem Pin
Gareth H29-Mar-08 4:18
Gareth H29-Mar-08 4:18 
GeneralRe: Database connection problem Pin
wsamuel29-Mar-08 5:23
wsamuel29-Mar-08 5:23 
GeneralRe: Database connection problem Pin
Gareth H29-Mar-08 5:50
Gareth H29-Mar-08 5:50 
GeneralRe: Database connection problem Pin
wsamuel29-Mar-08 16:36
wsamuel29-Mar-08 16:36 
GeneralRe: Database connection problem Pin
nelo_29-Mar-08 13:10
nelo_29-Mar-08 13:10 
GeneralRe: Database connection problem [modified] Pin
wsamuel29-Mar-08 16:41
wsamuel29-Mar-08 16:41 
GeneralKeeping data-file consistent at computer-crash Pin
Frygreen29-Mar-08 0:14
Frygreen29-Mar-08 0:14 
GeneralRe: Keeping data-file consistent at computer-crash Pin
User 665829-Mar-08 3:57
User 665829-Mar-08 3:57 
GeneralRe: Keeping data-file consistent at computer-crash Pin
Muhammad Gouda29-Mar-08 4:03
Muhammad Gouda29-Mar-08 4:03 
GeneralRe: Keeping data-file consistent at computer-crash Pin
Frygreen29-Mar-08 21:45
Frygreen29-Mar-08 21:45 
GeneralA dash in an sql query Pin
Yevgeny Efter28-Mar-08 23:36
Yevgeny Efter28-Mar-08 23:36 
GeneralRe: A dash in an sql query Pin
Gareth H29-Mar-08 0:37
Gareth H29-Mar-08 0:37 
GeneralRe: A dash in an sql query Pin
Colin Angus Mackay29-Mar-08 1:00
Colin Angus Mackay29-Mar-08 1:00 
GeneralRe: A dash in an sql query Pin
Yevgeny Efter29-Mar-08 1:23
Yevgeny Efter29-Mar-08 1:23 
GeneralSave file Dialog Pin
D i x y28-Mar-08 22:22
D i x y28-Mar-08 22:22 
GeneralRe: Save file Dialog Pin
Luc Pattyn28-Mar-08 23:17
sitebuilderLuc Pattyn28-Mar-08 23:17 
General[Message Deleted] Pin
D i x y28-Mar-08 23:20
D i x y28-Mar-08 23:20 

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.