Ecoomerce starter kit bugs

Posted by Community Admin on 04-Aug-2018 14:14

Ecoomerce starter kit bugs

All Replies

Posted by Community Admin on 14-Sep-2012 00:00

i just started evaluating sitefinity 5.1 about 2 days ago and i also installed the 5.1 sdk.But the problem i having is with the eCommerce site.After successfully publishing the site,at the home page of the eCommerce site ,when i click a button on an item in the home page it redirects me to a blank site with error message 404 "page not found" .also the drop down header for checking out after adding items to cart doesn't respond.Please are there any modifications that need to be done to solve this bug because its my first time loading the sample app(didn't modify anything) and its throwing missing page when i click some items.

please any help will be appreciated.

Posted by Community Admin on 19-Sep-2012 00:00

Hi Thomas,

I have answered your ticket on the same subject. I'll paste the answer here for your convenience:

"Hello Thomas,

Thank you for contacting us.

Can you elaborate on "After successfully publishing the site"? Do you mean that you have used thepublish function in Visual Studio? If that is the case I would suggest to avoid the publish functionality of Visual Studio as other clients have encountered problems when using it for publishing their websites. I assume that due to the fact that VS builds and publishes the project and its files, it kills all processes that use the files and sometimes does not even copy the files. The easiest ( and safest ) way to deploy your project files to the server is to copy them to the destination folder on the server using FTP client. 

I hope this helps and please let me know if you have any further questions.

Kind regards,
Pavel Benov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 20-Sep-2012 00:00

@Pavel,

No offense but I continuously use Visual Studio's 'publish' feature to build & deploy to development/test/production environment and it works flawlessly. 

Comments like these "it kills all processes that use the files and sometimes does not even copy the files" shouldn't be made here (devnet forum) and certainly shouldn't be posted in a support ticket.

Whether I FTP over all the files or use VS publish or use copy/paste - it will all kill processes.

If the file isn't copied over, than its configured to not be copied.
You know how extremely useful that feature is when publishing to several environments (dev/test) and you don't continuously want to be afraid of overwriting DataConfig.Config ?

All it takes is setting up proper 'include in project' and 'content, do not copy' one time instead of having to manually think about which files to FTP over and which not. Because essentially that's what Visual Studio publish does - it builds and deploys(FTP, webdav or local copy). 

Just because some people haven't setup a project correctly and thus running into errors, which they don't if they bluntly FTP everything over isn't to be blamed on 'publish'.

However, setting up the project properly takes some initial time which could easily be avoided if the project would have been setup correctly out-of-the-box. 

---
@Thomas,

The problem most likely comes from the fact that you're not running the website from a 'root-url'. Some links used in the sample point to lets say /online-shop/shop and that's most likely the cause of the issue.

The best way to run the sample is directly run it from within the SDK and click on "run sample in browser" which will fire-up a cassini server and run the site as http://localhost.

Otherwise open it in Visual Studio and click 'run' or ctrl-F5 from there, which will also force it to run from an internal webserver and thus not require any server setup.

Jochem.

Posted by Community Admin on 21-Sep-2012 00:00

Hello Jochem,

Thank you for your constructive feedback and input on this thread.

I completely agree with you that if properly configured, Visual Studio "Publish" is a very powerful tool that can speed up your development. However, the only reason, as you have properly pointed out (ad I believe Pavel's idea was the same, although expressed in a little different manner) is that the feature might be tricky to configure initially, and sometimes lead to problems that lurk there for a while, finally showing up when the client has even forgotten the fact some files might have not been included when publishing.

Most of the times we've had clients report problems with Visual Studio Publish it has been due to a configuration file or some other asset locked by source control, or not included in the solution to be published. Of course this does not mean that FTP-ing the files as we recommend is the best option, it's just more fool-proof in the sense that you are deploying an exact copy of what you have running locally, so people don't need to focus on the files to be uploaded, but on setting up the configurations for the hosting environment.

I would be really grateful if you could elaborate on "However, setting up the project properly takes some initial time which could easily be avoided if the project would have been setup correctly out-of-the-box.", and hear any specific suggestions you might have in this direction. As you know your feedback is highly valued and we have always taken it into account, so any input on this topic would be highly appreciated.

On a side note, since the thread concerned Thomas' problem with our Corporate Starter Kit, I would agree with Jochem (again :) ) that runnig the project with the integrated SDK webserver, or VS integrated webserver is the most comfortable way to go. If any issues persist there, then indeed there might be a problem with the sample project, however we haven't managed to reproduce it locally, neither in testign stages of the SDK nor when you reported the behavior, so any input on the exact steps taken to reproduce it would help us give you a more focused advice.

Looking forwards to your reply.

All the best,
Boyan Barnev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 21-Sep-2012 00:00

Just my 2 cents. I have been using the Publish button as well. The only issues I was encountering was that it was not copying the RESX files. So my labels that I have renamed would go to the defaults again. Some other files as well. I must admit that I have included them into the project but still would not do it. Anyway, I have been using the Publish button and some common sense and it has been OK for me. But big J, if you have any suggestions that you can put down in an ordered list, I would love to read them.
Many thanks,
Andrei

Posted by Community Admin on 21-Sep-2012 00:00

@Boyan,

I totally realize the feedback wasn't constructive, you don't have to be polite :) 
The 'white lie' about "just use FTP" for novice users I can understand, sometimes its easier than going 3 or 4 rounds in explaining all the little details and using up support resources.

But Sitefinity supports is the industry standard, and since novice users sometimes tend to take matters rather black and white, outright blaming VS 'publish' is a tad to much corner cutting. Two weeks or two months from now when someone else suggest using 'Publish' you got to talk that user/client down first on their beliefs that its bad... and besides nobody wants to see this thread in Google search results next to Scott Hanselman's You're Doing It Wrong blog post ;)

---
@Andrei
Come on - I'm 1.92m tall but that's not big nor do I like horses so... ;)  The trick is the 'Build Action' under properties, where 'content' gets published and 'none' gets left behind. 

---
I'll write up a list on how I usually go from project file out of the box to fully publishable later but let me illustrate one simple example why I'm such a big fan of the 'publish' functionality:

These days we all use minified css and javascript files on our production servers, some of use use other techniques as LESS/SASS/Coffeescript as well. In the screen-shot you'll see a snippet of the theme/global directory where there's a .less file, a .css file and a .min.css file.

The .less file is the file I edit in VisualStudio and the .css file gets generated along with a minified .min.css file.

BUG:
If I simply FTP the entire folder over to the server, I have two .css files present in the global folder. And even though my cssLoadOrder.xml states it only should load the 2 .min.css files if you'd inspect what gets loaded (fiddler/firebug/ie tools) you'll see that both the non minified as well as the minified css files get loaded.

FTP-SOLUTION:
So in order to FTP properly I would bluntly FTP over the 'websitetemplates' folder and its underlying files. Then would have to navigate down to templatename folder, then down into the app_themes folder, then down into the themename folder and then finally down into the global folder and then delete the non minified css files.

And I would need to do that for every time I need to deploy/update the server (whether its production or staging).

PUBLISH-SOLUTION:
When I use VS publish instead of FTP, I just mark the files I don't want to be on the server as 'Build action: None' and forget about it from then on.


---
No more reminders or things to forget or accidental wrong file removals, it just works - all the time and not just for me but for every dev that deploys and may not have that FTP checklist.

Jochem

Posted by Community Admin on 21-Sep-2012 00:00

@Boyan,

Sitefinity project fresh out-of-the-box.
Using the Sitefinity project manager, I create a new project and then select ‘open in visualstudio’. (This means it hasn't changed anything nor added .config files since the first time setup hasn't been run yet.)
---
When In Visualstudio, clicking on the solution explorer and expanding ‘references’ we immediately see the notorious ‘Telerik.OpenAccess.Adonet2’.  This file should have been removed since Q2 2011 but the reference is still there, leading to build warnings/errors like these:
Could not resolve this reference. Could not locate the assembly "Telerik.OpenAccess.Adonet2". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
---
There’s a constant nuisance regarding ‘clean’ and ‘rebuild’ solution. Where it works the first time, but as soon as you try it for the second time you run into trouble because all of a sudden dll’s have gone missing (at least since v4.3).  

One of the more famous resulting errors is the missing Microsoft.Http gone missing, but this is happening because a lot of .dll’s aren’t referenced like Microsoft.Http, Sitefinity.Migrations and several Telerik.Windows.

---
So without even talking about publishing vs FTP – just opening the .csproj and do some build/clean/rebuild is causing 14 missing dll files and all that you can do is hope you have a spare copy and paste them back into the /bin directory. See attachment sitefinity-project-1.png
---

By default the /bin directory is not included in the project. Which it wouldn’t have to because build/publish would take care of those files, but unfortunately there are 4 wrongfully referenced dll’s. These are flagged with <Private>False</Private> in the .csproj and the ‘False’ indicates they will not be published.
As an alternative, you can just include the /bin folder in your project and then, since it is now part of the Visual Studio project, get those dll’s published alongside the rest but that's getting rid of the symptoms and not the cause.

---
Visual Studio Project/Solution suggestions:
For those of us who use build & publish one thing that would be very helpful is if you guys could, out-of-the-box, setup web.config transforms.
Somebody not using this, wouldn’t be affected by this, but for those of us who do, a few default rules between development and release like turning off compilation debug, custom error mode, client-caching (so css isn't constantly cached during development)and service debug would be a really sweet time saver.
I understand the hesitance for including the /App_Data/Configuration folder into the project but perhaps at least the Sitefinity.lic file inside /app_data and the projectconfig.config can be included? 

Again, someone not using it wouldn't get hurt but if you register the project under source-control it would at least ensure that the initial status is a full initial status and not 2 very important files are missing right from the start.

Hope this is somewhat useful info...

Jochem
SitefinityWebApp.csproj changes:
 
Should be removed from reference:
    <Reference Include="Telerik.OpenAccess.Adonet2, Version=2010.2.1013.8, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>bin\Telerik.OpenAccess.Adonet2.dll</HintPath>
      <Private>True</Private>
    </Reference>
 
because it causes build/publish errors and is unnecessary since 2011.
 
Wrongfully referenced:
<Reference Include="Interop.DexterLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=59345589f61c4f31, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <EmbedInteropTypes>True</EmbedInteropTypes>
  <HintPath>bin\Interop.DexterLib.dll</HintPath>
  <Private>False</Private>
</Reference>
 
<Reference Include="Microsoft.WindowsAzure.ServiceRuntime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Microsoft.WindowsAzure.ServiceRuntime.dll</HintPath>
  <Private>False</Private>
</Reference>
<Reference Include="mysql.data, Version=5.2.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\MySql.Data.dll</HintPath>
  <Private>False</Private>
</Reference>
<Reference Include="Telerik.OpenAccess.MySql.Data, Version=2010.2.1013.8, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Telerik.OpenAccess.MySql.Data.dll</HintPath>
  <Private>False</Private>
</Reference>
 
Because the private=false setting dictates no publish output.
 
 
Not referenced but should be added:
<Reference Include="Microsoft.Http, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Microsoft.Http.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Http.Extensions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Microsoft.Http.Extensions.dll</HintPath>
</Reference>
<Reference Include="NHamcrest, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31c3ea0b6fcf8c4a, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\NHamcrest.dll</HintPath>
</Reference>
<Reference Include="Telerik.Sitefinity.Migration, Version=5.1.3450.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Telerik.Sitefinity.Migration.dll</HintPath>
</Reference>
<Reference Include="Telerik.Sitefinity.MigrationContracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Telerik.Sitefinity.MigrationContracts.dll</HintPath>
</Reference>
<Reference Include="Telerik.Sitefinity.UI.MVC, Version=5.1.3450.0, Culture=neutral, PublicKeyToken=b28c218413bdf563, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Telerik.Sitefinity.UI.MVC.dll</HintPath>
</Reference>
<Reference Include="Telerik.Windows.Controls, Version=2012.2.725.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Telerik.Windows.Controls.dll</HintPath>
</Reference>
<Reference Include="Telerik.Windows.Data, Version=2012.2.725.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Telerik.Windows.Data.dll</HintPath>
</Reference>
<Reference Include="Telerik.Windows.Documents, Version=2012.2.725.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Telerik.Windows.Documents.dll</HintPath>
</Reference>
<Reference Include="Telerik.Windows.Documents.Fixed, Version=2012.2.725.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Telerik.Windows.Documents.Fixed.dll</HintPath>
</Reference>
<Reference Include="Telerik.Windows.Documents.FormatProviders.Html, Version=2012.2.725.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Telerik.Windows.Documents.FormatProviders.Html.dll</HintPath>
</Reference>
<Reference Include="Telerik.Windows.Documents.FormatProviders.OpenXml, Version=2012.2.725.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Telerik.Windows.Documents.FormatProviders.OpenXml.dll</HintPath>
</Reference>
<Reference Include="Telerik.Windows.Documents.FormatProviders.Rtf, Version=2012.2.725.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Telerik.Windows.Documents.FormatProviders.Rtf.dll</HintPath>
</Reference>
<Reference Include="Telerik.Windows.Zip, Version=2012.2.725.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>bin\Telerik.Windows.Zip.dll</HintPath>
</Reference>
 
Because on clean/rebuild those files will get deleted from /bin folder, resulting in errors.

This thread is closed