Lock Project Against "unauthorized Use" With A Certain Registration Key?
Dec 29, 2010
I need to guide me to lock my project against "unauthorized use" with a certain registration key which I will send it personally.I also want to inform me if this lock method can break it with reverse engineer method.I use visual basic for my project in visual studio 2010.
Vb.net 2008 I create registration user name and password project with Login form using My.Setting.My question when I wrote the username and password in TextBoxes . I want when checked CheckBox to save UserName and PassWord to Login again automatically.
I'm attempting to login to a cPanel using a POST Request in VB.Net. I have the correct credentials when logging in and when posting I still get an 'Unauthorized (401)' response when it should be '301' (analysed using Tamper Data Firefox Add-On). Below is my post request information and function.[code...]
I had an exercise where I was supposed to have a button open an openfile dialog box, let the user select a file, then another button that would save the file with the extension ".bak". The author didn't give any clues about manipulating extensions -- but a few chapters back we covered string functions. So, with that in mind, I did the following...
Private Sub btnSaveFile_Click(sender As System.Object, e As System.EventArgs) Handles btnSaveFile.Click ' Where does the extension start
I am trying to call multiple SQL Reporting Services Reports, get the .pdfs back, then append them together. I have no problems appending .pdfs, but I'm getting an error on the second report. Here's some example code:
Ive created a simple application that works fine when i debug and test it though visual studio but when i deploy the application, download it and install it onto my machine i get an error.basically when the first form loads it checks for a file called "New Folder" in my program files folder on my machine if the file is not there, then it adds the file. the code im using to do this is:
If System.IO.Directory.Exists(My.Computer.FileSystem.SpecialDirectories.ProgramFiles & "New Folder") Then Exit Sub()
I have an application where the admin user can create users and upload documents to the server for the created user to download.
When uploading a file it creates a folder using the userid as the folder name and saves in that folder within a folder called documents e.g. ~documents/77b29079-43d6-4520-bc34-77ae2af1b131/documentname.xls
The client then has to login and will see a list of available documents for that user only. The only problem is that if someone was to get hold of one of the urls to a document is can be downloaded without having to login.
Is there something I can do to stop access to these files?? I have tried editing the web.config file to only allow access to certain roles but i could still download a document without logging in.
I am just writing a simple file browser. It works without problems when I point to a specific directory but throws "UnauthorizedAccessException access to the path .... is denied" when I point to drive "C:\" or "D:\".
If Not txtToSearch.Text = Nothing Then ListBox1.Items.Clear() FC = 0 For Each foundfile As String In My.Computer.FileSystem.GetFiles("D:\", FileIO.SearchOption.SearchAllSubDirectories, Nothing) Dim title As String = My.Computer.FileSystem.GetFileInfo(foundfile).Name If title.Contains(txtToSearch.Text) Then ListBox1.Items.Add(title) FC += 1 End If Next
I am trying to get a list of files using this line of Dim files() As String = IO.Directory.GetFiles("D:", "*.*", SearchOption.AllDirectories)But it errors out on folders that are inaccessible, like the RecycleBin folder & the program stops. So how do I get a list of files in all folders, while skipping the inaccessible one
I've got a vb (desktop) app (not a web app) that needs to connect to my website, I've been told that embedding my MySQL database credentials is a big mistake for several reasons.So, I've built a web script in PHP that runs on my server called web-service.php, it's located at www.example.com/web-service.php.Now, I'm trying to connect with this code:
Code: Dim hwrRequest As HttpWebRequest = HttpWebRequest.Create("http://www.example.com/web-service.php") hwrRequest.Method = "POST" Using swWriter As New StreamWriter(hwrRequest.GetRequestStream) 'POST the info
[code]....
And when I do, I get the error "The remote server returned an error: {401} Unauthorised.", but I shouldn't need any credentials to access this. I'm just trying to POST a username and password to that page and have it query the database and then get the returned content, I'd prefer to use POST than GET so you can't see the user/pass in the URL (if possible).
EDIT: I used CPanel to password protect my website so it can't be accessed, after supplying my user & pass to access it, everything works.
I have my own login page.If any user access any page directly(without login),i want to redirect unauthorized user to login page. Using Generic Handler is there any chance?
If any directory within a set being searched by the [URL] or [URL] methods contains a junction point, the entire method fails and returns zero results on my tests under VB 2008. I would like to make the call more robust: to return the folders or files not blocked by access restrictions and to note the folders which were blocked. Do those methods offer a means to do this, or is a recursive folder-by-folder call necessary?
I am creating a file and then trying to read and write to it. I'm coming up with an UnauthorizedAccessException wa unhandled. My question is, How do I get around this properly or otherwise improperly to read and write to my text file?
Imports Scripting Imports System.IO Imports System.Security Imports System.Security.Permissions Public Class Form1 [Code] .....
I'm trying to write a console application that can modify registry subkeys on remote pc's in the same network. I have it working in my own environment but when I install on the customer machines I'm getting unauthorized access when it hits the OpenRemoteBaseKey. The security settings in the application properties is set to full trust application so I'm not sure why it won't work.
I'm using Visual Studio 2010 and first I just installed it on the customer machine and when it wouldn't work I ran the source code in Visual Studio 2005 which is on the customer machine but got same results.I can run the app directly on the remote machine and it will change the registry subkeys as directed, I just can't do it remotely. RemoteRegistry service is started. Both machines are logged in as administrators.
Here is the source code:
Imports Microsoft.VisualBasic Imports System Imports System.IO Imports System.Security.Permissions
I'm running Windows Vista with admin privilege and UAC is disabled but still unable to write to windows registry! My.Computer.Registry.SetValue _ ("HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRun", _ "Test", "C:Test.exe", Microsoft.Win32.RegistryValueKind.String)
I'm getting error "Unauthorized Access Exception was unhandled." "Access to the registry key 'HKEY_LOCAL_MACHINE....' is denied."
I've googled the net and found that registry permission elevation is required for admin tasks, Is there away to take registry key ownership through VB.Net code??
I have a very long running task I need to take from my website and put into a web service however every time I try call the web service I get this error message The request failed with HTTP status 401: Unauthorized.
My application creates a file by writing to System.AppDomain.CurrentDomain.BaseDirectory() & "data/" & filename...Now this works fine usually, but I just added a setup utility to the app, so now it installs to the program files directory. It installs correctly and creates the data folder, however when it tries to write the file it gets an exception "unauthorized access".
I'm using this class to try and impersonate a user on a remote machine.[code]....
However, it fails when trying to open the registry hive with an "Attempted to perform an unauthorized operation" error.I know the password is correct so can someone tell me what might be going wrong?
I upgraded from async_sinatra 0.5.0 to 1.0 because the latter fixed this problem So far so good. But when I went back to my original app, (as opposed to my test app), which contained authentication, it stopped working. I am using vb.net to make a webrequest, and this worked fine under 0.5.0, but now fails with "The remote server returned an error: (401) Unauthorized."
For reasons that are beyond my control, I have three Projects. Projects A and B reference project C. Project A references project B so that it can open a large form in project B. I now need to open that large form from project C, but VB won't allow me to add a reference from C to B because that would create a circular dependency. I found a way around it, though. I created a Timer in A, and when I opened C from A, I passed in that timer. When the user performs a certain action, I enable the Timer from A, and this causes C to open B for me.
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.
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]
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