VS2017 How to create an Empty Web "Application" - c#

I cannot find a way to create an Empty Web application in VS2017(ASP.NET WebForm).
In VS2015 there was a template for this.
Seems like VS2017 can only create Empty Web Site.
This is what I have :
==============================================
Update for the whoever see this post in future: I Ended up rebooting my computer AND VS2017 did some updates. After that, The Empty Template appeared! Clearly a VS 2017 bug.

Go to File > New Project
This will prompt you to the following Dialog where you choose for a Web App.
Then you will get to the point where you can choose a template

Related

Hresult 0x80070003 - ASP.NET Web Aplication (.Net Framework) - Visual Studio 2022

This is my first post on stackoverflow because i don't see the solution anywhere.
The problem is, when i want to create a ASP.NET Web Aplication, this error appears. Please i need help, i'm sure this is a simple error but i can't make it works for start working in my proyect.
The proyect is created but that error makes dont work correctly.
The project creation parameters are as follows:
1)
https://i.stack.imgur.com/KwalH.png
2)
https://i.stack.imgur.com/yPHJx.png
And here the error:
https://i.stack.imgur.com/mi0gN.png
Thanks Lex Li for the reply.
From the project creation parameters you provided, the project location is in the OneDrive folder.
It is recommended that you create or use a normal folder to store the project and test again.
If the problem persists, please contact me again.
I would do a repair of the vs2022 install.
I am able to choose your options - works without issues.
So, go tools->get options and
close the first panel, and then choose this:

Microsoft Visual Studio not showing intellisense when typing in app.config for creating ServiceHost

I am new to WCF( Windows Communication Foundation) services. When I am typing in app.config to do the configurations while creating a host console application, such as defining endpoints, Microsoft Visual Studio 2012 does not show any intelli-sense.
The issue may result in typing wrong tags and the application not to build successfully.
Seems like I have to install something first. Can anyone shed some light on this issue?
You probably don't have the service model XML schema loaded. To load them open your app.config file in Visual Studio, an additional menu named XML should appear, click it and open Schemas..., and check you have all the basic schema loaded.
Additionally, most of the schema files are found in your VS installation directory\VS version\xml\Schemas\ folder.
Yes, u are right f.nasim.
I think its because I did not load namespace ,System.ServiceModel , in my project.
While implementing the next tutorial, I did not get this issue.

C# WP8 Service Reference changed

I'm working on Visual Studio Express 2012 for Windows Phone and I added a service reference for my project. It has been working good since I added it.
Yesterday I started building the layout for my app and then I noticed that my service reference is not the same like it was before. It still works but it's icon is different now and it doesn't give me the same right click options like before.
Image 1: http://snag.gy/kvGJV.jpg
Image 2: http://snag.gy/RjTys.jpg
Notice how the icon changed, it's now a folder icon, it used to be a little globe or something like that. And in the right click options it doesn't say "Update service reference" or "Configure service reference"...
What happened? And how can I update my service reference now? (The IP changes a lot)
Edit: I discovered that if I start a new project and then use Blend my service reference changes to a folder. My questions stills the same, why?
I found the cause of this problem. It seems there is a bug when using Blend and Visual Studio at the same time. When you make changes in your project with Blend, Visual Studio asks if you want to reload only the files with modifications or if you want to reload all files. Somehow, if you choose to reload all files it makes modifications to your service reference resulting in errors and other changes.

Steps to extract values from "USER INTERFACE" custom window textbox into my code, WHILE CREATING A SET UP PROJECT?

HI, I have created a setUp project for my windows application.
My Solution has 2 Projects(1st is the Windows application and 2nd project is the setUp project that I added)I want to add custom welcome screens during installtion, so I did the following actions.
1) Created a setUp project and added it to solution having a windows application.
2) Added the primary output of the only windows application (within the solution) to the setUp project.
3) Right click on SetUp project -> VIEW -> USER INTERFACES; then added a textboxA.
4) Right click on SetUp project -> CUSTOM ACTIONS; This has 4 options Install, UnInstall,Commit,RollBack.
5) Added a new class to the Windows Application project, inherited "Installer" class to this new class. Overridded "Install" method of this class.
6)Right Click on INSTALL option -> ADD CUSTOM ACTION; and the primary output of the windows application was already added, so I didnt add anything.
HERE THE WINDOWS APPLICATION PROJECT HAS BOTH APPLICATION CODE AND ALSO THE OVERRIDDED Install METHOD.
bUT WHEN i TRY TO INSTALL THIS ITS SHOWING SOME ERROR CODE 2869.
Kindly help me with the procedure to extract values from custom textBox into my overridden Install method.
Frankly speaking I have no idea if it is possible to add anything custom to VS setup project.
I had a similar issue and soon lost my patience and migrated to WiX. It integrates with VS very well (you can add WiX XML schema to have your code coloured and Intelisense enabled). With Wix you can do far more custom things than in VS Setup.
Moreover WiX has a great community, loads of examples and last but not least, you can adjust user interface as the VS Setup projects look REALLY ugly.

Windows Service not appearing in services list after install

I've created a windows service in C#, using Visual Studio 2008
I pretty much followed this:
http://www.codeproject.com/KB/dotnet/simplewindowsservice.aspx
I created a setup project, as instructed to in the article, and ran it...
it installs my service to C:\Program Files\Product etc.... however, it does not then appear in the services list..
What am I missing?
The most important part of the article you linked, is here
To add a custom action to the setup project
1.In Solution Explorer, right-click the setup project, point to View, then
choose Custom Actions. The Custom
Actions editor appears.
2.In the Custom Actions editor, right-click the Custom Actions node
and choose Add Custom Action. The
Select Item in Project dialog box
appears.
3.Double-click the application folder in the list box to open it, select
primary output from MyNewService
(Active), and click OK. The primary
output is added to all four nodes of
the custom actions � Install, Commit,
Rollback, and Uninstall.
4.Build the setup project.
If you skip these steps, your setup project will build and copy your files to the correct directory; however, they will not register your binary as a service without these steps.
I should also note that this works for older versions of Visual Studio that had/have the built-in Setup/Deployment project template. The newer versions of Visual Studio have different setup/deployment projects (some requiring third party software.)
I'd recommend looking into WiX Toolset and check here for WiX Installation of Windows Services.
I got owned in the face by this one, so I'm putting it here just in case anyone else runs into it.
If you followed the instructions in the guides but are still having issues installing, ensure your Installer class is public. Internal won't work.
I had this same issue and then I realized that I never set the parent for the ServiceInstaller.
Double-click on your project installer. The designer should show a Service Installer and Process Installer. When you click on either and view the properties you should note the Parent attribute which must both be set to the class name of the Project Installer.
Or, if you do it in code, make sure you set:
serviceInstaller.Parent = this;
and
serviceProcessInstaller.Parent = this;
When installing services, I would highly recommend using NSSM, which worked well for me for all my WinService needs. It can install any executable (even if .bat, .cmd) as a service, and guarantees your service is always up and running.
To use this tool:
Download from here
And follow the instructions here
Then check the services list, it should be there, up, and running.
Follow these instructions, they worked for me. For the setup specifically, that part is near the bottom of the article.
MSDN: Walkthrough: Creating a Windows Service
In Visual Studio 2013 I ran into the same problem using InstallShield template for service application. But it works like charm when using Setup Project template https://visualstudiogallery.msdn.microsoft.com/9abe329c-9bba-44a1-be59-0fbf6151054d
so download Setup Project template close your Studio, run this installation and start your Studio, this will work.
Dunn.
Here is a good tutorial from tgeek001 from CodeProject.com that helped me. It includes several things I didn't see in the posts above:
1. Event handler code to stop the service before uninstalling it
2. Specific conditions and properties in the Custom Actions code to set in order to prevent failures (these fixed the Error 1001 that I experienced while following the instructions in the accepted answer above)
3. Win Service property "Remove Previous Version" dropdown set to true
http://www.codeproject.com/Tips/575177/Window-Service-Deployment-using-VS
The following is from the tutorial for Custom Actions Settings (case matters):
Install, set the Condition property to the following: "NOT (Installed or PREVIOUSVERSIONSINSTALLED)"
Uninstall, set the Condition property to: "NOT UPGRADINGPRODUCTCODE"
Commit: set "Custom Action Data" field to: /OldProductCode="[PREVIOUSVERSIONSINSTALLED]"
Lastly, in the WinService project, make sure to set the dropdown "Remove Previous Versions" to true.
cheers
I discovered that your installer class much be in the same project as the Service. The installer cannot exist in a library project referenced by the Service.
remember to check the name you've given your service before you search. (right click-> properties->check the service name

Categories