Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Sun, 21 Sep 2008 16:05:00 -0700,    group: microsoft.public.vstudio.development        back       


Datagridview error   
I have a datagridview control in a tab page. Data on the dgv is populated by 
the datasource in the Windows VB.Net application and the datasource reloads 
itself on that tab page "on enter" event . There are several tab pages in 
the main form and I designed an "Exit" button in the main form to close the 
application completely. Problem is system crashed (not happen regularly but 
randomly, most likely after I sorted/filtered the column in the dgv or 
clicked on a row in dgv, but not always. ) when the focus is on the tab page 
with the datagridview control and exit out of the application. It pops up a 
datagridview error dialogue saying:

"System.Windows.IndexOutOfRange....blah, blah, blah
at System.Windows.Forms.CurrencyManager.get_Item(Int32 index)...blah, blah"

What is this exception? What have I done wrong in the application exit, it 
is just a simple line of code as follows:

Private Sub btn_Exit_Click(ByVal sender As System.Object, ByVal e As 
System.EventArgs) Handles btn_Exit.Click

Me.Close()

End Sub

Thanks
date: Sun, 21 Sep 2008 09:52:28 -0700   author:   Paul

encrypting the sa password   
Hello:

The DBA here changed the sa password and now a .exe program that users 
double-click on in order to run a SQL 2000 DTS package gives the response 
"Login failed for user sa".

In looking at the app.config file, the sa user ID and password are 
encrypted.  (The sa password used to be "sa"!)

Anyway, how can I encrypt the new sa password into this app.config file.  
The code is below:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
            <appSettings>
                        <add key="LogFileDirectory" 
value="c:\jcrepwin_Mulch\log\"/>
                        <add key="SQLServer" value="LBSQL01"/>
                        <add key="DTSPackage" value="XFER 
Transactions_MULCH"/>
                        <add key="USER"
value="AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAPUE5rk/gIEOeRPHLTmUviwQAAAACAAAAAAADZgAAqAAAABAAAACZvuGrxlyOIFqIAA56PCQfAAAAAASAAACgAAAAEAAAAFNaL/Xb3yweQOJgin+/zIAIAAAA4IlN3L5DuBEUAAAAatjuryGf7l0VrRZuvXreq7CyQ6M="/>
                        <add key="PWD" 
value="AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAPUE5rk/gIEOeRPHLTmUviwQAAAACAAAAAAADZgAAqAAAABAAAACZvuGrxlyOIFqIAA56PCQfAAAAAASAAACgAAAAEAAAAFNaL/Xb3yweQOJgin+/zIAIAAAA4IlN3L5DuBEUAAAAatjuryGf7l0VrRZuvXreq7CyQ6M="/>                        
            </appSettings>
</configuration>

Thanks!

SQL Programmer (it's just a name)
date: Sun, 21 Sep 2008 16:05:00 -0700   author:   childofthe1980s

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us