EFileTahi-A Posted December 3, 2008 Posted December 3, 2008 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. Quote
EFileTahi-A Posted December 3, 2008 Author Posted December 3, 2008 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... Quote
Nate Bross Posted December 3, 2008 Posted December 3, 2008 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? Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
EFileTahi-A Posted December 4, 2008 Author Posted December 4, 2008 (edited) 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? Edited December 4, 2008 by EFileTahi-A Quote
EFileTahi-A Posted December 4, 2008 Author Posted December 4, 2008 (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... Edited December 4, 2008 by EFileTahi-A Quote
Nate Bross Posted December 4, 2008 Posted December 4, 2008 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. Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
EFileTahi-A Posted December 5, 2008 Author Posted December 5, 2008 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. Quote
Nate Bross Posted December 5, 2008 Posted December 5, 2008 None of the Express editions have the Setup and Deployment Project type. It is only available in Standard and above. Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
WaddellG Posted February 24, 2010 Posted February 24, 2010 Hi, I hope you have this solved by now but just in case anyone else out there is wondering how to deploy from an Express edition you need to do it with the ClickOnce deployment instead of creating a deployment project: http://msdn.microsoft.com/en-us/library/t71a733d(VS.80).aspx You can also use ClickOnce from any of the other editions of VS ( I think from VS 2005 on but could be wrong..) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.