OCX Registration Only Works For Admin Users

Apr 23, 2010

I develop and maintain several VB6 applications used internally by my employer.All PCs (both my development machine and the users' workstations) run Windows XP. My normal procedure is to develop and test the application, and build an installation package (using the Package and Deployment Wizard), on my machine, and then at each user's machine do the following:

1.log on using a domain administrator account

2.uninstall any previous version of the application

3.run the installation package to install the new version of the application

4.copy the Start menu entries and desktop shortcut to Documents and SettingsAll Users, so that the application can be run by any user

5.test the new version of the application to ensure proper operation

Recently, I completed, tested and built the installation package for version 2 of a particular application.One of the significant changes in this version is the removal of a listbox control and its replacement by an MS FlexGrid control (this was necessary because the users require different items to appear in different colors, which doesn't seem possible with an ordinary listbox).In order to use the FlexGrid, I had to add MSFLXGRD. OCX to the Components... list on the Projects menu.After upgrading the six existing users to version 2, and installing it for a new seventh user, I've run into a problem I've never seen before.When I log into any of the users' machines using the same domain administrator login that I used to install the application, it runs normally.But when I log out and the machine's user logs back in, when they launch the application it always aborts with the following error as soon as the form containing the FlexGrid is opened:[code]With the machine's user logged in, I attempt to manually register the control by opening a command prompt window, making WindowsSystem32 the current directory and entering regsvr32 msflxgrd.ocx at the prompt, but that always generates this error: LoadLibrary ("msflxgrd. ocx") failed - Access is denied.

Of course, if I then log out the user and log back in with the domain administrator login, I can successfully use regsvr32 to register and unregister the control, and the application runs normally for me.I'd always thought that component registrations were system-wide, but this situation seems to call that into question.I've read elsewhere that this problem can be resolved by registering the control in the HKeyCurrent User section of the registry instead of (or in addition to) the HKeyLocalMachine section, and that I can do so by using a registry script rather than (or in addition to) regsvr32 and/or the installation package, but I have no idea of how to do so.

View 4 Replies


ADVERTISEMENT

VS 2010 Way To Make Like 'admin' Form Where New Account Applies Will Pop-up When 'admin' Log In And Then Either Accept / Reject New Users?

Oct 10, 2010

i have a script with a login form that creates a folder per user with username.txt, password.txt, firstname.txt, and lastname.txt. - auto creates when creating new user.after i log in and change form i want an label showing the first and last name of the person logged in,how am i supposed to do that? is there any way to make like an "admin" form where new account applies will pop-up when "admin" log in and then either accept or reject new users?

View 8 Replies

Domain Registration API That Works With Cocca Postgresql

Jul 22, 2011

I am building an Online Domain Registration Portal that allows an an Admin create, Update and Verify a New Domain Name using the portal , the Registry is using a Cocca app with a PostGreSql database. I built the portal using Visual Studio 2010 and VB.net.

My Issue is how to write the New Domain back from the Application to the PostGRESQL database of the Cocca that the Registry. I will prefer if there is an API I can use instead of updating the PostGRESQL database direct.

View 1 Replies

Asp.net - Give Permission In Web.config File For Users - Admin - Others?

Apr 25, 2012

I am getting confused to give permission for user's ,admin and others in web.config.
this is my web.config

[Code]...

Now i login with name neerajjadon then one new page is coming on this page i have one link button to move to another page.If i am clicking on this linkbutton then its not going to next page it is going to login page again.

View 1 Replies

Running As Admin - Vista Users Always Have To Set It As "Run As Administrator" ?

Jan 24, 2010

Every time I make a application and distribute it, Vista users always have to set it as "Run as Administrator" for it to work... Is there any way to make it to where they don't need to do this?

View 3 Replies

Admin On Vista Doesn't Show As Admin Class?

Jun 9, 2009

on XP Pro, IsUserRole(eUserType.Administrator) returns true, if the class is administrator, and false if it's limited...

On Vista, it returns true, if it's the first administrator account, and false for anything else... I created a second administrator account on Vista, and it shows in code as "Standard" (or limited) user, the same as if I made a "Managed Account" on Vista...

My
#Region " [IsUserRole] "
Public Enum eUserType
Administrator = 0

[Code].....

View 7 Replies

Unable To Use 2 Different Login Authorities Which Are Admin And Non-Admin

Mar 11, 2010

I'm designing a system, whereby am unable to use 2 different login authorities, which are Admin and Non-Admin. I am using VB.NET and Ms. Access and need help for the codes.I want something like, if i click on admin/non admin (with different passwords) a dialog box pops onto the screen and asks for the password. If the password is correct it should take me to the form i want. Something of this sort please.

View 9 Replies

Administer Website (create New Users, Assign Users To Roles) From A Windows App?

Feb 9, 2010

I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an encrypted password format), and a SqlRoleProvider. I need to know if it's possible to administer the users (create new users, assign them to roles, etc.) from a windows application - the powers that be don't want any administrative functionality in the web app itself.Here is the membership provider definition from web.config:

<membership defaultProvider="MyProvider">
<providers>
<add name="MyProvider"

[code].....

View 3 Replies

VS 2008 Database Search - Using SQLClient That Loops Though All Users In A Users Table

Dec 29, 2010

I've got a code using SQLClient that loops though all users in a Users table inside each loop i want to preform another search in the UserOrders table, thus doing a count of all orders.

I get this error

HTML

There is already an open DataReader associated with this Command which must be closed first.

Here is my code

vb.net UserLists.Items.Clear()
Dim connection As New SqlClient.SqlConnection(My.Settings.ConnectString)
Dim command As New SqlClient.SqlCommand("SELECT * FROM Users ORDER BY PersonName",

[CODE]...

View 3 Replies

.net Desktop App : Log Users Application's Usage By Users After Remote Deployment?

Apr 3, 2012

1.I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back.

2.Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only.

View 2 Replies

Vb.net Desktop App : Log Users Application's Usage By Users After Remote Deployment

Apr 4, 2012

1. I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back. 2. Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only. Any alternative way to achive the target is just fine.

View 1 Replies

Get Path Of 'All Users' Desktop And 'All Users' Start Menu

Jun 10, 2008

I cannot figure out how to get this call to work.I have searched EVERYWHERE.MSDN is no help at all and the only thing I can find is this vb6 code that doesn't work in .net.I tried to convert it over but I've had no luck.Specifically I'm trying to get the path of the "All Users" Desktop and the "All Users" Start Menu.It would rock if anyone could help me out with this one.

View 5 Replies

Link From Button - When Sheet1 Is Selected, It Works, But When Sheet2 Is Selected, Not Works

Jan 5, 2012

I have a spreadsheet with this code:

'insert link
sheet1.Hyperlinks.Add(sheet1.Range("P1"), "http://http://www.vbforums.com", "")
the code of the button (ribbon)

[CODE]...

When I press the button, it connects to the web site. when the sheet1 is selected, it works, but when the sheet2 is selected, not works, why? the path is sheet1,What's wrong?

View 2 Replies

Asp.net - Redirecting Admin To Admin Page And User To User's Page?

Nov 9, 2011

i'm having some problem over here. When user enter their id,it will show up the main page and its for user but when admin enter their id,it will enter the user's main page and i have to click admin site on the top hyperlink and it automatically logout and once i enter back admin passwrd and then only it redirect to admin page.how to make it like once user enter their passwrd it redirect to user page and once admin enter admin password in the login it redirect to admin ?I have 3 roles over here which are admin,staff and user. Hereby i'll provide you my aspx code and also my vb code which is running behind the program.p

ASPX
<asp:Login ID="Login1" runat="server" BackColor="#009933" BorderColor="Red"
BorderPadding="4" BorderStyle="Ridge" BorderWidth="1px" Font-Names="Verdana"

[Code].....

View 2 Replies

Code That Doesn't Works Runtime But Works Step By Step?

Jun 26, 2010

this is my code:

Dim WB As WebBrowser
WB = GetPage("http://speed.travian.ir/a2b.php?z=" + VillageID.ToString + "&c=" + Type.ToString + "&" + AttackParams)

[code].....

View 9 Replies

Pop Up For Registration?

Apr 15, 2012

How can a pop up for registration and sign up be enabled in vb 2005.when the pop up is visible, rest of the site should be disabled .

View 4 Replies

How To Write Registration Key

Jun 8, 2011

I need to code a tool repaire exe file how I can write this reg key

[HKEY_CLASSES_ROOTexefileshell
unascommand]
@=""%1" %*"

[code]....

View 2 Replies

Developing A Registration Key For Application?

Jul 12, 2009

i developed a very simple vb.net application and i need a way for every user to verify that they have paid for it. i would like the simplest method possible. it will be an off-line registration. I am actually looking for a way that I can program this easily myself, and am not interested in third part solutions.

View 2 Replies

How To Make A Registration Form Look-a-like

Aug 29, 2009

I just got Visual Basics 2008 Express Edition and I am very addicted to it.I am quite a fast learner. I was able to script together many fun applications that I learn from YouTube. I want to make a registration form look-a-like.I setup the design the way I wanted it and now its the coding part I am having trouble with.I have been on Youtube and this site for some tutorials but I still cant find what I am looking for. I have 4 Text boxes, one being Name, second being Last Name, third being E-mail, and fourth being Username.I also have a OK button that I want them to press when they fill in all text fields. The problem I am having is, say they only fill in the Name & E-mail field and leave the Last Name & Username feild blank when they hit OK I want a error to come up and say Please fill in all information. I have tried these codes and none seemed to work:[code]

View 7 Replies

Login/Registration System?

Dec 26, 2010

I am making a program that allows users to share certain files, and it requires anaccount.How do I make a login system? I have my own website, so I have a MySQL thing...Could I link it with that? I have never really worked with account systems so I have no clue on how to add an SQL database and how to use it within the program

View 4 Replies

Make A Registration Key Generator?

Feb 15, 2011

Okay, this is the final part to my program, making the registration keys...

i have no clue on where to start, i think it starts w/something like this, right?[code]...

View 14 Replies

Not Able To Complete Registration Process?

Jan 11, 2010

Although I thought I had registered for the 2008 VB Express, several attempts to run the application resulted in a "stall" at the following address: url...I tried uninstalling and reinstalling the application several times but with the same result.I also installed the latest Vista service pack. This is a problem with my desktop.I have not (yet) experienced the same issue with my laptop.

View 1 Replies

Registration Of Username And Password?

Mar 17, 2010

i have a problem when adding username in my registration form..registering same username is allowed in my program..i dont want to allowed this. How can i make it using SQL..if the username exist dialog box will appear that the username exist

View 10 Replies

Username - IP Address Registration

Dec 2, 2009

I am a member of the IT department and also a basic Database designer using Access 2007 and Visual Studio 2005. At the moment when a user calls for support, I log onto there PC using RealVNC, I ask them to tell me there IP address by hovering over there VNC Icon in there system bar. What I would like to do is create a program that runs on my pc, so when they log onto there pc there username and ip is registered in my program, so when they call, i can quickly look up there IP Address for VNC. I know I will have to have some sort of program running in there system tray that passes this information to my program but I am not exactly sure how to go about this.

View 1 Replies

Using ReCaptcha In Registration Form?

Apr 11, 2011

I have recaptcha code and its working fine when i tested it , but what i need is that in my registration form i need this recaptcha and the data should be stored to db if recaptcha challenge is passed and if not then the new challenge should bring up.

View 1 Replies

VS 2008 Autofill Registration

Feb 1, 2011

I like to write an app to autofill a form and submit it. e.g. craiglist, kikiji.
Where should I start first.

View 2 Replies

Log In As Admin?

Feb 14, 2010

I've created an inventory system that 2 accounts can access[code]....

View 9 Replies

.NET And MYSQL Based Registration System?

Jun 21, 2010

I have linked my vb.net application with mysql database but i am having a problem inserting data from the vb forms into the relevant fields in the database...

View 1 Replies

.net User Registration With SQL Service Database?

Jun 2, 2011

I want to create a log in and registration form in VB connecting to a sql database.

Databse Name: Users
Table Name: UserDetails
Table Fields: ID, Username, Password

The ID field was specifed as primary and self incrementing by 1 and the table has one username and password (being Id: 1, Username: peter, Password: admin). The Login form works, it checks to see if the user exists, if they do, they gain access, if not a message box is displayed. The Registration form however does not and I have no idea why, its probably something simple but yeah, hence the reason Im here! When I register I can add a user fine, and it wont allow me to add the same user, but when I look at the table, it is not updated :S and I have no idea why!! Even after registering the user closing the application and starting again, say I registered the following:

Username: Fred
Password: 123

Then I login with these credentials, it works. When I close the program and reopen the program, it still works and will not allow me to register a new user being Fred, 123. However after 3 or 4 minutes when I try again, the user no longer exisits and I can re-register with set credentials? The code is shown below (1st the login form that works, second the registration that doesnt).

Public Class Login
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
Dim connection As New SqlClient.SqlConnection("Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|Users.mdf;Integrated Security=True;User Instance=True")

[code]....

View 5 Replies

Application Registration Random Yet Transferable

Aug 16, 2011

I'm looking for the best way to set up application registration.Currently, I'm looking at hardware, generating a registration number from a variant thereof, then manually (through a created key-gen app) generating a serial number that I'm sending the registrant.Then, every time the app is stated, it re-generates the registration number, looks for the serial number, then checks to make sure that they match.until The problem with this is it ties the serial to that machine. I'd like to allow for transferring to another machine.What are some other solutions for application registration that will ward off pirating. i don't want to make it too easy for someone to install a single copy on 5 machines, or worse, share the serial with friends. I'd like to get paid for my work (call me crazy). I know about the 80/20 rule (of 100 registrations, 80 will pay, 20 will pirate) or 70/30 or whatever you hear, and am not opposed to that, but, hey, closer to 96/4 would be nice, right?

View 2 Replies







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