I am having trouble in starting the windows service as an automatic service from an installer. The windows service is not a complete .net framework specific as its a .net core windows form. the challenge is it works from the Visual studio and manual creation of windows service but not from the installer which throws an error of "timely fashion".
Note : this executable is not created with a windows service template, Instead its a windows form based on .net core. and the helper assemblies of ServiceController.
Any help would be appreciated.
Related
Is there any registry key to determine whether a windows machine has the .NET Core Desktop Runtime installed programmatically (e.x through c#)?
I can see the registry is getting the following key when I install the .net core runtime
\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.NETCore.App<version>
This key is not specific to .NET Core Desktop Runtime what I want to know explicitly the .NET Core Desktop Runtime.
I am modifying an existing installation setup for a WPF application and there I need to check the availability of .NET Core Desktop Runtime and if not installed then have to go and install. The tool that I am usinig to create the installation setup has the facility to check a particular registry key and also can download and run any exe (may be the .net desktop runtime). Please help
try this paths to find versions:
'SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.**WindowsDesktop**.App';
'SOFTWARE\dotnet\Setup\InstalledVersions\x86\sharedfx\Microsoft.**WindowsDesktop**.App';
If you go to the control panel, you can see the available .Net Runtime download.
Actually I am developing a .NET tool for ADF custom .NET activity. The tool is running fine if the .NET framework is 4.5 or 4.5.2. But it is not running if I switch the framework version to 4.6. It is not even writing log in adfjobs folder. But it creates an empty stdout.txt file. Which means it's not supporting the v4.6? But actually I need the tool in v4.6 to support my further development. Should I have to do something with the batch account?
Storage Type: Azure Lake Storage Gen 2.
In ADF v2, custom activity runs in an Azure Batch pool. That pool has a server defined (ex: Windows Server 2016, 2019, etc). That server/vm level will determine what version of .NET is installed. You may need to create a new pool with a more up to date server version.
In my web application I have added WCF service which is hosted on IIS. It was all working fine until the time windows has installed the update on the my development machine, and now Visual Studio 2010 does not recognize the service reference which I have added previously.
It is giving the error as 'Type Service_Createuser is not defined'
Intellisence does not show the service reference either.
Below are the updates had installed on the machine :
KB2504637 Microsoft .Net Framework 4 Multi-Targeting Pack
Security Update for Microsoft.Net Framework 4.5.1 (KB2901126)
Security Update for Microsoft.Net Framework 4.5.1 (KB2898869)
I have removed the service reference and added again but still the same problem.
Webservice was created using .Net 3.5 and my web application is also set to .Net 3.5.
I have googled in but no luck!
Could someone please tell me what this updates has done. And how to resolve this problem.
Please let me know if you need more information. Any help will be appreciated.
Many Thanks
John
I decided to follow this tutorial on getting started with ASP.NET. I have Visual Web Developer 2010 Express (with SP1) installed, as well as the ASP.NET MVC3 tools.
I created the project and starting debugging it by going to Debug->Start Debugging - which then opened my browser to http://localhost:50531 and displayed:
According to the tutorial, that's not what I'm supposed to see.
Additional details:
OS: Windows Vista Home Premium 32-bit (with SP2)
I also have IIS 7.0 installed and running.
Did you use the presets or an empty project? If the latter, you don't have any controllers or views, thus the routing doesn't match anything, resulting in an error.
We've created a windows service to detect the insertion of a particular usb device.
That service is then supposed to launch an application we have written.
We initially made a setup project for our application and a separate one for the windows service.
Now, we are trying to get the service and the application installed in the same setup project.
We tried putting the output of our service into the setup project but without any luck.
We have the a projectinstaller class in the service, so why can't we simply add the project output of the Windows service (including the installer class) to our application's setup project?
There is MSDN article explains it, Create the installers for your service. Microsoft support also have an article, How to create a setup project for a Windows Service application in Visual C#
My primary language is Delphi. In Delphi, when a program is created as Service Application,
installing the program as a Windows Service can be done by running my_service_app_name.exe /INSTALL. I guess, the execution mechanism should be roughly same with service applications created by other compilers.
Thus, adding a windows service to an existing application installer can be done by just running the service application as mentioned, but you should refer to the documentation in case you are not using Delphi.