ClickOnce publishing incomplete and then removes everything - winforms

I am using Visual Studio Express 2013 and trying to deploy Windows forms software to a web server, running Windows Server 2012. It is failing consistently as follows:
It successfully uploads 16 supporting DLL, ranging in size from 74KB
to 5,679KB
It successfully uploads a DLL that is part of the solution being
deployed
It adds the .application and .exe.config.deploy files both at 0KB
It successfully uploads .exe.deploy and .exe.manifest
It successfully uploads another DLL that is part of the solution
being deployed
It appears to (see later error message) successfully upload a
.ico.deploy file
Then all files except two (.application and
name>.exe.config.deploy) are removed and the
name>.exe.config.deploy file is shown as 1KB, rather than 0KB as
before.
A refresh of the folder then shows the .application as
11KB, rather than 0KB as before.
Then these files disappear as well, leaving an empty folder.
According to Visual Studio three files failed:
.application
.exe.config.deploy
.ico.deploy
The same error is given for each failed file:
Failed to copy file to . Unable to add to the Web site. Can't connect to on port 21. Check the server name and proxy settings. If the settings are correct, the server may be temporarily unavailable.
This seems very odd given that it has successfully connected to the FTP server to upload all the preceding files.
I have tried massively extending timeouts on the FTP site but it made no difference.
Any ideas?
Thanks
Gee

Related

SSIS Foreach File Enumerator finds no files when executed from deployed package

I've seen this question asked several times but never with a satisfacory answer. I have read through all the posts I can related to this and tried as much as I possibly can.
I have an SSIS package that loops thru a network folder of Excel files, I won't explain what it does inseide the loop container as that is not relevant.
I refernce the folder via a UNC \servername\folder
The package works fine from within Visual Studio.
I deployed the package to the Integration Services Catalogs on the
server
After I deploy, I connect to the server from my local pc via SSMS and then I execute it from SSMS via "Integration Services Catalogs"... Execute - This fails.
However If I remote desktop onto the SQL Server box, then start SSMS, connect to the SQL Server using my own credentials and execute the package using exactly the same method as above it works fine.
When I look in the logs of the failed attempts I see a warning that "The For Each File enumerator is empty". I'm not sure if this is telling the full story as, if I rename the network folder, I get the same message, (I expected to see an error that the folder was not found) - this may or may not be relevant.
I've sketched up a quick overview of what works and what doesn't
NOTE The "script execution" method is just a t-sql script for running these packages. This is the method I will use eventually but at the moment I'm focusing on the simple right-click execute method as this essentially does the same thing.
Since I did this I have tried a few more things...
I've tried accessing the folder as a UNC, a mapped drive and also UNC using IP address instead of server name.
I recreated the issue on our development server so I could change
service accounts etc.
I tried the default accounts on both SSIS and SQL Agent services.
I tried changing these to domain accounts and network service accounts.
I get the package to log the folder name which is and expression - this always looks correct. I do the same with the user name which always shows me as the exection user.
I can change most things as I can test on the development server with the excpetion of testing with a domain admin account so any suggestions would be greatly appreciated.

SSIS deployed package fails to map drive tag to network shared folder

Modifying this post as a friend has helped me figure it out.
The culprit was that SQL was not able to map drive tag to network shared folder, so the deployed SSIS package was not able to write. The execution report showed all green and success, so I was confused as a beginner. See also the comments below.
Backup original post below:
SSIS package text file write works in visual studio not when deployed on sql server
I have narrowed down the issue to the text file writing action in script task (C#), the experiment simply writes the current time stamp into a text file.
It works in Visual Studio 2015, both with (F5) and without (Cntl+F5) Debugger. The project is in package deployment mode. When deployed to a database server of SQL Server 2016 and manually trigger execute with Administrator login, the writing action never happens although execution report shows all success, and Windows system log shows no clue to me either.
I am a beginner on SSIS and hints and tips will be highly appreciated.
Yes, SSIS doesn't like mapping shared folder to a letter drive. Thanks #Nick.McDermaid .
Never use mapped drives. Use UNC instead i.e. \server\share\folder –
Nick.McDermaid Nov 8 '18 at 23:40

Sharing sqljdbc_auth.dll among multiple war files in Tomcat server running at the same time

Following is my use-case:
I have started using Camunda Platform and am accessing the Camunda process engine using a Custom Application written in java. So basically there are 2 applications or war files in Tomcat server. Initially I was using the inbuilt h2 database for the Camunda application and SQL server database for my Custom Application and was using integrated authentication mechanism which worked perfectly fine. Now I have replicated the h2 database to SQL server database and am again using integrated authentication for the process engine to connect to SQL Server.
Problem:
After deploying the 2 wars, when I restart the Tomcat server, the sqljdbc_auth.dll present in the tomcat bin folder gets loaded successfully by the Camunda application and process engine successfully accepts requests, accesses the database and gives correct responses on the Camunda Web applications(Cockpit,Tasklist,Admin) but when I try to login on my Custom application then I get the following error:
"
null.null Failed to load the sqljdbc_auth.dll cause : Native Library C:\Users\Aakanksha\Desktop\BACKUP\$CAMUNDA_HOME\server\apache-tomcat-8.0.24\bin\sqljdbc_auth.dll already loaded in another classloader
"
I do understand why this is happening and have followed the following solutions already:
Sol.1 -
Added the sqljdbc4.jar file to $TOMCAT_HOME/lib folder
Added the sqljdbc_auth.dll file to $TOMCAT_HOME/bin folder
Sol.2 - Added sqljdbc4.jar and sqljdbc_auth.dll file to separate war files i.e.
WEBINF/lib folders.
Sol.3 -
Removed the dll file from $TOMCAT_HOME/bin folder and added the same to Windows/System32
Added this path to the PATH Environment variable
Sol.4 -
Added the dll file to Java/JDK/bin folder.
Sol.1, Sol.3 and Sol.4 - The dll files was loaded and used successfully by one war but not the other with the same error.
Sol.2 - lead to error "
com.microsoft.sqlserver.jdbc.AuthenticationJNI. Failed to load the sqljdbc_auth.dll cause : no sqljdbc_auth in java.library.path
"
Both of my applications are running at the same time and have different SQL Server databases to make connections to. Is it even possible for 2 wars running at the same instant to use a shared dll for making connection to different databases?
Kindly share your suggestions and ideas.
I was having the same issue. We changed our war files to use jndi lookups from tomcat configuration. That works great we now can deploy multiple war files.
For more information see
http://www.baeldung.com/spring-persistence-jpa-jndi-datasource
Johan

Search in all project files on remote host in PhpStorm

I have lots of files in a project on a remote host and I want to find out from which file another php file is called. Is it possible to use Ctrl+Shift+f search on a remote host project?
Is it possible to use Ctrl+Shift+F search on a remote host project?
Currently it's not possible. (2022-06-09: now possible with remote development using JetBrains Gateway, see at the end)
In order to execute search in a file content in a locally run IDE such file must be read first. For that the IDE must download it... which can be quite time & connection consuming task for (S)FTP connections (depends on how far the server is; how fast your connection; bandwidth limits etc.)
Even if the IDE could do it transparently for search like it does with Remote Edit functionality (where it downloads a remote file but instead of placing it in the actual project it stores it in a temp location) it still needs to download it.
If you execute one search (one term) and then need to do another search (slightly modified term or completely different search string) the IDE would need to re-download those files again (waste of time and connection).
Therefore it makes much more sense to download your project (all or desired files only) locally and then execute such search(es) on local files.
If it has to be purely remote search (when nothing gets downloaded locally)... then you just establish SSH/RDP/etc connection to that remote host (BTW: PhpStorm has built-in SSH Console functionality) and execute such search directly on the remote server with OS native tools (find/grep and alike) or some remote software (e.g. mc or notepad++).
P.S. (on related note)
Some of the disadvantages when doing Remote Edit: https://stackoverflow.com/a/36850634/783119
EDIT 2022-06-09:
BTW, JetBrains now has JetBrains Gateway for remote development where you run the IDE core on a remote server and connect to it via SSH using a local dedicated app or a plugin to your IDE (PhpStorm comes bundled with such a plugin since 2021.3 version).
To check more on JetBrains Gateway:
https://www.jetbrains.com/remote-development/gateway/
https://blog.jetbrains.com/blog/2021/11/29/introducing-remote-development-for-jetbrains-ides/

Filezilla/Wildfly server deployment error (Possible database dependencies)

This is my first time on here. I am having an issue deploying a java application I made on myEclipse. I am using Filezilla to host my Wildfly 9.0.2 test server. I exported my project to a .war file and upon dragging it into the test server I am met with a deployment.failed. Upon viewing the file in Notepad it declares "Services with missing/unavailable dependencies". one such error can be seen below:
[ "jboss.naming.context.java.module.myproject.myproject.env.common.jdbc.database_connection is missing [jboss.naming.context.java.database.connection] "
There are five of these similar errors and all point to a diffferent database connection of some type that I am not using within my project. I understand the issue but I do not know where these dependencies are declared and how I can go about removing them.
Any help will be greatly appreciated.
Kind Regards,
Paul
Creating the WAR file will use the project's deployment assembly (assuming you're using MyEclipse 2013 or later). Right click on the project and select Properties. Then go to the MyEclipse/Deployment Assembly page. This will have all of the files that are added to the deployment (or to the WAR file).
However, the message seems to suggest that a project is using a database connection which can't be found when running on the server. A first thought was that you're using the inbuilt Derby database but don't have that running when you run on Wildfly.But you say that you're not using a database. Also, I'm not familiar with how Filezilla can host a J2EE server - I thought Filezilla was an FTP client and server solution. Perhaps you could give more details, if this answer doesn't help.

Resources