Unable to Run my Application anywhere!

EFileTahi-A

Well-known member
Joined
Aug 8, 2004
Messages
539
Location
Portugal / Barreiro
Ok, I just wanted to try my VS 2008 application in another computer and guess what? I cant even install it, it gives me an error, you know the "Illegal Operation Error". Which gives me the following options, Send Report or Dont send it...

When I clicked on details I saw it has something to do with
System.Security.Security and thats it. How the heck will I solve this? Im incredible ****t off. VS is loosing quality over and over. Never experienced problems with previous version of VS regarding deploying applications...

Thanks for any possible help on the subject and sorry for my bad mood.
 
I just tryed the application in more 2 computers and it also fails to install. I cant simply believe I spent a full month working on a side application that its completely useless because it simply refuses to run anywhere except on my production computer!

My boss is waiting for my work and now I will have to delay its release ONCE AGAIN. But this time the excuse will be different, far more EPIC, because I simply cannot install it, like damn idiot whose knowledge in computers is way bellow average... great...
 
Is there anything special about your application? Are you trying to install via a network share? Is your application setup with partial trust? Did you use the Visual Studio Deployment project type to create an MSI file?
 
Hi Nate thanks for the reply. Ive tryed the application with both partial and full trust. I also tryed to give permissions (include) to all that was listed in the trust options. The application was intalled directly to each computer through a pen drive.

Regarding the MSI setup, can I create one? I mean type MSI? Where / how can I create one?
 
Last edited by a moderator:
Ok, I loaded my project in another computer (with VS Studio 2008). I saw some missing references and they reminded me of an external ActiveX component that its being used to comunicate with some specific hardware.

So, lets assume this is the problem, shouldnt the installer deploy all that is need in order for the application to propperly work? I see 3 DLLs related to that control included in the prerequisites, so it should work...

Completely lost...
 
Last edited by a moderator:
In Visual Studio 2008, you need Add a project to your solution. Its under Other Project Types -> Setup and Deployment. From there, you can add configuration files, external dlls, register said dlls, etc.

In the bin directory (after a build) of the Setup and Deployment project, there is setup.exe, and setup.msi.
 
Hi Nate,

Im trying to add the a Setup & Deploy project to my current project, but I cant see anywhere the this type of project from the list.

Is C# Express capable of doing this?

Anyway, I added a Try-Catch in the lowest possible level of the application to see if I could grab any error, and I did:

Class not registered (HDRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

I also managed to run the application in other computers, as long I install the VS Studio on them, load the project and finally add the .OCX file to the project.

So, it is indeed a problem related to my third party OCX. Someone else advised me to put the OCX into the windows/system32 folder and execute: regsvr32 "dllName" --> enter.

Im going to try this ASAP. But, does this means I have to manually copy the file to its correct location in all computers I choose to install my application? Wasnt supposed for VS 2008 to detect and take care of all dependencies
automatically?

Thanks for your support m8.
 
Back
Top