Impersonation Slows Down Form Controls

Jul 15, 2010

I have a strange issue when using WindowsImpersonationContext.

Whenever I use Impersonation in a Windows Forms and the Main Form loses focus, all of the controls freeze up and their events are either not triggered or take too long to trigger. This only happens when I use LogonUserA with a user that is not the current[code]....

View 11 Replies


ADVERTISEMENT

.NET 4 Update Slows PC?

Oct 2, 2010

I just installed the .Net4 update from Windows update. (KB2416472) Date last published: 9/30/2010

Now when I boot up it takes almost a minute before apps loaded are usable, for example Avast virus shows its not in full protection mode, you can't access any apps I made that are in the tray, even the LAN is not active or in the tray, before the .Net4 update I could access these apps instantly. The update also adds another file to the running processes called mscorsvw.exe. (yeah more bloatware!)

I have a back-up image of my C: drive so I restored the image twice now and installed the .net4 update and see no difference, it still slows everything down on boot, on WinXP anyway, haven't tried it on my Win7 PC yet. Just curious if anyone else noticed any abnormalities with the .net4 update that was just released.

View 4 Replies

Software Slows Down PC

Feb 16, 2009

I wrote a small application (150kB) which controlls 2 comports, is sending and receiving messages from both sides and is able to write/read into a text file. My problem starts after I run the application for 2 hours or more. The PC starts to be really slow, it takes ages to even open a folder. What can be the reason? I understand, there might be something in the buffer; how can I clear the buffer from time to time.

View 4 Replies

SAPI Slows Application Performance?

Oct 15, 2010

I'm using Visual studio 2008 and microsoft sapi in a forms application. I am using text to speech which works just fine however when the computer is speaking it "bricks" the application and the main ui is unresponsive until the computer is done talking then everything returns to normal. To counter this issue I tried using the background worker thread to establish the sapi on another thread however the form is still freezing when the computer speaks. I would like to note that at this point there is nothing on the form except a tabbed window and a few buttons the form is not performing any code what so ever other then the text to speech.

View 18 Replies

VS 2008 BGW Open From Slows Process?

Jun 13, 2011

I am using the BGW to run a long loop of several thousand records against several thousand records. If I open another form in the project then the process slows down dramatically, that is because in the Form I am opening has a DGV tied to Table that is being used in my loop process, so I understand why the process slows down.

What i am wondering and experimenting with is how to close the form and have the process resume to "Full Speed" if possible

I tried Closing the form verse Hiding it and DGV.DataSource = Nothing

Thinking that would unbind it?? and free up resources?

View 1 Replies

VS 2008 Button Slows Computer

Nov 26, 2009

all of a sudden my program just doesn't seem to work like it used to.[code]It searches the picture box for the color that you tell it to, and it moves and clicks the mouse at that pixel. Well... it used to do that, now it just locks up and won't respond for about 20 seconds.

View 1 Replies

RegEx Slows Down If Text Not Read From RichTextBox?

Aug 22, 2011

I found a strange issue with the combination of RichTextBox and RegEx.If I load a text file into a RichTextBox and use

Dim matches As MatchCollection = Regex.Matches(RichTextBox1.Text, "^H(.+ ){10}
", RegexOptions.Multiline Or RegexOptions.IgnoreCase)

then the RegEx will run blazing fast.OTOH if I load the text from a file straight into a string and feed this string with RegEx.Matches using

Dim FullText As String = New StreamReader("c:TempTextFile.txt", System.Text.Encoding.UTF8, True).ReadToEnd
Dim matches As MatchCollection = Regex.Matches(FullText, "^H(.+ ){10}
", RegexOptions.Multiline Or RegexOptions.IgnoreCase)

then the regex will run for ages.Now obviously the RichTextBox does something to the text. I found that loading the text into the RichTextBox will eliminate the first 4 bytes of the text (is that the byte order mark?). However, trimming those 4 characters with SubString won't solve the problem. RichTextBox does some other processing that I'm unaware of.I'm using RegEx both on client and server side (client can load text files into a RichTextBox to test and setup various RegEx's and the server will process text files according to these previously setup RegEx's). Needless to say that a regex will run blazing fast on the text file loaded into a RichTextBox, while the very same RegEx ran through the very same text file will seem to lock up the server side service.My question: what kind of text processing does the RichTextBox do and how can I mimic the behavior in a server-side process?

View 1 Replies

SQL Server 2005 Slows Down As I Keep Adding Rows

Dec 31, 2009

As a preface, I am brand new to using SQL Server 2005; I know how to use the SELECT, UPDATE, DELETE, and INSERT commands and that's about it. I am also using Express Edition on my local PC (E8400 processor, 8GB of DDR2-800, 2 x 640GB SATA-II HDD in RAID 1)

I have a table that I set up with 8 columns, all are NVARCHAR(Max) and I allow Null. I know in concept what a primary key is, but I don't have one (nor do I know how to set one up).

My VB.NET program that I'm working on is downloading a historical stock price chart from Yahoo, for every single ticker symbol in existence. The first 50,000 rows or so I added was super fast. Then I went to bed, and when I woke up it was still running - but the rate of row additions has slowed waaaaaay down; I noticed this around row 300,000. I always expected the rate of row addition to be constant over time, but obviously this is not so!

From browsing other Stack Overflow questions, I suspect my slow down is related to my piss-poor table setup. If this is the case, where should I begin first to fix this, and are there any good resources I could read up on to get started? I'm hoping this is something simple I can fix [code]....

View 5 Replies

When Import Background My Ball Speed Slows Down?

Jan 17, 2010

I just finished working on my school vb project - breakout. As soon as i import background my ball speed slows down dramatically. I used 1.25mb bmp, 40kb jpg, and lower resolution copies of both but i get the same result. In my game i use bitmaps for bricks, platform and the ball along with a timer and draw e.graphics function. How can i illuminate the reduction of the speed of the ball when i add my background?

View 3 Replies

ASP.NET Impersonation Or Scheduled Task?

May 25, 2012

I have to sync information between a users table in SQL and a user group in active directory. For example, if a user is entered into SQL table A then they need to be entered into group A and if a user is removed from SQL table A, then remove them from group A.The application is written in ASP.NET (VB)

I see two solutions:

1) A scheduled task that runs every night syncing the two (written in VB.NET).

2) Use inpersonation so that Active Directory can be updated by the ASP.NET application. The Web.Config file will have to be encrypted in this solution.

I have read articles online that say it is bad practice to update AD in ASP.NET. This would suggest that option 1 is the better solution. Which is the better solution?

View 1 Replies

Best Way To GAC Dll On Remote Computer With Impersonation?

Jan 27, 2009

What is the best way to GAC dll on remote computer with Impersonation to an admin account?

View 1 Replies

Delete File By Impersonation In .net?

Dec 1, 2011

delete file by impersonation in .net

View 7 Replies

Hide Passwords For Impersonation?

May 26, 2012

The following webpage talks about using impersonation in code (ASP.NET)[url]... I am thinking about creating a class for the code, then the application can call impersonateValidUser and undoimpersonation.

I am concerned about putting usernames and passwords in my code as surely anyone will be able to see them using a tool like ILDASM. What is the best way to hide these passwords?

The article has a section titled: Impersonate the IIS Authenticated Account or User. I thought about creating an impersonated user in the Web.Config, but this would mean that the entire application is run as the inpersonated user. I only want a very small part of the application to run as the impersonated user - when it is necesary to access and update active directory.

View 1 Replies

Impersonation Not Working On Windows 7?

Feb 25, 2011

I'm using Visual Basic 2008 and I've written a very handy little app that takes care of serveraladmistrative tasks when our company gets a new project. I won't get into all the features but one of the tasks that it performs is setting up a new projectolder structureon our file server with a predefined set of subfolders and it also sets userpermisions on the subfolders.nder Windows XP it worked great and saved me tons of time. It made me giggle everytime I used it in the past becuase it would save me so much time doing these simple but time consuming tasks.

Now my computer is a Windows 7 Pro machine and the only way I can get the exe to run is to right-click the .exe and choose RUNAS administrator. I'm already a domain administrator so why I would need to do this is silly and annoying. In my code I already included a RunAs_Impersonator class so that anyone could use the app which worked great until windows 7.The RunAs_Impersonator class that I use can be found hereI recently needed to make some additions to the program'sbut when I try to debug itwhen it gets to the portion of trying to create the folders on the server,the program breaks and makes claims that I don't have the rights to do so.

View 5 Replies

.net 2008 Express User Impersonation API?

May 31, 2010

If someone has any knowledge on how the following works, please advise as to why I can sucessfully Load a user token, Set token privileges to load the profile, impersonate the logged on user, create the environment block, obtain the roaming profile path, and load the profile perfectly fine as long as the application calling the functions is running as an admin. The application runs as a service on the local machine. As soon as I try to run the exact same code under the SYSTEM account, LoadUserProfile returns error 5. What must I have to change in order to allow the SYSTEM account on the local machine to perform the same tasks?

View 5 Replies

Impersonation Doesn't Work Correctly?

Aug 30, 2011

I am trying to use impersonation when running an exe on a server. It appears to log in correctly but windows still doesn't recognize the Username.

View 2 Replies

Windows Impersonation And MS Access Database?

Sep 15, 2010

I have a VB.Net windows application which needs to modify a MS Access database availabe in server. The login user does not have permission to the folder where the database is available. So I am using windows impersonation with another user's credentials to access to that folder.This works fine and I am able to create a new text file in that folder. But when I try to access the database try to get a dataset from the database, it gives "unspecified error". When I check in the internet some people say that there could be problem with temporary files that OleDB tries to create.

View 2 Replies

Add Controls To A Form In Code And Set The Properties Of The Controls?

May 24, 2009

How can I add controls to a form in code and set the properties of the controls using the With statement?Also I would like to know how to add a container control and then add a control to that container.

View 2 Replies

Controls Not Return All The Child Controls For The Form?

Apr 15, 2010

I have a slight problem With an enumaration of child controls on a form. The following code will not get but about have the controls that are on the form. The controls show that the count is correct but when it goes through the loop it skips over some of the controls. If you run it through the enumeration two or three times it will get all the controls a few at a time. The solution uses two forms, one that has the controls and the other that labels are made and displayed on. The Tx is just a index to add a number to the label.name and rename the label. So each label is identified seperately. This works for all the the controls that are seen in the for each loop.

View 11 Replies

Pass Usercontrol Controls Or Form Controls?

May 11, 2009

I created a class that can take either usercontrol.controls or form.controls as a parameter,how can i pass either to that class? as a property or how?

View 4 Replies

C# - Impersonation In .NET In Windows 7 (Requested Registry Access Is Not Allowed)

Sep 27, 2011

So I am using a user to run the following code that is a member of the "User" group on a Windows 7, x64 machine. I am trying to use impersonation (by logging in as a user that is part of the Administrator group) to allow the current user to read from the registry. For some reason the login happens successfully but even though WindowsIdentity.GetCurrent() is returning the user that is part of the Administrator group I am still getting an error message saying "Requested registry access is not allowed". What am I doing wrong? This is the main code:

[Code]...

View 1 Replies

VS 2005 Impersonation With Account Local On A Remote Server

Mar 19, 2009

I need to impersonate with an account that is local on the remote server not the server where the application is running.

View 1 Replies

VS 2010 : Creating Folders With Alternate Credentials (impersonation)?

Sep 13, 2011

I am developing a small tool to allow our Windows admins to do stuff like create/delete users, mailboxes and other useful stuff.The current version has to be launched with RunAs as it requires domain admin privileges to do a lot of the stuff. Now, to overcome this I'm trying to incorporate a dialog box that prompts for credentials when the application starts and then uses said credentials throughout the application. I have it working for the AD interaction but one of the tasks the tool needs to do is create folders on a remote server and share them.Is there any way to create folders using alternate credentials? Maybe, once I have the credentials, quit the application and re-launch it with the specified credentials?

View 2 Replies

Accessing Controls Within Controls On A Form

May 26, 2012

I have a module level sub that I use to clear text fields etc on my forms:

CODE:

The problem I have is in the last few lines of code as I'm not really sure how to access the text boxes contained within the tab controls (of which there are many tabs and many text boxes).

This is the closest I've got but I am getting an "option strict on disallows late binding" error on the tabCtl in the following line.

View 6 Replies

Write Controls Text Into A .txt File And Read Them Form .txt File To Controls Again?

Jan 16, 2012

I have a form. And some controls(such as TextBox,ComboBox,etc.) on the form.Now,I want to store the controls' Text into a .txt file(or any other formarts).Then I want to read the text in the .txt file to my controls.

View 10 Replies

VS 2010 Display Pdf File Inside A Form That Gets Some Values From Form Controls?

Sep 27, 2010

Inside a form, I would like to display a pdf file which is already available in my resources (template file "untitled"). In this pdf file, I have some fields which get their values from some texboxes in another form. My aim is, when the user triggers the button to call this form, it should insert the values inside the pdf file and display the output pdf inside the form.I have written the code to an extend but could not finish it myself after my many trials... Now here are the two things I cannot manage:I can use a directory to read the template pdf "untitled1.pdf". But my aim is to use the file inside my resources. can save the output file in a directory but this is not I want to do. I want to display the output pdf.

View 1 Replies

Make Controls On Form Resize When Form Resizes?

Nov 21, 2009

How would i make so when the user resizes the form the controls on the form resizes to what ever(ex: form become full screen textbox is full screen.

View 2 Replies

Controls On MDI Form To Display Child Form?

Apr 15, 2010

I took picture box and some container controls on my MDI form but when I am opening my child forms it going to backside of my MDI forms controls.

How can I resolve this issue because I cannot remove my controls from my MDI form but at the same time I want to use my child form worked properly.

View 1 Replies

Scale Controls On A Form To Fit Form Proportionately?

Nov 30, 2010

I have a visual basic 2010 form with various group boxes, buttons, and labels. i want to be able to have the form maximized but when i do that the controls stay where they are at and they do not resize with the form. i want them to resize proportionately with the form.

View 1 Replies

Impersonation - File.Copy / File.Move With Different Credentials

Apr 2, 2009

Ideally I'd like to be able to copy/move between an accessible folder on my local drive and a network share that I don't have permission to access (but the application would). I am using impersonation to give me access to the files in the network share but using System.IO File.Move or File.Copy forces me to use the same credentials for each location. Is there a way around this?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved