I have a ClickOnce Windows Forms application in Visual Studio 2017. I've added a windows service to this application and wrote the code for it. After I build and publish the solution there is no exe created for my service. Do i need the create a now project for this with Windows Service as type?
Related
I am running both visual studio 2013 and visual studio 2015. I can't say when it started but most recently I was trying to debug a wcf service application in Visual Studio 2013 and the wcf test client will not launch. Instead, it launches a webpage with the localhost url. I tried creating a clean, new wcf project with the template IService and Service.svc only to have the same thing happen. However, when I go over to my different WCF project in Visual Studio 2015, the WCF client tool launches just fine when I press F5.
I have had 2015 installed for a while, and am fairly positive I have run the WCF client tool from 2013 just fine. In any event, I am not sure why it isn't working in 2013 nor how to get it to work. suggestions?
Right-click on the *.svc file and click on "Set As Start Page" then press F5.
I have a Wix setup created for my windows form application and i have a server to publish it . Earlier projects were published using ClickOnce application. Can i do that with my Wix setup too where the setup created would be integrated with the clickonce application. The user will click on the url and it will download only the setup.exe and when clicked on it , it will install the application according to the setting done in wix. I dont even know if the question is correct.
You cannot do that.
"ClickOnce application is any Windows Presentation Foundation, Windows Forms, or console application published using ClickOnce technology. You can publish a ClickOnce application in three different ways: from a Web page, from a network file share, or from media such as a CD-ROM."
I have a service that is host in a console application. when I run this application inside visual studio, the service is open and I can access from the client or when I use the uri in an internet browser.
However, when I run the exe, the service is not open and I can't acccess to the service. I have tried to run as elevated privileges, but it does not work.
Why in visual estudio works and stand alone not?
I am using VS2015 community and WCF 4.5.
Thanks.
I have developed a WCF service using .NET 3.5, VS 2010 on Win 7 64. This will be hosted in a Windows Service.
I created a Windows Service project to which an Installer is added by rt-clicking. The WCF dll is also added.
For testing purpose I have installed this service by running the InstallUtill.exe passing in the service exe from the Windows Service project release folder. All works fine I can see the service in Services.msc and they can be accessed by clients.
The client does not want an MSI so I have to give him the release folder of the Windows Service project.
Here are my questions:
Is it required to add the .NET framework requirement, which gets added by default for MSI projeccts, to the Windows Service project. If yes then how do I go about doing it?
Can the client use the InstallUtil.exe from the framework or is there another way to install on machines that don't have VS?
Does the service need to be built for both 32 and 64 bit systems?
I know that InstallUtil.exe is part of the framework and any machine that has one is good to go but just out of curiosity is there any other way to install the Windows service without an MSI?
Regards.
I don't know about InstallUtil.exe, but I do know that in order to install a WCF service manually, you need to:
Give the client the requirements (.NET framework, WCF installed)
Create a folder in IIS for the service
Create a bin folder in that folder
Copy the .svc and the web.config in the first folder, and copy the .dll in the bin folder
In IIS, right-click on the folders and Convert to application (the two folders)
Be sure that the folders have the appropriate rights
I had to do this for test purposes on several machines at my job. But in the end, we did an MSI for the client.
Hope that helps you!
I have developed the WCF web service in vb.net in visual studio 2010 express edition. also deployed t locally as of now. since VS Express does not support Unit testing i cannot test web service. where as restricted using framework like NUnit. how should i test my web service and debug it ?
Use WCF Test Client(found at this location -
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\
).
Bind the wcf TEST client process for debugging. From VS go to debug -> Attach to process -> wcfTestClient.exe.
Then execute the method from test client and you would be able to debug the service code