Showing posts with label wizard. Show all posts
Showing posts with label wizard. Show all posts

Thursday, March 29, 2012

getting the list of connection strings to display in the SqlDataSource Wizard

I've added an SqlDataSource control to my web page and selected "Configure Data Source" on it. This brings up a "Choose Your Data Connection" wizard, and it asks you to select from a dropdown list of presumably pre-existing connection strings in my web.config file. However none of my connection strings will display in that dropdown list. The only thing i can do is hit the "Create New Connection" button and this adds yet another connection string to my web.config file.

I've already ran through the wizard once, created a new connection string, but when i run through the wizard again, even the new connection string - the one created by the last wizard will not appear in the dropdown list.

Any suggestions?

Jason

Hi Jason,

Are the connection strings actually appearing in the web.config file? Are they actually working - that is, if you call one of the connection strings, does it actually do what you expect? I can't offer any actual solutions to this one, but have you tried creating a new web.config file and checking if this fixes the problem? Personally, I would set up a new application just to test this, and if it works OK in the new application then perhaps something in your current application has caused the issue.

Hope this helps.

Paul

|||

Hi Paul - yes i've tried your suggestions before but nothing works. In fact, even after already running "Choose Your Data Connection" wizard (and selecting the new datasource option) to let it generate a datasource for me, and then running the wizard again to see if the previously created datasource will appear, and it doesn't.

Not a big deal i guess but a bit of a pain. I wonder if its a bug...

Jason

|||

Hi Jason,

Please be sure that you have saved the string (a checkbox for you to select) the first time you use it.

Thanks.

sql

Monday, March 26, 2012

Getting Started with SQL Compact

I've downloaded and installed SQL Compact Edition. When I go to Access to set up a project (or to use the upsizing wizard) the software doesn't see the Server on my computer. No doubt I'm missing some very simple step. Although the compact server is installed, there's no program file to run, so I don't see how to get into the server software in order to set up a database or project that I can link to from Access.

I've also downloaded and installed Microsoft.net. As with server, the files are in place but there's no program file to execute.

For developing applications for SQL Compact you need to use Visual Studio. You can go to the following link to get an overview of SQL Compact http://msdn2.microsoft.com/en-us/library/ms172448.aspx and the following link to go to SQL Compact books online http://msdn2.microsoft.com/en-us/library/ms173053.aspx

Regards

Manish Agnihotri

Program Manager

SQL Compact

Friday, February 24, 2012

getting exception in sending mail

hello everybody,
i am using database mail for the first time.
i have configured it by using both wizard and stored procedures.
but i am getting the error in the log file as:

"The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 4 (2007-09-04T12:32:55). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 )"

Please help me out.
Thanks in advance

Here you go:

http://msdn2.microsoft.com/en-us/library/ms187540.aspx

|||hi Buck,
thanks it helped me a lot.
regards,
jasmine.

getting exception in sending mail

hello everybody,
i am using database mail for the first time.
i have configured it by using both wizard and stored procedures.
but i am getting the error in the log file as:

"The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 4 (2007-09-04T12:32:55). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 )"

Please help me out.
Thanks in advance

Here you go:

http://msdn2.microsoft.com/en-us/library/ms187540.aspx

|||hi Buck,
thanks it helped me a lot.
regards,
jasmine.