|
| charlescva : On March 25, 2008 10:57 AM said: |
i recieve the following error when using C# to follow this tutorial.
App_Code.cy2wsazk.0.cs
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
...
public virtual string MyNewProperty {
get {
return ((string)(this.GetPropertyValue("MyNewProperty")));
}
set {
****this.SetPropertyValue("MyNewProperty", value);**** Unable to connect to SQL Server database.
}
}
I do not understand. I started a new webpage and followed the directions explicitly. i do not understand why i am getting this error.
|
|
|
| prophetpius : On March 27, 2008 1:38 PM said: |
"Unable to connect to SQL Server Database" Check to confirm that the sql service is runnig, also confirm that u specified the correct database name in ur connection string
|
|
|
| prophetpius : On March 27, 2008 1:39 PM said: |
Please how were u able to download this video??????????????
when i click the download link it does not respond
|
|
|
| wleearmitage : On March 27, 2008 11:52 PM said: |
I am following along with the VB version and am doing exaclty what is being done in the video. When I get to about 26 minutes we add the following lines to the web.config file:
<anonymousIdentification enabled="true"/>
<profile enabled="true">
<properties>
<add name="MyNewProperty" allowAnonymous="true"/>
</properties>
</profile>
When I added this code and ran the project, I get an error saying it cannot find the SQL Server. Up to this point the project has been running fine. And no use of a SQL server has been used.
Any Help?
Lee Armitage
|
|
|
| romulusc : On April 02, 2008 7:45 AM said: |
|
|
|
|
| romulusc : On April 02, 2008 7:50 AM said: |
|
|
|
|
| SATAGE : On April 15, 2008 10:30 AM said: |
|
|
|
|
| Yankee : On April 17, 2008 4:51 PM said: |
finally a full screen option online. so no download :D
|
|
|
| Manmadhan : On April 17, 2008 7:34 PM said: |
Can be pretty slow in rushing all page objects.
|
|
|
| Soha.Jawabreh : On April 25, 2008 1:09 PM said: |
useful video but i felt that I’m lost coz of the too many objects are being used :(
|
|
|
| turner03 : On May 09, 2008 3:00 PM said: |
I followed the links... and when i got to Step 3, i got confused... does anyone know where you open this?
|
|
|
| turner03 : On May 13, 2008 11:10 AM said: |
|
|
|
|
| imarash : On May 16, 2008 12:34 PM said: |
So which one is better to use for websites with higher traffic?
|
|
|
| dragby : On June 03, 2008 5:51 AM said: |
Hi Arash,
As I understand it after watching the video, if a web site experiences heavy traffic, using Viewstate consumes bandwidth whearas using the session object consumes server memory. The alternative is to create a profile object in the web.config file which stores the information in a database, xml-file or wherever you designate.
If anyone gets an "Unable to connect to SQL Server Database" problem when referencing the profile object, then it could be because they did what I did. I deselected installing the "SQL Server Enterprise Edition (or whatever it's called) when installing Visual Web Developer. (I did so because I already had SQL Server installed on my machine.) I went to the download site and installed it. At first it didn't work, but later on (I guess after a restart of VWD) I no longer have this problem.
|
|
|
| dragby : On June 03, 2008 7:39 AM said: |
... actually I do still get an SQL error, but this seems to be due to a time out.
If i run the application a second time, so things load faster, then it works ok.
|
|
|
| AdamBies : On June 17, 2008 9:29 AM said: |
At 31:46 in the video, the Label does not populate with the value from the URL string when he runs the page application. I sat here trying to figure it out myself having paused the video before I realized it did not work for the guy in the video either.
How come the guy just moves on to the next topic even though the code obviously didn't work when he ran the page without trying to fix it or explain why it didn't work for him either?
|
|
|
| AdamBies : On June 17, 2008 9:53 AM said: |
Nevermind. I see that he re-traces the steps and see why it wasn't working. Would have been nice to edit that one part out to avoid confusion LOL... Great videos though overall. I am learning a lot more from these than other resources online.
|
|
|
| Bingobuddha : On June 17, 2008 4:35 PM said: |
Got to say I am extremely happy with the videos and the fact this is a free application is a great bonus. I think the presenter of the vids is good for my style of learning and after running through only up to lesson 4 feel really comfortable with it all. V well done and thanks MS ( for a change lol ).
|
|
|
| abelanet : On July 02, 2008 7:33 AM said: |
Good lesson - I am enjoying all this series
|
|
|
| IsrarAli : On July 23, 2008 7:57 AM said: |
|
|
|
|
| cv_vikram : On August 08, 2008 9:21 AM said: |
Its a good tutorial thanks....
|
|
|
| SALADINE : On August 17, 2008 6:58 AM said: |
|
|
|
|
| viki4u : On August 30, 2008 4:07 PM said: |
i want to create a form and insert a data in database
and read it in next page pls help me?
|
|
|
|
|
| rajar32 : On September 13, 2008 12:12 AM said: |
|
|
|
|
| Basar : On September 21, 2008 7:55 AM said: |
Hi,
I followed the tutorial but I also get the "Unable to connect to SQL database" error.
I tried to follow the links romulusc has posted but they didn't help?
Anyone?
|
|
|
| Terian : On October 16, 2008 4:35 AM said: |
I too get the SQL error using VSExpress 2008
As someone has already states, I'm sure it's because I also didn't install the SQL server express as we use SQL Server 2000 at work.
Is there some setting where I can force ASP.net to look to another server to store it's data?
|
|
|
| whatnot : On October 16, 2008 11:57 PM said: |
Hi
At 12:45 it's stated that the encoded string held in the viewstate hidden field "helps us retain the state of the text boxes". This seems wrong, in that, why would ASP need to store anything in the page simply to echo the state of the form back the browser?
Between about 25:30 and 27:35 various techniques for maintaining state are summarised. The Application object is discussed as holding stuff for every page and every user. But it is implied that this is not the case for the Profile object.
Surely this is incorrect? (Having tried the code supplied here, I had different browser sessions accessing & updating the same Profile variable, which would suggest it's global to everything).
Has this not confused anyone else??? Or am I being dumb?
|
|
|
|
|
| LinhMy : On November 11, 2008 11:42 AM said: |
Thank you very much. I like it.
|
|