Program Compiled With VS2008 On Pc With Only .NET 4.0
Apr 28, 2010I have a program in vb.net compiled with VS2008. When I run it on a pc with only the .NET 4.0 installed, I get this error:[code]
View 11 RepliesI have a program in vb.net compiled with VS2008. When I run it on a pc with only the .NET 4.0 installed, I get this error:[code]
View 11 RepliesI am not a programmer or anything like that but I have managed to create a little program.The program is for work. It is VERY simple - it adds a few figures the user inputs and then generates a text output so the user can copy and paste it to a customers diary notes on the customers account.Here's the problem: It works on the managers computer but not on the consultants computers who will be using it! The reason it doesn't work is because the normal consultants computers don't have .NET installed :( The solution is simple - install .NET! lol however the company I work for is quite massive (corporate size) and our department is quite small and insignificant so if we want to install something like .NET on all the consultants computers it will take around 6-8 weeks! Now we desperately need to start using this mini program ASAP! Is there any humanly possible way to run a Visual Basic program without installing .NET? Is there some kind of file I can download and put in the folder of the mini program that will allow it to work?
View 2 RepliesI've a requirement to have PreCompiled webpages and Non-PreCompiled webpages under same application. For example below is my structure:
/Bin
/Test1 (PreCompiled)
/Test2 (NonPreCompiled)
/Test3 (PreCompiled)
I would like these to have their separate "Bin" folders too if possible at all (I tried using "Probing" but I guess that's not allowed for web apps and defaults to "Bin" folder). If not that then definitely some ability for these to work together under one app/virtual directory because I'm not allowed to create another at any cost :(
I need to prove that a VB.NET program that I wrote was written at a particular time.
(the reason is an academic integrity investigation where someone copied my code).
I have all the code on my disk including the debug and release folders, with my username in the build paths.
Are their addition things I could do, such as looking in the binaries?
I've written an app in VB 2008.using .net framework 3.5
It uses a MySQL database.No app.config file for settings, I had this, but removed it when troubleshooting :S
Error is this.
When I compile in VB2008, it runs flawlessly, no issues.I added a setup wizard so I can distribute the project as well.When I put this on a client machine, it installs fine, but on the program run, this exception is thrown.[code]...
I need a function that will convert a type to a string, for example[code]...
View 2 RepliesUnhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
Invalid Argument=Value of '10' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex.
In my code I reference certain excel files by listing the paths and names within my code. I've herd that if I put my excel files in bin/debug/ then I no longer need the path and can simply refer to them by name. This has not worked out well for me. how I can add a file to my project reference it by name in the code and have it compiled with my program so that other's (without that paticular path) can use my program. I have also added them as an "Item" and have their properties referenced as an "Embedded Resource", but still no luck. Maybe i'm just calling them wrong? Below is my code....
Dim file1 As String = "C:
etworkpathmyfile.xlsx"
Dim hdrftr As Object
[Code]....
I have some programs written in VB2010 using functions from a DLL. I have compiled and run these programs on a 32bit XP computer and a 32bit Win7 computer and have had no problems accessing the DLL.I have published an installation of these programs and tried running the install on a 64bit Win7 machine and the installation is performed correctly. It installs the programs and copies the required DLL into the same folder. the problem is that whenever I run the software and try to access the DLL I get errors.
The error says something like:
An unhandled exception has occurred in your application. An attempt was made to load a program with an incorrect format. (Exception from HRESULT:0x8007000B)
If I click past it the software runs and all of the forms are loaded properly, but anytime in the software if I try to access the DLL I get the same error.I am declaring functions in the DLL like this:
Public Declare Function OpenDriver Lib "OP815M.DLL" (ByVal handle_Renamed As Integer) As Integer
I have also tried placing the DLL in the system32 directory and also the sysWOW64 directory and that did not help as well.I do recall that hardware drivers need to be properly signed and pass the Microsoft Logo testing. Must I get the DLLs I am using properly signed?
Edit: Also it might be fair to mention that I have used the DLL with another program written in C, which would run in the DOS command line in Windows and it correctly accesses the DLL on a 64bit machine, but just when run from the DOS command line in windows.
I'm making a program from witch one could run an application with different credentials.I can compile the program successfully, but when I press the button to run the program I get the following error: Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.The system cannot find the specified file.The code behind the button is as follows:
Dim myProcess As System.Diagnostics.Process = New System.Diagnostics.Process()
myProcess.StartInfo.FileName = "c:
un.bat /user:kreathyr c:getlogin.exe"
myProcess.Start()
Getlogin.exe does nothing but show the logged in username and run.bat utilizes the runas command.
Is it possible to display my publicated program on an extern display?I know this is really difficult, but I thaught maybe I can put the program on a PIC and connect the PIC with a display.Problem is I have no tools to program a PIC, but if possible I'll search a solution for that. (I think you can let the PIC program
View 4 RepliesIt might be funny , but I'll ask anyway : is it allowed to create a program with VS2008 while at the same time it will use the Microsoft framework 4.0 ? I am asking because I use VS2008 while at the same time I have the impression that framework 4.0 is "lighter" than 3.5 .
View 7 RepliesI have 2 modules and 2 forms. In the module1, I initiated the form classes and also here I have my public appexit() method.In module2, I have another class(in the form of a keyboard done by code). Form2 use this class as its control.I have:
form1_closing()
mybase.close()
)
[code]....
Now when I call appexit() in my module1 from form1, I can see that the debug is going into form1_closing but when it goes inside form2_closing, it crashing the application here.I am developing mobile device application in Vs2008.Net3.5.
I want to make a program to copy files from the directory c:/program files/common files/apple/apple application support to c:/ And hide these files
View 1 RepliesI want to save data from web and desktop applications and then provide that info again to fill the forms with the saved data .I am using vs2008 and sql2005
View 3 RepliesI made a custom media player for my work that uses a windows media player control and randomizes 4 songs from a collection. There is reasoning behind the 4 songs but thats not too important. So the issue is that I had made this program for my work but when i put it on my work computer, it wouldnt even open, i double click it, it sits for a bit, then MP3Randomizer.exe has encountered a problem. Any idea why it works on my 64 bit windows 7 personal laptop but not my 32 bit windows xp work comp. I have created programs on my laptop and then dragged them to my work computer and they worked just fine. Is it the windows media player component? Never had this problem with any of my other programs. The program was compiles with .net framework 4 and my work comp has .net framework 4 on it, it is set to compile as x86. I cant figure it out. A
View 1 RepliesI am learning to use the ScriptControl. I have been able to get it working with out much trouble. But I do not know how or if it can be done to have the user write in the script to call a fuction/sub in the main app. How can I have the user make a call to a sub in the compiled exe?
View 1 RepliesIf I'm running VB Express 2008, how do I choose what NET Framework I need the compiled EXE to be compatible with?
How do I do it in Visual Studio 2010?
I'm buying a new computer this week and the one I want has Windows 7 Home Edition 64 bit. I program in VB.NET using VS2008. If I write a program and compile on this 64 bit windows, will it run in 32 bit? I did some reading and from what I understand is if it is not using any specific 64 bit drivers I should be good. I'm not doing anything fancy that I know of as far as drivers. I just wanted to see what everyone's past experience has been.
View 3 RepliesI'm a tad stuck trying to get a List to load from the ViewState using ASP.NET 4 and VB.NET. When I try to retrieve a collection using:
[Code]...
I want to add the time that my app was compiled at into a label in my app. For example if you went to the about dialog on my app it would say 'Compiled 07/06/2009 20:05', any ideas on how to do this? Im using VS2008 and Visual Basic.
View 1 Repliescompare to compile .NET assemblies?
For example I have HelloWorld.dll (1.0.0.0) and HelloWorld.dll (2.0.0.0), and I want to compare differences how can I do this?
I know I can use .NET Reflector and use the Assembly Diff plugin. Are there any other good tools out there to do this?
I understand you can't download compiled files because of viruses but how do you use the seperate files? I downloaded something and it only gave me a bunch of .frm and .frmx files.
View 5 RepliesI've got a 3rd party C application that's compiled to a non-.NET non-COM DLL. It has one simple function declared like so: Declare Function CapiTaxRoutine Lib "taxcommono.dll" (ByVal sInData As String, ByVal OutputData As String, ByVal intINPutLength As Long) As Integer
If I place the taxcommono.dll in my path (C:WindowsSystem32 is what I'm using because it's what the vendor recommends),I can wire up a call to the function and it works just fine.It returns a 1 or 0 for success/failure, but it also sets the value of the OutputData string parameter (using some C pointer magic I'm not familiar with) to a huge fixed width format return record that has the data I need.When I call it from a .NET .exe application, it works just fine.When I try to call it from an ASP.NET application via a referenced compiled .NET wrapper DLL, it runs but can't set that string.In order to get it to run, I can't have taxcommono.dll in my path, but rather have to place it in my Bin directory of the web project.Does anyone know of a reason it can set the pointer when called from an .exe application but not when called from a web app?The .NET wrapper DLL I'm using works when called from our ERP software, which is not web based. But when I add a reference to that same DLL in the web app, it won't give me that output value.am used to just getting a return value instead of a function setting the value of one of my input parameters.
For the last two days or so, I've been trying to get a program to compile another program that will extract a series of files and run them in a given order, like a self extracting zip archive.The program compiles fine and compiles sub programs, but I am unable to go about correctly embedding the resources.The output program shows the large amount of data ( ~12mb from the file I've been embedding to test ), and there are no compile errors.However, I cannot get it to access the resources correctly. It will either result in a compile error about the resource image not being valid / containing any resources, or a friendly "System.Resources.MissingManifestResourceException" being thrown.
View 1 RepliesI have a VB .dll from a previous developer that I need to modify. So I de-compiled it with no errors and then exported the code. I tried to compile the project and get two syntax errors:
New SqlDataAdapter(query, Me.connection).Fill(dataTable)
New SqlDataAdapter(DirectCast(command, SqlCommand)).Fill(dataTable)
The error message just says syntax error, nothing else.
I am making an application which will have a member list for my clan (with listbox), and times of warnings (with label), and conflicts people have had with this member (listbox).I want my application able to add members (with saving in file), and remove members (with saving in file), and remove warnings (wth saving in file).As I dont know how to split and remove and store stuff in a single file, it'd be impossible for me to code. That's why I come here and ask if someone can code this for me.Some of my friends said it could be possible by splitting each line, in the following format in a .ini (doesn't have to be .ini it can be also a non-format file) file:
[M]Member1|IntWarnings|Conflict1-Conflict2-Conflict3[M]
[M]Member2|IntWarnings|Conflict1-Conflict2[M]
This friend can't help me now, because he suddenly had to go offline, he might not come online today aswell.I have already made the interface, but as I said before, I have no idea how to code this and would like some help with this application.All the members I would like to store in: lstMembers (Listbox All the conflicts per SELECTED member I would like to store in: lstConflicts (Listbox)The warnings per SELECTED member, I would like to store in: lblWarningI want to know if this is all possible and HOW, since I have no idea what Split can do.
Our application is one EXE and multiple DLL's. Right now, we are compiling all of them for x86 so we are forcing 32bit because the running size of the application is a lot smaller (memory usage).If we compile the EXE as x86 and the DLL's as anyCPU, on a 64bit machine will the DLL's be 32bit or 64bit?
the reason for my question is if i can compile the DLL's for anyCPU and then have two EXE's, one for 32bit and one for 64bit, then i have only one duplicate program for the 32 or 64 bit change, and if a user wants to run full 64bit they only need to run the 64bit EXE and everything is fine. But if a user is on a 64bit machine but wants to run in 32bit mode, they would run the 32bit EXE.Let me know if this is true. i can't test this as i develop on a 32bit XP machine.
I imported a VS 2008 project, and eventhough my project is compiled for x86, the intellitrace will not run and says that the project is not targeting x86.
View 1 Repliesi know that NO software is safe from hackers etc... i mean if Windows can be cracked and hacked (developed by possibly worlds most advanced programmers) then hobbyists and small developers have alot to hope for.But is there any way i can increase protection for my vb compiled exe?First of all is there a way to remove ALL comments from my compiled code?Is there a good obfuscrator for vb net 2008 code
View 4 Replies