Ok, here's where I slap myself, bang my head against a particularly strong wall, then put my head down a toilet... gurgling NOOOOB as it flushes!
I had copied the button from the Cancel button on the form. I had retained the DialogResult property of Cancel. So yeah, clicking the button opened the FolderBrowserDialog of course, then as soon as it closed, the DialogResult caused the form to close.
Thanks again for your help Mark!
One day I want to be a code monkey. Right now, I'm more like a code amoeba...
I am developing an Asp.Net 2.0 website, with MySql 6.0 connector and same Membership provider. Every thing was running until I uploaded my page having use of that connector 6.0
I simply used this
and made the connection in code
System.Data.OleDb.OleDbConnection conn= new System.Data.OleDb.OleDbConnection();
this code is running absolutely fine on my computer but its not working when I upload the page.
It shows this error:
CS0433: The type 'MySql.Data.MySqlClient.MySqlConnection' exists in both 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1e4eaa05\e62de4c8\assembly\dl3\cf265f44\00f987f7_7669c801\MySql.Data.DLL' and 'c:\windows\assembly\GAC_MSIL\MySql.Data\220.127.116.11597__36c71baaebd03a5d\MySql.Data.dll'
When I checked I found a difference in dll version. Server is having Mysql 4.0.
Please tell me how to overcome this issue. I just checked my local computer where I havent found that dll in temporary asp.net files.
I am trying to install a vs2005 web setup project in window vista with iis7 but give me error of "setup has been intrupted"
is there any problem bcoz i got stuck in this problem any help would be appreciated\
If you directly connect a device to your PC's ethernet card using a crossover cable, the device you connect has to have an IP on the same subnet as your PC, otherwise, you won't be able to talk to it at all.
You might want to export to script an existing stored procedure using SQL Server Management Studio first. Take a look at what it output, then you can model your code to create an equivilent string. It doesn't look like adding NewLines at the end of each statement is a valid statement terminator to SQL Server.
Thanks for your help. With a little more research, I was able to find and solve the problem. I found the error in the "InnerException". The error was: "Invalid syntax near 'PROCEDURE'". So I rechecked the sample code and noticed that the sample code did not have "CREATE PROCEDURE" in the .TextBody property.
The lines below (marked BAD LINES) are not needed in the TextBody property, since they are actually created programmatically by SMO when the stored procedure is created with:
Dim An_SP As New StoredProcedure(mMyDatabase, Name, "dbo")
As well, the lines defining the parameters are not needed since the parameters are created programmatically by SMO with:
My requirement is my Windows application should check periodically for latest updates on some network or web location and users can download only changed files. I found ClickOnce is helpful for this but also I am not sure that it is designed for only sandbox execution/only for current user context or once downloaded, the application can be used by any user on that machine.
My application is going to be installed once on multiple machines on shared way so any user logs on should be able to run it.