Unable to Run my Application anywhere!

EFileTahi-A

Contributor
Joined
Aug 8, 2004
Messages
623
Location
Portugal / Barreiro
Ok, I just wanted to try my VS 2008 application in another computer and guess what? I can't even install it, it gives me an error, you know the "Illegal Operation Error". Which gives me the following options, Send Report or Don't send it...

When I clicked on details I saw it has something to do with
'System.Security.Security' and that's it. How the heck will I solve this? I'm 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 can't 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. I've 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:
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, shouldn't 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:
In Visual Studio 2008, you need Add a project to your solution. It's 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,

I'm trying to add the a Setup & Deploy project to my current project, but I can't 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.

I'm 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? Wasn't supposed for VS 2008 to detect and take care of all dependencies
automatically?

Thanks for your support m8.
 
Back
Top