<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">Blog posts by Vaibhao Chawale</title><link href="http://world.optimizely.com" /><updated>2023-10-06T17:56:00.0000000Z</updated><id>https://world.optimizely.com/blogs/vaibhao-chawale/</id> <generator uri="http://world.optimizely.com" version="2.0">Optimizely World</generator> <entry><title>Fix Error - InvalidOperationException: The view &#39;Index&#39; was not found. The following locations were searched:
/Views/StartPage/Index.cshtml</title><link href="https://everythingoptimizely.vaibhao.com/fix-error-invalidoperationexception-the-view-index-was-not-found-the-following-locations-were-searched-viewsstartpageindexcshtml" /><id>&lt;h2 id=&quot;heading-issue&quot;&gt;Issue&lt;/h2&gt;
&lt;p&gt;If you install a fresh instance of CMS 12 and if you build a solution with Visual Studio, the site breaks with &lt;em&gt;The view &#39;Index&#39; was not found&lt;/em&gt; error. It appears like the below screenshot.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn.hashnode.com/res/hashnode/image/upload/v1696614319706/1f44de1e-9d96-484b-ae95-2455492e4b5a.png&quot; alt class=&quot;image--center mx-auto&quot; /&gt;&lt;/p&gt;
&lt;h2 id=&quot;heading-fix&quot;&gt;Fix&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Delete your /bin and /obj folder&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now instead of building a solution from Visual Studio, Open the console OR terminal at the root of the Website and run &lt;code&gt;dotnet run&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;  &lt;img src=&quot;https://cdn.hashnode.com/res/hashnode/image/upload/v1696614762315/ff86f886-4a4c-470c-8f21-e8685aaf9512.png&quot; alt class=&quot;image--center mx-auto&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The above command will compile your code cleanly without the above issue&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I don&#39;t what Visual Studio &quot;Build Solution&quot; vs &quot;dotnet run&quot; does differently which causes this, but this fixes the issue if anyone is looking to resolve it.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
</id><updated>2023-10-06T17:56:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>How to install Elastic search 8.9 on Windows 10 as a standalone service?</title><link href="https://everythingoptimizely.vaibhao.com/how-to-install-elastic-search-89-on-windows-10-as-a-standalone-service" /><id>&lt;p&gt;You can go to this article &lt;a target=&quot;_blank&quot; href=&quot;https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html&quot;&gt;Install Elasticsearch with .zip on Windows | Elasticsearch Guide [8.9] | Elastic&lt;/a&gt; and follow the instructions which will help you install elastic search as a service, but there is a lot of additional stuff which is not needed for your purpose of B2B commerce related work.&lt;/p&gt;
&lt;p&gt;So, here are clean steps to follow to get your localhost:9200 port up and running for Optimizely B2B commerce&#39;s search index configuration.&lt;/p&gt;
&lt;h3 id=&quot;heading-initial-installation&quot;&gt;Initial Installation&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Download the latest zip from here - &lt;a target=&quot;_blank&quot; href=&quot;https://www.elastic.co/downloads/elasticsearch&quot;&gt;Download Elasticsearch | Elastic&lt;/a&gt;, at the time of writing this article I used Elastic search 8.9 &lt;a target=&quot;_blank&quot; href=&quot;https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.9.0-windows-x86_64.zip&quot;&gt;https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.9.0-windows-x86_64.zip&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Go to your downloads folder, unzip the package and extract it into a folder.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;img src=&quot;https://cdn.hashnode.com/res/hashnode/image/upload/v1691106244132/291ab85b-932c-41c6-bee9-111d7bb72ea3.png&quot; alt class=&quot;image--center mx-auto&quot; /&gt;&lt;/p&gt;
&lt;p&gt; Copy the &quot;elasticsearch-8.9.0&quot; folder and paste it into your C:/ drive&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open Windows Terminal OR Command Line and navigate to your elastic folder&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;img src=&quot;https://cdn.hashnode.com/res/hashnode/image/upload/v1691106458707/0fae229d-1d7e-400e-90cf-12710b27018d.png&quot; alt class=&quot;image--center mx-auto&quot; /&gt;&lt;/p&gt;
&lt;p&gt; Run command &lt;code&gt;.\bin\elasticsearch.bat&lt;/code&gt;. It will take some time to run.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;mark&gt;Please note &lt;/mark&gt; - You don&#39;t need JVM or JDK installation before doing this, it all comes with this zip file, so don&#39;t need to worry about it. This was an issue with past elastic installations.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once your command runs fine without any errors, you will get 3 one-time generated pieces of information.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;password for your &quot;elastic&quot; username. Store this in a safe place. This is needed for the first-time login.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enrollment token for Kibana - &lt;em&gt;not needed for our installation&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Hex-encoded SHA-256 fingerprint - &lt;em&gt;not needed for our installation&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now if you hit URL https://localhost:9200 it will ask you for your username and password&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;img src=&quot;https://cdn.hashnode.com/res/hashnode/image/upload/v1691107030700/804ed9b1-e82c-4639-b38e-b34d03696cf8.png&quot; alt class=&quot;image--center mx-auto&quot; /&gt;&lt;/p&gt;
&lt;p&gt; This is where you will enter the username as &quot;elastic&quot; and the password generated in your terminal window&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you enter your username and password correctly, you should see the below screen as an acknowledgment that the elastic service is running with cluster information.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;img src=&quot;https://cdn.hashnode.com/res/hashnode/image/upload/v1691107338586/018a71c7-cabb-48af-966e-96b56f48e0c1.png&quot; alt class=&quot;image--center mx-auto&quot; /&gt;&lt;/p&gt;
&lt;p&gt;You can terminate your elastic session by pressing CTRL + C twice&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Next steps are to configure elastic service in background.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&quot;heading-standalone-installation-of-service&quot;&gt;Standalone Installation of Service&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Keep in the same terminal session and use the command&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;pre&gt;&lt;code class=&quot;lang-bash&quot;&gt; elasticsearch-service.bat install
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now start the service using the command&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;pre&gt;&lt;code class=&quot;lang-bash&quot;&gt; elasticsearch-service.bat start
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;mark&gt;Please note &lt;/mark&gt; - Elastic search now uses Daemon to host the service on your machine and doesn&#39;t use Window Services which was the case before. So you will not find an Elastic search service running in Services.msc&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Starting service will still be temporary until your terminal session remains open, you can permanently keep it running using the command&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;pre&gt;&lt;code class=&quot;lang-bash&quot;&gt; elasticsearch-service.bat manager
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Start it and configure its startup type. I kept it to Manual.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;img src=&quot;https://cdn.hashnode.com/res/hashnode/image/upload/v1691107921943/8ad1e69b-0804-44d4-9800-32db63d64f59.png&quot; alt class=&quot;image--center mx-auto&quot; /&gt;&lt;/p&gt;
&lt;p&gt; Now critical step left here is to configure your environment variable for JDK. This is necessary for the service to look for the JDK folder to keep it running in the background. This will be set to the JDK path of your elastic folder.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn.hashnode.com/res/hashnode/image/upload/v1691108069170/06980503-9684-414b-8718-4368a897449c.png&quot; alt class=&quot;image--center mx-auto&quot; /&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Once this is done, now you can close all terminal windows and your localhost:9200 port will be open to respond to elastic service calls from Optimizely.&lt;/li&gt;
&lt;/ol&gt;
</id><updated>2023-08-04T00:30:13.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Fix error - The admin user registration is disabled, no redirect to &#39;/Util/Register&#39; will happen.</title><link href="https://everythingoptimizely.vaibhao.com/fix-error-the-admin-user-registration-is-disabled-no-redirect-to-utilregister-will-happen" /><id>&lt;h3 id=&quot;heading-issue&quot;&gt;Issue&lt;/h3&gt;
&lt;p&gt;If you install a fresh instance of CMS 12, register yourself with the admin user for the first time, and then forget your password, you may encounter issues when trying to log back in after several days, as new user registration is currently disabled.&lt;/p&gt;
&lt;p&gt;Usually, you get the below message in the console&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn.hashnode.com/res/hashnode/image/upload/v1690414823527/a827f9b7-1e9e-4035-9461-e47e0fcdc762.png&quot; alt class=&quot;image--center mx-auto&quot; /&gt;&lt;/p&gt;
&lt;h3 id=&quot;heading-fix-delete-admin-user-from-the-database&quot;&gt;Fix - Delete Admin user from the database&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Open your project in Visual Studio&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open App_Data folder&lt;/p&gt;
&lt;p&gt;  &lt;img src=&quot;https://cdn.hashnode.com/res/hashnode/image/upload/v1690415069546/49e4f6c0-04b0-4af2-bbba-71b0746fcc52.png&quot; alt class=&quot;image--center mx-auto&quot; /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;It opens SQL server explorer right in your Visual Studio&lt;/p&gt;
&lt;p&gt;  &lt;img src=&quot;https://cdn.hashnode.com/res/hashnode/image/upload/v1690415136559/94bfbeb9-0583-43e3-9a65-7ae7f6b47a42.png&quot; alt class=&quot;image--center mx-auto&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Right-click on database AlloyCheck.mdf and select &quot;&lt;em&gt;New Query&lt;/em&gt;&quot; option from the context menu&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Run below query to delete your admin user&lt;/p&gt;
&lt;p&gt;  &lt;code&gt;delete from AspNetUsers&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Close your Visual Studio to terminate the connection with SQL&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Run &lt;code&gt;dotnet run&lt;/code&gt; on the terminal of your project path&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now you will be automatically redirected to /Util/Register page to create a new admin user&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
</id><updated>2023-07-26T23:54:46.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>How to setup Optimizely CMS 12 on local dev?</title><link href="https://everythingoptimizely.vaibhao.com/how-to-setup-optimizely-cms-12-on-local-dev" /><id>&lt;h3 id=&quot;heading-check-your-prerequisites&quot;&gt;Check your prerequisites&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Microsoft Windows 10/Server 2019 or later&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Microsoft Visual Studio 2022 &lt;a target=&quot;_blank&quot; href=&quot;https://visualstudio.microsoft.com/vs/community/&quot;&gt;https://visualstudio.microsoft.com/vs/community/&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;2022 is needed for .NET 6 framework&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Make sure you have .NET Desktop development and ASP.NET Web Dev is checked&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;heading-installing-optimizely-project-templates&quot;&gt;Installing Optimizely Project Templates&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Open Command Prompt OR Windows Terminal&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Optimizely dotnet project templates&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;dotnet new --install EPiServer.Templates&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;heading-installing-optimizely-dotnet-cli-database-tool&quot;&gt;Installing Optimizely dotnet CLI database tool&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;This helps to run some helpful commands against CMS database&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;dotnet tool install&lt;/code&gt; &lt;a target=&quot;_blank&quot; href=&quot;http://EPiServer.Net&quot;&gt;&lt;code&gt;EPiServer.Net&lt;/code&gt;&lt;/a&gt;&lt;code&gt;.Cli --global --add-source&lt;/code&gt; &lt;a target=&quot;_blank&quot; href=&quot;https://nuget.optimizely.com/feed/packages.svc/&quot;&gt;&lt;code&gt;https://nuget.optimizely.com/feed/packages.svc/&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;heading-configure-nuget-feed&quot;&gt;Configure Nuget Feed&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Open Visual Studio 2022&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Navigate to Tools &amp;gt; Nuget Package Manager &amp;gt; Package Manager Settings&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click Package sources from the Options dialog&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add new source with path &lt;a target=&quot;_blank&quot; href=&quot;https://api.nuget.optimizely.com/v3/index.json&quot;&gt;https://api.nuget.optimizely.com/v3/index.json&lt;/a&gt;, you can name it whatever you want, for example - Optimizely Nuget Feed&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;heading-fun-part-installing-cms-alloy-website&quot;&gt;Fun Part - Installing CMS Alloy Website&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Create a folder in your system and navigate to that folder using the Terminal&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For example C:\Projects\CMS12Alloy&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Run below command&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;dotnet new epi-alloy-mvc&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;dotnet run&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It takes some time, but once it is ready and you see &lt;code&gt;&quot;Now listening on https://localhost:5000&quot;&lt;/code&gt; in the terminal, navigate to https://localhost:5000&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For the first time, it will navigate to the Register page.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Setup your username and password and you are good to go!&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
</id><updated>2023-07-25T14:11:37.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Maximizing Build Monitoring with Optimizely B2B Commerce Cloud: A Look at Two Powerful Approaches</title><link href="https://blogs.perficient.com/?p=324257" /><id>Have you ever found yourself in the following situations: When you pushed your Extension changes in the Sandbox branch and wondering whether your build was deployed on Sandbox, Whether TeamCity picked up the right change-sets from the last build you pushed on the Sandbox branch, What happens when multiple team members pushed extension DLLs in [&amp;#8230;]</id><updated>2023-01-03T16:27:34.0000000Z</updated><summary type="html">Blog post</summary></entry></feed>