I have a solution which works perfectly while debugging in Visual Studio, but will not run on the same machine if I deploy in release mode. I'm assuming it is because my WCF Library Service is not getting deployed and starting with it. It seems that it only runs in debug mode.
The solution is a UWP Application (version 1607), so not Fall Creator's update. I'm using WCF Library Service to pull data from a SQL Server into a net standard 1.3 pcl. In Visual Studio it works, but not when I click on the deployed UWP app.
Is there something I'm missing? I did see a comment about adding the WCF App.Config code to my launching app's APP.Config file, but a UWP app doesn't have one.
Any help would be greatly appreciated.
Thank you
Related
I developed a WPF application. After publishing it, I deployed it to the 4 client computers. It was working fine. However, two clients complained that it is not working on their computers. Their computers (Windows 7 and Windows 10) have the latest .NET framework installed. It was installed properly but failed to launch while displaying no error. Please note that there is a proper exception handling in the code. I was using Setup and Deployment Wizard of visual studio to publish it. Now I resorted to ClickOnce Publishing option, but that too showing the same result.
Now, I developed a simple Hello World WPF application without any third party references and tried to install it on the troublesome computers. This simple application also did install properly but failed to launch. I developed one simple Hello World Windows Forms application and that installed and executed properly.
Am I missing something here? Please help!
I developed an asp.net web application, I would like to generate an installer which could deploy this application in IIS automatically (or manually with published website code). I've tried to publish the code manually by myself and add them into setup project, but there always gives me an error message. I wonder if there is a way to generate an installer which could deploy my application on IIS.
Here are steps you can take.
1) Take a look at the following link which gives a plugin if you are using visual studio 2015,21017 or 2019. I think this plugin will work even with Community edition.
https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2017InstallerProjects
2) Once the plugin is installed the following link from microsoft can guide you how you can do the setup at high level.
https://learn.microsoft.com/en-us/biztalk/core/how-to-create-a-web-setup-for-your-published-web-service
Hope this helps.
Due to recent hardware failure, I've had to go back to an old laptop of mine. I newly installed VS2013 on Win8 and am finding a new behavior. Used to be, when I would debug one of my Winforms projects, the other included WCF application projects would automatically launch to the
http://localhost:42898
(etc) address. Now, with this new install of VS2013, I can't get the IIS Express versions to launch when I'm debugging my other projects.
Does anyone know of how to configure VS to automatically build and launch these ancillary web apps during debugging of winform apps?
You are looking for multiple startup projects. Right click on your solution and select Properties -> Startup Project -> Multiple Startup Projects:
Now when you hit F5 both your WCF service and WinForms applications will start in Debug mode.
I created a web service in C#, using Visual Studio 2010 ( Framework .NET 3.5). In debug mode it works great, but now I must publish it on the internet, so that I can consume it in remote (the app that will consume the web service is an android app).
So the question is: how do I publish my web service on Internet so that I can consume it in remote?
Thanks in advance; this is a work for taking my degree!
A simple way: you switch to release mode, update your web.config for production, right click on your service project and from the menu select publish. Then you publish it to the local folder. This way it copies only the files needed. Then you copy the contents of the folder to your remote site using ftp, for example, your hosting provider should have given you the credentials.
for some hosters it is also possible to publish directly but I don't use this.
The reason I ask is that I must be doing it incorrectly as I am having a lot of problems and I feel like I am chasing my tail here.
Using the how-to here, http://msdn.microsoft.com/en-us/library/zt39148a.aspx, and that works great.
So this windows service that I have built is a part of a solution that contains an ASP.NET MVC3 web UI, a class library business domain, and an installer for the windows service. Both the windows service and the MVC3 app reference the class library. I've marked only the Windows Service project as the "primary output" in the installer app.
Now, after a reboot, I can do build the installer and install the service and it runs great. However, after that first time, I have nothing but problems. In visual Studio, the uninstall option is grayed out, which is wrong, it should be active. I can uninstall in Windows but for some reason the process is still running. From there I cannot rebuild the installer project because the exe won't delete and is still running.
Where am I going wrong?