Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
12 votes
Accepted

System.EntryPointNotFoundException when loading Sitecore 9.0

This is an indication on Sitecore 9 that your Web.config has been overwritten. Check the deployed Web.config, replace it with the stock 9.0 version if needed, and/or ensure your Visual Studio solution ...
nickwesselman's user avatar
11 votes
Accepted

Why do we need global.asax in Sitecore VS solution?

It's not required to be included or even included and then excluded from publish, it will not cause any issues with Intellisense or any other function of Visual Studio. The only reason for including ...
jammykam's user avatar
  • 13.8k
10 votes
Accepted

Working on Habitat with VS 2017

You need to change 2 things to get the gulp script to use v15.0 tools for MSBuild. First, in the gulp.js file, you need to change everywhere you see this toolsVersion: 14.0 to toolsVersion: 15.0. ...
Richard Seal's user avatar
  • 20.5k
9 votes
Accepted

Field names in content editor are wrong (multiple colons and no capitalisation) but fine in VS

It sounds like you have a matching item in /sitecore/System/Dictionary/. I did a quick test by adding a Dictionary item that matches the name of a field and the Content Editor picks it up.
Jonas Hamnered's user avatar
9 votes

Adding Views - VS Adds Scaffolding and NuGets

With MVC 5, you should have the option to add an MVC 5 View Page, like so, Using this option gives you a simple popup to type in a name, then it generates a cshtml file with no scaffolding. @{ ...
Chris Sulham's user avatar
  • 1,458
6 votes

Excluding files like web.config when using publishing in VS 2017

Although this is off-topic, this is a common issue in Sitecore for those who are experimenting with Helix/Habitat. Anyway, you can also achieve this on the VS UI which essentially results to the ...
Marco's user avatar
  • 1,005
6 votes
Accepted

Excluding files like web.config when using publishing in VS 2017

You could also add a property group called ExcludeFilesFromDeployment to your profile.pubxml publishing profile. I have mine setup like this: <Project ToolsVersion="4.0" xmlns="http://schemas....
Richard Seal's user avatar
  • 20.5k
6 votes

Why do we need global.asax in Sitecore VS solution?

A Sitecore solution application needs to inherit from Sitecore.Web.Application. <%@Application Language='C#' Inherits="Sitecore.Web.Application" %> Inside the application code; Sitecore ...
Mark Cassidy's user avatar
  • 25.3k
6 votes
Accepted

Sitecore Rocks Installation seems corrupted. What to do?

You need to set your Sitecore Rocks connection up using the Hard Rock Service: This will then give access to additional features and options, including the "Design Template" option: By comparison, ...
jammykam's user avatar
  • 13.8k
5 votes
Accepted

Why I am getting these issues with Sitecore Helix Visual Studio Templates (Anders Laub) on Visual Studio 2017?

You are getting these errors because the default templates that are installed contain some errors. Sitecore References Fix: In your folder where you installed the templates, find all the files ...
Richard Seal's user avatar
  • 20.5k
5 votes
Accepted

Should you create your Visual Studio Solution inside the Sitecore website root?

You always want to put your visual studio solution outside of the website and deploy into it. Upgradability Unless you are going to add 10,000 files to your gitignore file, you are going to have ...
Chris Auer's user avatar
  • 13.1k
5 votes
Accepted

How to view history of yml files (before they have pending changes)

TIL that Visual Studio 2017 introduced a Solution Explorer toolbar to switch between the classic "Solution" view and to a "Source Files" view which shows the files and folder structure which is on ...
jammykam's user avatar
  • 13.8k
5 votes
Accepted

Error Another setup is already running when trying to install TDS on VS2019

I had the same problem and after the TDS installation finished and before the VSIX installation I ended all msiexec processes and after that I did the VSIX installation. With these steps I was able to ...
Fillipe Martins's user avatar
4 votes
Accepted

Insert Image in Div style property using View Rendering

You cannot just assign image field value as a background image. You have to first get the src of the image like: @{ ImageField imageField = item.Fields["KfcStartContent_Img3"]; string url = ...
Marek Musielak's user avatar
  • 23.8k
3 votes

How to view history of yml files (before they have pending changes)

The answer to this would depend on what you are using for Source Control. I will try to answer assuming Git is your source control. Short Answer: Not easily... The short answer is, with regular ...
Richard Seal's user avatar
  • 20.5k
3 votes

Should you create your Visual Studio Solution inside the Sitecore website root?

Yes, you can create the Visual Studio project inside the webroot of a Sitecore install. But It is not a recommended practice. Things to consider for Visual Studio project inside the webroot- ...
Mahendra Shekhawat's user avatar
3 votes

Adding Views - VS Adds Scaffolding and NuGets

If you use the default Web Applications with MVC project template, I'm not sure whether you can turn off this behaviour. However, you could potentially use Sitecore Rocks to create the files for you ...
Søren Engel's user avatar
  • 1,523
3 votes

System.EntryPointNotFoundException when loading Sitecore 9.0

I have resolved the issue with @techphoria441 answer. Ensure that all your projects web.config Build Action is set to None.
Marvin Glenn Lacuna's user avatar
3 votes
Accepted

Can we use Sitecore TDS with Visual Studio 2022 Preview 2?

UPDATE: Support for VS 2022 was added recently in TDS. You have to use the x64 .msi file which is included in the most recent TDS version 6.0.0.34 released on November 12th, 2021 while VS 2019 only ...
Harsh Baid's user avatar
  • 1,994
2 votes

Developing a Module as a Visual Studio Project: how to copy the relevant files upon build? How to organise the VS Project?

Question 1 Answer: Under your VS web project, create identical structure as you need for all files under your_sitecore_instance_path/Sitecore/ folder that you would like to deploy: You just need to ...
Peter Procházka's user avatar
2 votes
Accepted

How to fix the Global.asax warnings in a Sitecore 9 (Update-1) Visual Studio solution?

As suggested by @jammykam, I removed the Global.asax. It stopped the warnings being popped up in my Visual Studio. I don't know why the Sitecore online training teaches you to add this file to the ...
João Neto's user avatar
  • 2,051
2 votes

Excluding files like web.config when using publishing in VS 2017

Try this one: <ItemGroup> <None Update="file name" CopyToPublishDirectory="Never" /> </ItemGroup> It will change build action from content to none and will exclude file from ...
Anton's user avatar
  • 3,821
2 votes

TDS File Replacement per user

You can add your own replacement configuration into a .user file. <ItemGroup Condition=" '$(Configuration)' == 'Debug' "> <Replacement Include="[source folder]"> <TargetPath>[...
Vlad Shpak's user avatar
  • 1,792
2 votes

Should ConnectionStrings.config be in source control/VS?

Ideally It should not be a part of your VS Publish, it should be left as it is in server. As you have connectionstring.config related to environments not code. But if you have any custom database ...
Nikhil Kulkarni's user avatar
2 votes

Using TDS and Visual Studio for development, Command-line Git for version control

I think you have a misunderstanding of how TDS and Source Control work. First, TDS does not have any integration or dependency on a Source Control system. You can use TDS with Git, SVN, TFVC, ...
Richard Seal's user avatar
  • 20.5k
2 votes
Accepted

TDS 500 error, how do I test my TDS connection for more specific errors?

To find the specific errors as per your question you can try the below steps: Select the output in Visual studio to get the details and see what happens when sync. Use the Test button for TDS ...
Amitabh's user avatar
  • 1,066
2 votes
Accepted

Cannot run OData Connected Service tool and compatiblity errors

Check that you are using a OData Connected Service version that is compatible with OData Client version 6.19.0. The OData Connected Service tool is (automatically in VS) upgraded to v0.7.1 and this ...
Joost's user avatar
  • 1,907
1 vote

Unable to compile and deploy Sitecore.Commerce.SDK project

You need to follow Sitecore documentation that you mentioned in your question at the beginning precisely. Therefore you have to use VS2015 when you want to develop / deploy Sitecore Commerce 8.2.1 ...
Peter Procházka's user avatar
1 vote
Accepted

Why can't I install Sitecore.Kernel v9.1.1 via Nuget?

The answer was to update Visual Studio from 15.0 to 15.9. Once I did that then the installation from Nuget worked. Who would have guessed. :)
Corey Burnett's user avatar
1 vote

Sitecore Rocks icons not loading in "Set Icon..." menu

I fixed this by updating to the latest version of Rocks, then restarting VS. To update Rocks: - Right-click the connection name under 'Connections' in Sitecore Explorer from the menu choose "...
sh1rts's user avatar
  • 143

Only top scored, non community-wiki answers of a minimum length are eligible