VS 2008 Use Code On Security Installation?
Aug 30, 2010How to use this code on security installation?
Public Function GetHDSerial() As String
Dim disk As New ManagementObject(_
"Win32_LogicalDisk.DeviceID=""C:""")
[CODE]...
How to use this code on security installation?
Public Function GetHDSerial() As String
Dim disk As New ManagementObject(_
"Win32_LogicalDisk.DeviceID=""C:""")
[CODE]...
One of my application is taking a lot of time on Windows 7 compared to XP. What application basically does is it creates some PDF files reads the content and emits on a form and then deletes the files. I ran ANT profiler on both XP and Win 7, and i could notice some differences. On win 7 some CAS related methods are widely called and those method calls were missing on XP.. Is this the reason ? If someone has faced similar issues,
View 4 RepliesI am creating an application that will compile code at runtime and then execute that code. My worry is this: Someone might make a malicious script, that deletes files for example. Is there an option in VB.NET that prevents Kill statements and other file operations from executing? Maybe a kind of 'security' feature? If not, is there another approach that I should take?
View 6 RepliesI recently did a clean install of Windows 7 Home Premium and a reinstall of Visual Studio Professional 2008. I can't find the Framework Configuration anywhere. I have looked on the Start Menu and in the Control Panel and in Administrative tools. I need to find it so I can fully trust the network where my projects are located.
View 3 RepliesI made a password protected program, but I wanted to make a reset password via security code. I made this, but it will not work for some reason. It seems like it'll work for the first time, but then when you try to set the password, it stills shows that the password is there and when I go into the reset password form and do it again, but then it say its incorrect.
[Code]...
This program is a small ADOX database with a single data entry Form. Originally written in VB 2005, it was copied into the VB 2008 Project folder. Opening the file in the IDE, it went through the Conversion process, nevertheless, because of the following error detailed below, the program will not accept any changes.
Error List: Warning 1 Unable to find manifest signing certificate in the certificate store. AppointmentsMissed (<the project's name) Under Security in the project's Properties Window these suggestions are made: Visual Studio was unable to determine the Code Access Security (CAS) permissions that are applicable to your project. The most likely cause is that your project references a strongly-named assembly that defines custom permissions, but that is not properly installed in the global assembly cache (GAC).
To correct this, try the following: 1. Ensure that any custom permissions defining assemblies referenced by your project have been properly installed to the GAC. If any of these assemblies have been rebuilt or have had their version numbers modified, you must install the new assemblies in the GAC. 2. Restart Visual Studio.
In my managed VB.NET code, I am able to write a file out to my desktop. Although, the statically referenced unmanaged code is unable to. I have hunted all over MSDN to find out how I can elevate the security permissions for this library method, but am unableto find anything.I declare the method as...Declare Sub WriteFile Lib "DataLog.dll" (ByVal fileName As String)Although, it throws an exception due to being forbidden from writing to the desktop. Is there an attribute
View 7 RepliesI have some sorce codes on my comp. and i am employing a few s/w guys for coding at my office i would like to know what type of security softwares / hardware i should install so that the employees do not copy my source codes and i would like to give them access to net but not to attach my source code. i have searched on net ...but as i lack the basics of this i am asking the favour from all u experts. most of the search has sent me to the links for antivirus or antispyware....and like wise.
View 6 RepliesI need some help in the creation of a program to generate a security code based on the current date. I need to create something that first multiplies the MMDDYY (ie X=MM * DD * YY) then also adds the MMDDYY then finds the remainder and then multiplies but a specified number. I would like to create a small program that sits in the system tray with this code displayed. The code will always need to be 6 characters, so I might need to pad it with zeros. It has been years since I took basic VB, and I am really rusty.
View 1 RepliesI just made an application using MySQL for the database. I use WAMP.Can I combine WAMP and my application installation into one packet installation ?
View 2 RepliesI am trying to mimic the results of some C code that uses the OpenSSL library using the system.security.crytography library in the .net 3.5 world, and I can't seem to get it right. part of the issue is my understanding of crytography in general.
Here's what is supposed to happen:
I send a request for authentication to a device.It returns a challenge digest, which I then need to sign with a known key and return The device returns a "success" or "Fail" message.I have the following code snippet that I am trying to "copy":
[Code]...
I have VB 2008 Express installed in my PC. I downloaded a program source code written in VB6 but could not open the files. What do I need to do to get this codes displayed.
View 4 RepliesWhere in Visual Basic 2008 Express Edition Software program do you specify a specific installation directory for a program?
c:Program Filesfinished program
I want to publish my program to try it out on another system and I want to ensure its installed in the directory structure I want.
I am building this tool for my 2 home computers. Its a client/server program, which is pretty easy to program. However, as with almost all program, you encounter an error now and then. However with this error I am completely clueless to what the problem is. Basically, when I connect from my client to the server, it connects and all. I can send command lines which the server then adds to the log. I have also made a command called /screenshot which basically just takes a screenshot and send it over the connection (so I wont have to run to my 2 computers constantly xD). Anyways, the thing is, that is working fine but This other code I'm making to make it list all the Drives and the first sub-folders inside the drives, disconnects me >_> I can send the screenshot line, that works fine, but when I send the 'listfolders' command, it just disconnects me. When I go back to my other computer it just says disconnected. And it doesn't even execute the given strings. I tested it to make it send a msg box when DCing, that worked fine, but listing those drives and stuff inside a TXT or List box didn't seem to work :<Also. this code works when I make it execute it on startup, but it wont execute it when its sent by my client. So my only guess is that Microsoft has made some sort of security precaution that made you unable to make programs that could have anything to do with the folders, over a TCP connection or something :s Thats my only guess, but perhaps you see whats wrong?
[Code]...
im finish my application and im finish ex�cutable the my application. and my question he's, if posible somebady want open my executable the my application with vb.2008.is that posible
View 1 RepliesI am not sure about the semantic of "ApplicationDirectory" membership condition. I am trying to use it in the .NET Framework 2.0 configuration tool. The tool's explanation to it is as below:
The Application Directory membership condition is true for all assemblies in the same directory or in a child directory of the running application. Assemblies that meet this membership condition will be granted the permissions associated with this code group.All the other membership conditions such as strong name, hash, allow me to input some criterias, only the Application Directory has not. So how to use it?
i need advise regarding user security on the network i am unable explain my need , because it won't visualize much hence i attached the graphical representation here kindly find it
View 2 RepliesI have VB6 and i want to install VB.NET 2008 without uninstall VB6. Is possilbe? Can i works correctly both?
View 1 RepliesI get the following error when I run my program on Windows 7 (x64) : The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security This is thrown on the following line:
[Code]...
how do I clear the permission for a certain user and also add a new user with some security permission?
View 2 RepliesAlright, my program requires a folder to put the save files in, and it works fine to create it when I know where the program was installed to. I want to assume that everyone will install to C:/Program Files... however, one cannot assume. Is there a way for me to find out where the program was installed to ie. D:/WorkPrograms/ProgramHere, instead of the Program files? Specifically, is there some sort of code that I can run at startup to find where the program file is, so I can keep all the save files in there?
View 3 RepliesI have created a setup project that after the installation, starts the app that is being installed. To do that I have added an Installer class to the app I want to get started and I am using it's commited event to start the app (Process.Start("...myapp.exe").
While this works fine on XP, on Windows Vista the application gets started as a "System" user which makes some parts of the app missbehave i.e. retreiving special folders of the user etc...
This is the question: way to start myapp as the logged in user? Mind you I will not have the credentials of the users.
I am getting the following error message when I try to call this program from a shared drive on our network;
System.Security.SecurityException: System.Security.Permissions.SecurityPermission
at EMAILVB.EmialVB.EmailVB_Load(Object sender, EventArgs e)
[code]....
Hi All,Out of the blue VS 2008 has started showing a security warning dialog every time I create a new project or open an existing one as follows:"The {application name} project file has been customized and could present a security risk by executing custom build steps when opened in Microsoft Visual Studio. If this project came from an untrustworthy source, it could cause damage to your computer or compromise your private information."Two options given are:1) Load Project for Browsing2) Load Project NormallyA 'More Details' button opens a message box with:"An item referring to the file "" was found in the project file "C:UsersAdministratorAppDataLocalTemporary ProjectsWindowsApplication1WindowsApplication1.vbproj". Since this file is located in a system directory, root directory or network share it could be harmful to write to this file."1) I havent changed any settings since before getting this error and have kept all directories the same2) file locations are in "C:UsersAdministratorDocumentsVisual Studio 2008" - with full permissions3) Vista UAC is turned off4) I am using the Administrator login5) I tried Tools>Options>Projects and Solutions>General - and un-checked "Warn user when the project location is not trusted" -
View 14 RepliesA security update has been released for Visual Studio 2008. It's a large one! (365.2MB) The update addresses vulnerabilities in Microsoft Active Template Library that is included in Visual Studio. This security update can be downloaded and installed through Windows Update or by going to the following link and manually downloading it.[URL]..
View 1 RepliesI've seen threads on this topic posted before but they didn't come up in the search that I did. What's the best way to get a computer id code of some kind that is unique for each computer so I could use that to create a unique software activation code?Does Visual Basic have any staements that can give you this kind of information.
View 18 RepliesI have developed a windows application in VB 2008. Now I want to make an Installation Package (setup) of my Project. But I don't want to create only the Setup. I want to include the .Net Framework 3.5 and Crystal Reports and all the files that are necessary to run my Application. so that when I run that setup (installation package of my application) all the necessary files installed automatically.
View 1 RepliesWhy am I getting a request to configure DAO when I start a program I am developing in VS 2008? After I execute several cancels, the program runs fine.
View 1 Replies1. Is there a way to use a smaller Active X SDK installation rather than the full (~450 MB) one to play MP3 in VB 2008?2. Is there a loop command (as with a wave file) in case using Media Player to play MP3 in VB 2008?
View 1 RepliesI am using VB 2008 express. I created a setup file for installation using the publish command. When I install on another computer, it installs under the documents and settings directory. I want it to install under program files like most other programs.
I've search everywhere on the web for this. The closest thing i could find was talking about the DefaultFolder under the projects applications folder. I don't see that option. I can specify all the publication directories - but these are strictly for where VB creates the setup file at - not where the setup file installs it. Frankly it would be really nice to be able to allow the user to specify the directory as an option, with program files as the default. But for now I'd be happy to just be able to change the default install directory for my app.