DLL Stops Working After SA Account Disabled
Nov 4, 2009
I've written approx 4 projects that utilize a central DLL for database access. The DLL was written in VB.NET using the .NET 3.1 framework. All the code works great. Recently, I went through all the code and updated the connection strings to use a new username and password since they were using the SA account on SQL Server 2005. After recompiling and uploading the DLL to the web server, I disabled the SA account. All of a sudden, the DLL stopped working. It just stopped. I know that the code is ok because I copied it into a aspx file and it worked. I had to re-enable the SA account in order to get things back to normal, but I really would like to eventually disable it.
View 1 Replies
ADVERTISEMENT
Oct 20, 2010
I set the HourGlass, disable the button (to avoid ppl that are too used with FPS games), do the serial communication bit that last a couple of seconds, then the set the mouse back to normal and re-enable the button.And I have a few more like those through the software using text boxes or drop-down menus.[code]My form is set in design time to be KeyPreview = True and I even tried to set it again after the Click. The routine is simply not called and the ESC key on the keyboard does not hide the form anymore.
View 1 Replies
Jan 18, 2010
Can someone tell me how to determine if an account is disabled in AD using VB.net 2008? I've looked at the "userAccountControl" property and this one seems to have it's flags changed when the account gets disabled.[code]I can't seem to figure out the proper statement to determine if the account is disabled or not. It doesn't seem to work out the same way as the lockout status.[code]
View 4 Replies
Jul 28, 2009
I have an animated gif in a picturebox that's loaded from the start.The problem is, whenever any application goes on top of the app the gif stops moving.Example : the app is open (gif is animating), I open notepad, I open the app (gif has stoppd animating)How do I keep it animated, even when the app is not visible?
View 2 Replies
Aug 13, 2010
Running solution with VB.NET & C#, ASP.NET, VS 2008 with ReSharper 5 Most of the time, ReSharper is working (redundant code grayed out, squiggles, etc.)Sometimes, on the same code where it was working, nothing is highlighted to show ReSharper is enabled.I haven't done anything except modify code and debug.
View 1 Replies
Nov 21, 2011
i have a accordion control(using jQuery) on the page. When I insert accordion into an updatepanel, set a button outside the updatepanel as its trigger and click on the button the accordion stops working. If I remove the updatepanel, it starts working.
<script src="Scripts/ddaccordion.js" type="text/javascript"></script>
<script type="text/javascript">
[code]....
View 1 Replies
Dec 23, 2009
I have two forms frmA, frmB. I have a listview on frmA with a couple items with tags. In the listviews Itemactivate event I get the FocusedItem's tag and open frmB. Everything works fine until I close frmB and come back to frmA. The original item is still selected but the Itemactivate no longer opens frmB. I can step right into the frmB.Show line on frmA, it's just that frmB nevers shows.
Private Sub ListView1_ItemActivate(...) Handles ListView1.ItemActivate
Select Case ListView1.FocusedItem.Tag
Case "showfrmB"
[code]....
I've tried adding Hides, Activates, etc. with no luck.
View 4 Replies
Jul 29, 2010
If you do a search for "ie8 back button disabled" you'll see a number of blogs with people having difficulties with the Internet Explorer version 8 back button becoming disabled. This now happened to one of my ASP .Net pages. The page uses a user control, aspx page, and a master page. It uses no redirects and seems to be happening when I click the back button and then the forward button (after the forward button is clicked, it does not fire the Load event and the back button becomes disabled).
View 2 Replies
Aug 17, 2009
I am having issues with my program. It should update every time i click the button, but it runs through perfectly on the first click, after the first click it does nothing.This is a UDP Program, where the client sends a packet with a sequence number and payload which are separate items in the packet. The server receives the packet, reads the sequence number, and then sends back the next sequence number the client should send.The client then receives that from the server with the same payload.. And then should change its sequence number to the one it recieved, and send that to the server..The client works up to where the client updates to the sequence number it receives from the server.. But both show no effect on any clicks after.
Heres my Client
Option Strict Off
Option Strict Off
Imports System.Net.Sockets
[code]....
View 21 Replies
Aug 16, 2010
I'm having trouble getting my archive service working. The service counts files in a directory and sends a email. Pretty simple. However, it randomly stops working. I debugged the service and found nothing wrong. I also have it writing to the eventlog so that I can use it to determine where it fails It progresses through each function normally. I thought my program was failing at on point, because it was only posting "Email Notification Service is Running". However, I realized it wasn't posting to the eventlog source so I've been playing around with different ways to post the message to the eventlog. Am I missing something from my code below? I'm really scratching my head with this one.
[Code]...
View 5 Replies
Aug 5, 2010
I have an application I run on a netbook that is folded up inside a robot.Occasionally, something from the system tray will pop up unexpectedly. This removes the focus from my application I also thought there was a way (in forms properties in the vb6 days) that would allow to "run when minimized"? In short, I want this application to be running and nothing (asides an application error message) else getting in the way.
View 4 Replies
Jul 21, 2010
I'm having complications with imlementing a service that uses a timer to send emails. In my code, it stops in GetDocuments() after TisValid() validates the directory path. I tried using a addhandler and threading but neither worked.
View 3 Replies
Oct 11, 2010
Has anyone used a system wide hotkey and notice it no longer works? But the program is still running fine. When I run my program and it starts the hotkey, sometimes it will work fine all day, other times within 15 minutes I press the keys and the program does not react to it. I am using the keys Control-F2. Here is my
Public Sub SetHotkey()
Try
Select Case ComboBox2.SelectedIndex
[code]....
View 1 Replies
Jan 15, 2012
Public Sub bk()
Try
Dim strDatabasePath As String =
[code].....
View 1 Replies
Jan 15, 2012
Public Sub bk()
Try
Dim strDatabasePath As String =
[code]....
View 1 Replies
Jun 3, 2011
And here I am with a new problem in my program When I debug it everything works fine (the buttons, progressbars, pinger, spambot, When I compile it and run the Executable file, it works too.When I run the Executable file on another computer (tried on 4 different ones) the program stops working and
I get this error:
{$ exception. "Failed to create the form For more information, see Exception.InnerException error: File or assembly ." Microsoft.VisualBasic.PowerPacks, Version = 9.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a "or one of its dependencies not found. The system can not find the file specified .."} System.Exception {System.InvalidOperationException}
[Code]...
View 1 Replies
Jul 20, 2012
I tried to use bmp.save to create some thumbnail, it works fine for a while then stops working,how to troubleshoot the problem? the code doesn't generate any error:
Dim bmp As Bitmap = WebsiteThumbnailImageGenerator.GetWebSiteThumbnail(address, 800, 600, width, height) Dim ScreenshotPath As String = Request.PhysicalApplicationPath + "Screenshots" Dim ScreenshotName As String = UserAccountDB.GetUserFullNameByUserLogon(User.Identity.Name).Replace(" ", "_") + Now.ToString("yyyy'-'MM'-'dd'-'HH'-'mm'-'ss") + ".bmp" bmp.Save(ScreenshotName) imgWebsiteThumbnailImage.ImageUrl = "~/Screenshots/" + ScreenshotName
View 1 Replies
Jun 18, 2010
I'm using this code for encoding with wme.
No erros but if I rn the app vshost.exe stops working.
Its somethignw ith the DEP?
Imports WMEncoderLib
Public Class Form1
Dim WithEvents MyEncoder As WMEncoder
Dim MyProColl As IWMEncProfileCollection
[code]...
View 3 Replies
Feb 9, 2011
First of all i want to say i feel very rude as my current posts only consist of me asking questions and never posting to give answers. im still learning and do not want to give people diff advice and sending them down the wrong path.I am doing an assignment for my vb.net course and im having a problem with tabcontrol. I originally didnt do my code inside a tab control. Then i had to copy all the code and button etc over to the tab control then the code completely stopped working. I copied the code then deleted it and pasted it back into my project and it worked again. But it seems everytime i restart my laptop the code stops functioning and i need to copy delete then paste to get it working again!I need to hand this assignment in shortly and i dont want to if my code is working intermittantly..
View 5 Replies
May 26, 2011
I'm using Visual Studio 2010 and .NET3.5. I've created a WCF service application. I'm including two DLLs that contain the types I'm returning. The first method I wrote works both in WCF Test Client and also in a console application I created to test. When I move on to the next method that returns a generic list of a type. It works great in WCF Test Client, but when I update the service reference it acts as if the service is unavailable. All my objects say can't find reference, and I can no longer see it in the object browser. It's like it just disappears. I can still see it in the Service Reference folder. If I go back to the WCF app and comment out the contract and implementation of that one method it work again. I created a local class very similar to the class I'm using from the dll, and the it works. Is there something I'm missing here? Can someone point me in the right direction?
View 1 Replies
Sep 12, 2010
Does anyone know how to run windows explorer with an admin account while logged in with a non admnistrative account? i want to be able to open up an admin share on a remote host with windows explorer instead of iexplorer. I tried some code I found on the net to impersonate but it didn't work.
View 2 Replies
May 17, 2012
I am currently working on a stock market monitoring application. how to create a new portfolio(sort of a personal account) for each user that accesses the system such that 2 different users do not have the same portfolio. I am making use of SQL server for my database.
View 3 Replies
Aug 27, 2010
We have a windows service running under a network account that calls and runs an ActiveX exe. The exe is running under the local system account, not the network account of the service.
View 1 Replies
Apr 26, 2009
Ok this is what I'm stuck on:I have 2 ListBoxes and 2 Lists, let's call them ListBox1, ListBox2, List1 and List2.List1 needs to be associated with ListBox 1, and List2 with ListBox2 I loop through a bunch of accounts, add them to LixBox1 at run-time.During that loop I add each account number to List1 so now the account number is associated with the ListBox index number which is right.Now when I double click one of the accounts in ListBox1 it is added to ListBox2 (but it still remains in ListBox1), and the same index of List1 added to List 2, now the account in ListBox2 is associated with the account number at the same index in List2 you see where I'm going with this?The issue wtarts here.When I double click an account (let's say the account at the first index) in ListBox2 it should be removed from the list, so now I remove the index from List2 since it's no longer needed, but now you know what's happened right? ListBox2's List indexes have all decremented by 1 because I just removed an item from the beginning of the list, but List2's indexes have stayed the same (at least that's how it appeared when I tested it).
So basically whats the best method for keeping things in reference? I was told about list boxes in another thread of mine, but is it really the best way to go about this, I can't seem to keep everything linked together reliably.
View 10 Replies
May 5, 2011
In my form3 i have this code
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim vs As Integer
[code].....
View 1 Replies
Mar 1, 2009
I am using the following code to create a dummy file of a specific size. RemSpace declared as a Long value and is returned in bytes from a separate function in my applciation. I have verified that it returns the correct # in bytes. However, when I execute the following routine, the dummyfile is created, but it never stops the loop. I have to kill it from task manager or it would fill up the HDD. The line:
For i As Integer = 1 To RemSpace
should tell the For loop to stop when it reaches the value of RemSpace, which is a long value in bytes. Here is my complete code.
Public Sub Create_DummyFile()
Dim RandomClass As New Random()
Dim RandomNumber As Integer
[Code]....
View 9 Replies
Jun 12, 2011
I am using VB 2101 express, I am try to right this program but it will not go past the end of my loop, does anyone know why?
If (Not System.IO.Directory.Exists(root + "setting")) Then
System.IO.Directory.CreateDirectory(root + "setting")
End If
[Code].....
View 2 Replies
Jul 4, 2010
I have a timer in one app which is basically the clock of Windows displayed in a textbox.If I run two apps at the same time I notice that one timer after a while, stops
View 12 Replies
Mar 3, 2012
If I have two buttons, one to start a song being played and one to stop it. The start button has enabled set to true and the stop button is enabled to false. What I want to happen is the stop button to only become active when the start button is pressed. I was thinking of putting stopMusicButton.enabled(True) within the start method, but this doesnt seem to work
View 2 Replies
Jul 22, 2011
I have a solution that has three projects. One is a service, one is a form, and one is a class library. I use the form for debugging, my logic is complete now I would like to just call.
[Code]...
View 1 Replies