Quantcast
Channel: VBForums - Application Deployment
Viewing all 268 articles
Browse latest View live

[RESOLVED] How to access a file after click once deploys it

$
0
0
Hi. I have a click-once WinForms application that I've been deploying for years. Recently I enhanced my code to get a custom color out of a bmp file. That is, I have several labels on a form that I want to set to the same shade of blue as our company logo. To do that I've coded the following:

Code:

            Image imageNorcomBlue = Image.FromFile(@"..\..\..\Images\NorcomBlue.bmp");
            Color NorcomBlue = ((Bitmap)imageNorcomBlue).GetPixel(1, 1);
            lbStatusBanner.BackColor = NorcomBlue;

When I deployed and ran the app, I got an IO exception because the file wasn't found.

I am not sure how to get it out there for everyone.

I've found advice such as the following: You can add a file to the deployment by adding the file to your project in VS. Once you do that, you can click on the file in the solution explorer and then change the build action to content. So the file is in my solution already. I have a folder called Images and NorcomBlue.bmp is inside the folder. But when I click the file and look at its properties, there is no Build Action. Only name, date created, dated modified, file path (which is local to my computer), file size and read-only = false (I perhaps want to change that to true). Anyway, since I am not using this strictly as an image but as a file to get some info from, it doesn't really follow the normal procedures of deploying images. Any idea how I can deploy and access it? Thank you.

Personal iOS Deployment

$
0
0
I've developed a personal mobile application using Angular/Ionic/Cordova and using npx I've generated the necessary iOS and Android files.

What I do not understand is how do deploy an iOS app directly to my phone? I do not want the application on the App Store as I do not want anyone else to use the application.

I've never used the xcode IDE before and I cannot seem to find any instructions on personal deployments. Can y'all point me to a resource or explain the process for me?

[RESOLVED] Personal iOS Deployment

$
0
0
I've developed a personal mobile application using Angular/Ionic/Cordova and using npx I've generated the necessary iOS and Android files.

What I do not understand is how do deploy an iOS app directly to my phone? I do not want the application on the App Store as I do not want anyone else to use the application.

I've never used the xcode IDE before and I cannot seem to find any instructions on personal deployments. Can y'all point me to a resource or explain the process for me?

SSL Issue

$
0
0
I'm not great at deploying web applications. I will certainly admit that.

I have two domains that I purchased from GoDaddy but I'm hosting from BlueHost. So it doesn't look like I'm grifting, I'm going to obfuscate the website names to websiteA.com and websiteB.com.

websiteA.com existed first and has had no problems. websiteB.com was setup today, but it will not work when navigating to https://websiteB.com, it will only work when I navigate to http://websiteB.com. By "not work" I mean that it returns a 404 not found error.

I to the Manage Installed SSL Websites section and I can see where domain is listed under the FQDN and the certificate is not set to expire until next year. What else could be causing this issue that I'm overlooking?

VS 2017 Click once error during install

$
0
0
I am new to click once deployment. This is my first click once since VS2010. This is a signed multiuser application. The first error happens when I click on the install button on the publish.htm I get a message that "Setup.exe could harm your device. Do you want to keep it anyway." Then it gives another warning "Setup.exe" isn't usually downloaded. Make sure you trust setup.exe before you open it". After I jump through some hoops it will start the install. Then I get a popup window seen below.
What am i doing wrong I just want users to click on a link and install the application. It would be nice if I could designate the folder where the application is installed. This looks like it will install a shortcut to run the application form the server which is okay because this application uses a database so they have to be online to run it. But if they aren't able to access the database they cant run the application I have checks on the start form. Anyway lots of questions. I am sure it me and install options.


Name:  Untitled.png
Views: 38
Size:  6.2 KB

The details reveal a problem because only the Setup file was downloaded.
PLATFORM VERSION INFO
Windows : 10.0.19043.0 (Win32NT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.8.4270.0 built by: NET48REL1LAST_C
clr.dll : 4.8.4420.0 built by: NET48REL1LAST_C
dfdll.dll : 4.8.4270.0 built by: NET48REL1LAST_C
dfshim.dll : 10.0.19041.1 (WinBuild.160101.0800)

SOURCES
Deployment url : file:///C:/Users/wburke/Downloads/LaserMaintLog_V3.application

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\wburke\Downloads\LaserMaintLog_V3.application resulted in exception. Following failure messages were detected:
+ Downloading file:///C:/Users/wburke/Downloads/LaserMaintLog_V3.application did not succeed.
+ Could not find file 'C:\Users\wburke\Downloads\LaserMaintLog_V3.application'.
+ Could not find file 'C:\Users\wburke\Downloads\LaserMaintLog_V3.application'.
+ Could not find file 'C:\Users\wburke\Downloads\LaserMaintLog_V3.application'.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [02/04/2022 9:23:08 AM] : Activation of C:\Users\wburke\Downloads\LaserMaintLog_V3.application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [02/04/2022 9:23:08 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file:///C:/Users/wburke/Downloads/LaserMaintLog_V3.application did not succeed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState, X509Certificate2 clientCertificate)
at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionSto re subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Net.WebException
- Could not find file 'C:\Users\wburke\Downloads\LaserMaintLog_V3.application'.
- Source: System
- Stack trace:
at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
--- Inner Exception ---
System.Net.WebException
- Could not find file 'C:\Users\wburke\Downloads\LaserMaintLog_V3.application'.
- Source: System
- Stack trace:
at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
at System.Net.FileWebRequest.GetResponseCallback(Object state)
--- Inner Exception ---
System.IO.FileNotFoundException
- Could not find file 'C:\Users\wburke\Downloads\LaserMaintLog_V3.application'.
- Source: mscorlib
- Stack trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
Attached Images
 

Hosting Subdomain Return 403 Forbidden

$
0
0
I purchased my domain from GoDaddy but purchased the hosting through Blue Host.

Right now my primary domain is working just fine. However, I want to setup a staging environment for the client to test changes I have made without rolling them out into production for them to test.

I have done the following:
  1. Create a new staging database
  2. Imported my production schema/data into the staging database
  3. Created a staging folder in my root/public_html directory
  4. Copied my production files to the root/public_html/staging directory
  5. Added a subdomain in Blue Host named "staging":
    1. It resolves to staging.[primary domain name].net -and-
    2. The document root is the newly created root/public_html/staging directory


When I navigate to the staging.[primary domain name].net URL, it is returning a 403 Forbidden response.

I would have expected it to work just fine considering that the only differences from my primary domain is that I'm using this staging prefix.

[RESOLVED] Hosting Subdomain Return 403 Forbidden

$
0
0
I purchased my domain from GoDaddy but purchased the hosting through Blue Host.

Right now my primary domain is working just fine. However, I want to setup a staging environment for the client to test changes I have made without rolling them out into production for them to test.

I have done the following:
  1. Create a new staging database
  2. Imported my production schema/data into the staging database
  3. Created a staging folder in my root/public_html directory
  4. Copied my production files to the root/public_html/staging directory
  5. Added a subdomain in Blue Host named "staging":
    1. It resolves to staging.[primary domain name].net -and-
    2. The document root is the newly created root/public_html/staging directory


When I navigate to the staging.[primary domain name].net URL, it is returning a 403 Forbidden response.

I would have expected it to work just fine considering that the only differences from my primary domain is that I'm using this staging prefix.

Sigh. Error on installing project.

$
0
0
Clicking on the HTMl page created on building the install, it down loads "Setup.exe".
clicking thought the messages (security) I click on "Install Anyway" and an error is displayed.
<error>
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\macfarj\Downloads\*_Plus.application resulted in exception. Following failure messages were detected:
+ Downloading file:///C:/Users/macfarj/Downloads/*_Plus.application did not succeed.
+ Could not find file 'C:\Users\macfarj\Downloads\*_Plus.application'.
</error>

The install is looking for the "*_Plus.application" (Name obscured). Checking the download folder shows only the "Setup.exe" and no application to run.

Checking the HTML of the Install Webpage, the button is trying to get to the files here: <javascript>directLink = "*_Plus.application";</javascript> NOT from the location where the files are.
Under Publish, I have both the Publishing Folder Location and the Installation folder completed as such: "\\IPADDRESS\installations\NewInstallations\*_Plus\1.0.0.0"

Question. How do I set up the Publish feature to draw these files from the server NOT the load download folder?

I'm setting some thing wrong.... Thanks guys.

(BTW, this is the hardest install I have built since I started coding in Basic. Yeah, I'm THAT old)

Click Once Fishing For Suggestions

$
0
0
I've used Click Once to deploy a pair of applications for well over a decade without issue. Sometime last summer, date not particularly certain, something changed. One of the applications will not install on a new computer, and I haven't dared try the other one.

At first, I thought this might have been a signing issue, and was able to set it aside for a while as that was getting sorted out...or more specifically, my request to sort it out was being ignored, which worked well for a couple months until it didn't work well anymore. I don't really care about the signing on this, so I've been using the temporary certificate for signing the file for all this time. Occasionally, those have gone stale and needed to be replaced, so I thought I'd get a real certificate. Turns out, those are too expensive for something as trivial as this, so I tried a new temporary certificate and this failed as well.

The cause for the failure is a bit mysterious, and somewhat suggestive. I have not done any real study of this since last fall, and I didn't find much then, but the details of the failure mention an invalid username and password. There is no such set of credentials for this program, so that was a bit odd. However, I think I DO know what it's asking for.

I can install the program just fine so long as I am logged into the web server on the computer that I am installing the program onto. The program fails to install with a pretty useless error message on any computer that is NOT signed into the web server. The details talk about those missing credentials, and don't say anything else that looks useful to me, so I believe the credentials it is asking for is the credentials to sign in to the web server, something that should never be required for installing something.

I'll be studying this more over the next couple days, but I thought I'd toss that out there in case anybody knew why my ClickOnce deployment, which had been working fine for years, suddenly wants people to log into the web server to install?

I realize that this is a deficient question, but there's not all that much to go on. That message about the bad credentials is the only error being reported, and the fact that it works fine on computers logged into the web server, are basically the only pieces of data I have to go on, at this point. If anybody has any suggestions, I'd be interested in hearing them.

[RESOLVED] Smartscreen

$
0
0
Hello. A question regarding "smartscreen". I have just redone the install of my software and come up against a behavior of smatscreen which seems insoluble to me. I created a correct digital key with OpenSSL, the software works very well, without worries. If I download the archive from the internet, smartscreen displays a blue screen "unidentified author", once installed no worries. If I install the archive from a USB key, no blue screen concerning "unidentified author". I understood that it was necessary to pay a certification body for ????? which is surprising insofar as old software without signatures installs without problems.

Archive du logiciel

Is there a solution?

Can I Setup to Access RunTime with InstallShield at same time.

$
0
0
Hi. I just want to ask, when I am seting up the program which target computer dont have Microsoft Access. Can I (add) setup the Access Runtime same time with installshield setup ? or must I setup up Runtime in the after Program Setup Compilated ?

if it's possible to add runtime into setup. how can I do it ?

advanced thanks.

[RESOLVED] Click Once Fishing For Suggestions

$
0
0
I've used Click Once to deploy a pair of applications for well over a decade without issue. Sometime last summer, date not particularly certain, something changed. One of the applications will not install on a new computer, and I haven't dared try the other one.

At first, I thought this might have been a signing issue, and was able to set it aside for a while as that was getting sorted out...or more specifically, my request to sort it out was being ignored, which worked well for a couple months until it didn't work well anymore. I don't really care about the signing on this, so I've been using the temporary certificate for signing the file for all this time. Occasionally, those have gone stale and needed to be replaced, so I thought I'd get a real certificate. Turns out, those are too expensive for something as trivial as this, so I tried a new temporary certificate and this failed as well.

The cause for the failure is a bit mysterious, and somewhat suggestive. I have not done any real study of this since last fall, and I didn't find much then, but the details of the failure mention an invalid username and password. There is no such set of credentials for this program, so that was a bit odd. However, I think I DO know what it's asking for.

I can install the program just fine so long as I am logged into the web server on the computer that I am installing the program onto. The program fails to install with a pretty useless error message on any computer that is NOT signed into the web server. The details talk about those missing credentials, and don't say anything else that looks useful to me, so I believe the credentials it is asking for is the credentials to sign in to the web server, something that should never be required for installing something.

I'll be studying this more over the next couple days, but I thought I'd toss that out there in case anybody knew why my ClickOnce deployment, which had been working fine for years, suddenly wants people to log into the web server to install?

I realize that this is a deficient question, but there's not all that much to go on. That message about the bad credentials is the only error being reported, and the fact that it works fine on computers logged into the web server, are basically the only pieces of data I have to go on, at this point. If anybody has any suggestions, I'd be interested in hearing them.

Minimize an application with no keyboard.

$
0
0
I'm on a situation that a 3rd party APP is covering all the screen as those are embeded windows no keyboard machines, like the ones used to, let's say order something in a coffee shop at the cashier.
The machines using it have no keyboard. What I need to do is minimize the app but without a keyboard I can only hope to capture a "click" on the screen.
I was thinking to get a double click with API but the issue is that if someone orders more of the same product and the cashier adds them in, will double click for adding products an thus the app will minimize with no reason.

Any thoughts?

ClickOnce Root Element Missing

$
0
0
This is somewhat related to this thread:

https://www.vbforums.com/showthread....or-Suggestions

but only in that this problem is what started the whole thing. I'm inclined to say that this is not strictly a ClickOnce problem, and might be hardware, but I'm just not sure.

In that other thread, I was having issues installing an application using ClickOnce. As far as I can tell, that program is installing correctly on every computer aside from one. It was the inability to install the application on that one computer that got me looking at the application installation, but I was able to get it installing elsewhere. It STILL isn't installing on this one computer, though.

Installation goes through the initial steps, then fails with a message about an unhandled exception during startup: An error occurred creating the form. The error is: Root element is missing.

Now, the first part of that is probably meaningless, because any number of unhandled exceptions could occur during startup, so it is probably just that "Root element is missing." part that matters. A search on that results in a variety of answers, none of which seem applicable.

XML requires a root element of some sort. If it is missing, it is missing. I don't know exactly which XML file is the problem, in this case. The application manifest (.application file) is XML, but if that were bad, I think the error should happen VERY quickly, and what actually happens is that an animated graphic pops up at the start of the installation (not something I created, but something related to either Windows or ClickOnce), and only after that does the error appear. That suggests to me that the .application file isn't, itself, the issue.

Furthermore, I have installed the application successfully on some other computers, by now, so it does appear to work. The people who had this computer told me that they didn't trust it already, because it appeared to behave oddly at times. I'm not sure what that means, but it's suggestive.

I am inclined to believe that the XML is not missing a root element. If the files were simply bad, then the application would fail on ALL computers, but it only fails on the one. One thing I found suggested that there could be something wrong with the Byte Order Mark, possibly due to encoding. The encoding looks okay, and likely is. Could some errant setting on the computer in question mess up interpretation of the Byte Order Mark?

Any other suggestions of what to look at, how to further investigate, or anything else related?

Unverified Publisher

$
0
0
Hello everyone,

I wrote an application with VB.net and made an MSI file from the application executable file. However, Windows blocks the MSI installer with a message that says Unverified Publisher. I know this question isn't really VB code related but I'm sure you guys have made software for distribution and came across the same issue. How do you become a Verified Publisher? Is this an expensive process? Even a link would be very helpful. For some reason, I can't find it online.

Also, do I need a certificate for both my application executable file and the MSI? Thanks guys.

Downloadable file: https://themislabeledspecimen.com/me.../activity/176/

Name:  Capture.JPG
Views: 48
Size:  30.5 KB
Attached Images
 

Need help creating an installer

$
0
0
Hello,

I have just finished my migration from WEBBROWSER to WEBVIEW2 but I encounter a problem when creating my installer with INNOSETUP.

Indeed, the file that I have been using for several years no longer seems to do the job. The exe is created well and the installation is done well but when I try to open my software, it appears well in the processes but it does not appear.

Here is my code:

Code:


[Setup]
AppName=NomAppli
AppVersion=7.00.1
DefaultDirName={pf}\NomAppli
DefaultGroupName=NomAppli
OutputBaseFilename=NomAppli_Setup
 
[Files]
Source: "C:\Users\PC\Desktop\Nom\bin\Release\NomAppli.exe"; DestDir: "{app}"; Languages: French
Source: "C:\Users\PC\Desktop\Nom\bin\Release\NomAppli.exe.config"; DestDir: "{app}"
Source: "C:\Users\PC\Desktop\Nom\bin\Release\dotNetFx40_Full_setup.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
 
 
[Icons]
Name: "{userdesktop}\NomAppli"; Filename: "{app}\NomAppli.exe"; WorkingDir: "{app}"
Name: "{group}\NomAppli"; Filename: "{app}\NomAppli.exe"; WorkingDir: "{app}"
Name: "{group}\Désintaller NomAppli"; Filename: "{uninstallexe}"; WorkingDir: "{app}"
 
[Run]
Filename: "{tmp}\dotNetFx40_Full_setup.exe"; WorkingDir: "{tmp}"; Flags: waituntilterminated
 
[Languages]
Name: "French"; MessagesFile: "compiler:Languages\French.isl"

I think I am missing a file. I then compared the BIN/RELEASE folders of my application before and after switching to WEBVIEW2 and I note the presence of 6 files and 2 more folders.

FILES: 3.dll and 3.xml of type 'webview2'
FOLDERS: NomAppli.exe.webview2 and runtimes

Having no idea what to do so I turn to the connoisseurs that you are to get me out of it !

Thank you !

Deployment and Revision

$
0
0
I want to revise/update an already deployed/published database/VB application. I was barely able to get the original deployed. The only method I was able to make work (even marginally understand) was the publish wizard project. All of the content I have been reviewing for this is very confusing and I have found nothing, that I can understand, on how to up revision or redeploy an existing application. However, I was eventually able to successfully deploy the program... kind of.

I would appreciate any offerings on how to properly publish/deploy an original database application (windows) and then how to revise/update the application without altering the database or the records in the database.

General question about .net and dependencies

$
0
0
So I'm fairly new to .net (several years of MS Access VBA before that), and have managed to program a couple of Windows Forms that log into SQL Server databases and do various things. I felt they were a good start to my programming in vb.net. They're not amazingly complex, but they do what they're designed to.

I have a coder in my department (duties are not well defined; I have many tech support duties that he does not, but he's got quite a bit more programming experience than me). Today, as I started to program a 3rd vb.net app, that said "you know, your .exe files shouldn't be requiring these other files; the things you're doing should be able to be done without producing extra required files. that's a bug, and you'll need to eventually figure out the problem." In creating the apps, I followed several tutorials on the net, so I know (or suspect) that vb.net's "Windows Forms Project" option just automatically creates the files it needs when creating an EXE. To me that seems industry standard. But he's talking like a good vb.net program shouldn't have any dependency files, and should just be an executable.

Can someone with more experience in coding in vb.net give me some guidance as to whether either perspective has merit when it comes to how I should be designing applications?

EDIT: The files I'm referring to are .pdb, .xml, .dll and .config.

Crate database and tables (DBscript) in the runtime using VB.NET

$
0
0
I have made a setup file for my project (using a visual studio installer) , when i send the project file to the client's laptop I got the following error:
Code:

Could not load file or assembly
'Microsoft.SqlServer.BatchParserClient, Version=13.0.0.0,
Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Attached Images
 

VB 6.0 deployment issue, 80040154 error

$
0
0
Hi,

I have a program written in VB6.0, compile good and run good in the IDE, it can also create an EXE file.
However, when I use the Added-Ins feature : Package and Deployment, select vbp file, click on Package, it always has the follow error and fail to continuous.

Unexpected error number 80040154 has occurred: Class not registered

So I cannot do a project deployment.

Any idea how I can fix it?

I am using Windows 10 Pro.

thank you very much!


Martin
Viewing all 268 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>