|
Post by saketh on Jul 27, 2015 17:34:50 GMT
type initialization exception was unhandled by user code.The type initializer for 'ConnectionClass' threw an exception. i am getting following error .what to do?
|
|
|
Post by Navid on Jul 29, 2015 6:40:37 GMT
in ConnectionClass.cs
static ConnectionClass() { string connectionString = configurationManager.Connectionstrings["CoffeeConnection"].tostring(); conn = new sqlconnection(connectionString); command = new SqlCommand("", conn);
}
its showing error "Configuration Manager does not exist in Current context" Also I tried attaching reference "using System.Configuration;"
|
|
|
Post by tahir on Aug 25, 2015 11:14:33 GMT
coffee.name, coffee.type,coffee.price,coffee.roast, coffee.country,coffee.review, coffee.image)); lblOutput.Text = sb.ToString();
it says that cannopt contain defination of name,type,price,roast, country, review, image etc...
Error 1 'WebTutorial.Pages.Coffee' does not contain a definition for 'Name' and no extension method 'Name' accepting a first argument of type 'WebTutorial.Pages.Coffee' could be found (are you missing a using directive or an assembly reference?) C:\Users\tahir\Documents\Visual Studio 2010\Projects\WebTutorial\WebTutorial\Pages\Coffee.aspx.cs 61 28 WebTutorial
|
|
|
Post by tahir on Aug 26, 2015 9:22:59 GMT
coffee.name, coffee.type,coffee.price,coffee.roast, coffee.country,coffee.review, coffee.image)); lblOutput.Text = sb.ToString(); it says that cannopt contain defination of name,type etc
|
|
|
Post by tahir on Sept 12, 2015 10:07:42 GMT
at 11:53 the number in brackets turns suddenly to blue like {5}, could it be a reason for error. Any ideas??
|
|
|
Post by rupesh on Jan 10, 2016 17:59:01 GMT
Sir want sqlscript which is used by you in your part 2 video of connecting the database
|
|
|
Post by Apolo on Jan 17, 2016 8:44:41 GMT
I have completed all the process until this tutorial 2 like connect it to database and everything else but I am not able to see the image that are store in the DB and also in the Image/Coffee folder, I have tray everything double check but I still not able to see images
|
|
|
Post by Aya on Aug 6, 2016 15:57:14 GMT
Hi Michiel i have a problem when you make the class (coffee ) from (App_Code) folder , i can't find (App_Code) folder in my project i just find (App_Data) folder please ,how to solve this problem ?
|
|
|
Post by Caiu on Oct 8, 2018 20:33:50 GMT
How come you don't answer most of the questions asked in the comment section of your YouTube tutorials?
|
|