I have created a small app that gives, User Name, Pc Name, Domain & Local IP Address. I run the exe from my pc (development pc), it works fine. I put the exe on network shared folder and run it from my pc, It works fine. I put the exe on network shared folder and run it from another pc (logged in as admin) it gives "Application attempt to perform an operation not allowed by the security policy. To Grant this application the required permission, contact your system administrator, or use the Microsoft .Net framework Configuration Tool."
so, I contacted my self (since I am the System admin) :) and myself did not know the answer even after I read this [URL]... which says On the Web server, open Administrative Tools, and then double-click Microsoft .NET Framework Configuration. and the the other pc is XP not Windows server.Now If i copy the exe to this pc on a local drive, it will work fine and give right result. Another weird thing is when I run this exe from Windows 2003 server, and it gives a security warning, after i press ok, all the result was fine except the ip address with was "::1"
I am currently having a headache on how to solve this problem that i am facing. here is the situation: I have a combobox and a list box on the main form. The combobox will get the data from the ms access database. In the database, i have the details of a person's IC, Name and DOB say for eg on one entry I have D215311523C,SHAWN,13/04/1987 So now, my combobox on form load will show the list of dates in the database to allow the user to search base on the date itself by clicking on the selected date. So when the user clicks on the particular date say 13/04/1987, people in the database whose birthday is 13/04/1987 will be shown on the listbox.Meaning to say if i have 3 entries whose dates are the same 13/04/1987, 3 entries will appear. If there is only two entry, then two results will be shown. But now, when i do a single click on the date, one result will be shown. That is correct. But the problem is when i click on the same date again, three of the same results will be shown on the list box. that is it will display : 13/04/1987 13/04/1987 13/04/1987 which is not the case. Then it will show more duplicates of the same results if i click more times on the same date which should not be the case.
Dim n As Integer Dim numbers() As Integer Dim StartFrom As Integer Dim EndAt As Integer
I have a website that has highly granulised access and hence requires many web.config files. The problem is I would like to trim the menu so that only certain users will have access to certain folders. I have enabled trimming and setup roles in the sitemap, however when I access the page the menu is not show, as I am authorized to view the default page which is not in a subfolder. When I type the url of a page in sub folder's I have access.
How should I handle this:
A site map for each web.config file - don't know how this will work Removing the sub web.config file to only use a single one
I can use the c110 cam and one of the 270 versions at same time to get two seperate displays but when I try to usetwo of the 270 cams at same time which both show in device manager, I get "camera in use by another application" even though there are two cams (270's)and I reference them both seperately from a populated combo box containig all media devices present.will need to use all of the same type of cam for this app which will have from 4 to 16 or more cameras viewing and or recording at the same time. If there were 16 slightly different versions of the same cam which would give me different drivers, It would be fine but as you can probably imagine, not acceptable.
Imports System.Convert Imports Microsoft.VisualBasic.ControlChars public Class MainForm Private Property namesListBoxType As String Private Sub MainForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
CREATE PROCEDURE [TestProc] AS BEGIN select '1a', '1b' select '2a', '2b', '2c' select '3a', '3b' END
If I execute the following query using SQL Management Studio,
[Code]...
How can I get the three result sets using SqlDataReader? Or even three SqlDataReader's? Or is it possible to get multiple result sets in just one query in VB.NET? Is DataSet my only option?
I am creating an application for a friend and have no issue inserting or updating the table, but I am having trouble relaying the information from the query back to the corresponding textbox when searching for an entry.
This is the closest thing I've got to a working model, but I'm still getting and "array out of index error".
My goal was to make something that would constantly update the amount of gold that someone had. If they had X number of gold, it would display a certain image for a picturebox. You get the deal.I get "Error1'Money_Checker_Loop.My.Resources' is a namespace and cannot be used as an expression. C:**AppDataLocalTemporary ProjectsMoney Checker LoopForm1.vb3347Money Checker Loop.[code]
I have three Tables in the MS Access database as below:
Company_Data Name|Age|Department|Salary User_Data
[Code].....
and i have a compare button on the VB form. Is there any code that can compare the Company_Data with User_Data and copy all the records not found in User_Data to Changes_Data table. When updating it should update the "updated on" Column to the current Date.
Same needs to be done in the opposite way. Compare User_Data with Company_Data and note the diff. No Need to update Salary in this case.
I have a pretty complicated project with lots of class files, code modules, etc. There was a changed to one of my referenced DLLs that requires an isolated change in a single Sub within my solution. Unfortunately, this new Sub is not compatible with most of my clients' configuration but is required by some of my other clients. So now I must keep two versions in Source Safe of my solution - which I do not want to do. What I would like to do is to be able to determine which DLL is running and flip a switch to use the either the old Sub or the new Sub. Currently the sub is in a class, but I could break it out. Is it possible to determine which assembly version DLL is running? Also, if I reference the new DLL, the old Sub will not build. If I reference the old DLL, the new Sub will not build. So is there a way to keep both Subs in the same project?
I am trying to encrypt text to a textfile(.txt) and then decrypt it in a diff. program.The encrypting part works fine.I have tried these functions in a textbox and they work perfectly, I get InvalidCastException when trying to decrypt from the .txt file.
I need to overlay the text, a movie or bitmap over a video.It would be possible to use VMR9 filters, but at playing of a wide video, for limits of a black square, it is impossible to overlay in out of video square range.
I am using a datagrid in my where i am having four columns. In first column the parameter values are entered and in the second column measured value is entered and in third column the nominal value is entered.Inthe fourth column the result is displayed by subtracting the measured value and nominal values. I am doing this calculation in Datagrid cell validated event. What i want is,there will be many rows in the grid,when typing the value in the third column the corresponding result will be displayedin the rowof theresult column,save button will be displayed while the form loads,when the calculate part is completed that is there should not any cell of the resut column empty then i should enable the save butto.
I am encountering the following issue So i have a device that sends stuff at the serial port, i then parse it and put it into an array of bytes like that:
Dim HCI_Command_Rcvd_Byte() As Byte All good till here What i wanna do is make an array and put this result every time the serial port gives me a new result, for example:
[Code]...
Basically what i wanna do is let the port parse the messages, fill in the array with the result at an empty spot in this array and then i will have a separate thread that will look in into this array in each non empty space and after it looks into the non empty space it will use or discard the info and also mark this space as empty (after it checked)
I just read about DataSet in VB.NET, it uses disconnected concept. My question is: if my apps has "List All" button that query data from 1 table in the database, and that table has "very very very" many rows, so my DataSet will be filled with those data and eat up memory. Can I limit the data that being put to the DataSet from that query? But I want to be able to retrieve the next data from the same query if the user want to see it?
For example: I have 1000 rows in my database, and i query all of them. But I just want 200 rows being inserted to my DataSet, but if the user want to see rows number 201 and so on, I want to be able to retrieve the next 200 rows, and so on. So it just like cutting those data into a group of 200 rows. Can I do this with the concept of "disconnected" of the DataSet?
I have set up a method in vb.net and in xcode for encrypting a string using as far as i can tell the same parameters for an AES encryption.I've looked all over the place but cannot find information on whether they use the same encryption algorithm and settings.
this is the vb.net code:
Dim encryptAES As New AesCryptoServiceProvider() Dim encoding As New UTF8Encoding() Dim encryptor As ICryptoTransform encryptAES.Key = encoding.GetBytes("12345678901234567890123456789032") encryptAES.IV = encoding.GetBytes("1234567890123416") encryptAES.Mode = CipherMode.CBC
I am traying to use the DateTimePicker to extract days diff from a date selected on DateTimePicker1 to a date selected on DateTimePicker2. I have no problem substracting the daydiff in numbers of days. The problem I have is that I need the DateTimePicker to tell me how many of those days are weekends (friday, saturday) and how many are weekdays.
I have a simple video chat program running and most of it is working across my network I need to ask
I currently have it setup that whenever each client sends a message to the other a connection opens between them and a packet is sent, finnaly the connection is closed
This way I recive the data is were I belive my security problem comes in I have a listenner port on each computer and I am wondering if there is a way to add some security to it.
We have a web app that is using forms security.One of the options includes the ability to print an html page to PDF. We're currently evaluating different products like PdfMetamorphosis, but I believe all of them will have this issue.The client makes a request for the pdf by clicking a link button. The code for the button instantiates the PDF builder and passes it a url to convert. However, the URL is behind our forms authentication. Which means that the resulting PDF is nothing but a login page.
Unfortunately, we need the user information in order to verify acccess to the printed page (among other reasons). Which means I can't just allow access to everyone to that folder.So I need one of three possible solutions.
1) I need a way to give the PdfMetamorphosis component the authorization ticket to pass on in it's request. 2) I need an html to pdf component that will do this. 3) Something else?
I don't think the first one is possible and I haven't been able to find a html to pdf component that takes this into consideration.
I want to use PKI public and private encryption for authentication to allow for a more streamlined and secure application access control system. Any help in the generation of certificate and authentication will be useful. One more question, can i use System.Security.Cryptography.X509Certificates class for the same?
Ok, so I am on my last book of course material for college and this weekend I started making my own personal applications, stuff I can really use in everyday life, these projects also serve as a port folio for future employers
I am developing and application in vb.net winxp+ (windows xp upwards). The application has to receive backup data from clients software located at different pc over the Internet. but am concerned about security of this application on the Internet. what would be the best way to implement security in vb.net 2008 to make sure that the data is not sniffed or interfere with?
am thinking of encrypting the data before sending, saving it that way until it need to be viewed before decrypting. what type of encryption would you suggest? Is there any other way you would suggest this data be sent?
im starting to create a usb security software im searching if how the usb will be detected by the program so once it is detected i can now put the code to scan the drive.
recently discovered the My.Computer.Network.DownloadFile method and would love to use it to download files from a website (https://www...). I can include a username and password in the DownloadFile parameter list,but will it send the password in plain text? If so, is there a way to send an encrypted password?
There seem to be many ways to download files. What are the advantages or typical uses of each?
I'm working with vb.net in Visual Studio 2010, I have a method which writes entries in eventlog, this work fine in Windows XP but did not in Windows 7, here it throws a security exception.I allready know that this problem is because the user who exectues this assembly does not have permissions to write the registry, so my question is if does not exist some way to give permissions on the fly, something like declarative permissions or something like that....this is my code:
Public Shared Sub Loguear(ByVal xsSource As String, ByVal xsMessage As String, ByVal xeEventType As EventLogEntryType, _ ByVal xsLogName As String)[code].....