Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Zielin 19 posts 156 karma points
    Feb 08, 2017 @ 19:30
    Chris Zielin
    0

    Type FtStore not found

    I am following this guide to add Merchello to my existing site.

    http://skrift.io/articles/archive/how-to-quickly-add-ecommerce-to-your-existing-website/

    After install when I navigate to /store I am seeing the below error. Any ideas on how to resolve?

    Server Error in '/' Application.

    Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0246: The type or namespace name 'FtStore' could not be found (are you missing a using directive or an assembly reference?)

    Source Error:

    Line 41:
    Line 42:
    Line 43: public class PageViewsftStorecshtml : Umbraco.Web.Mvc.UmbracoViewPage

    Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\65ff0e80\3a324c33\AppWebftstore.cshtml.65a2d1ee.ajtzxkxj.0.cs Line: 43

  • Chris Zielin 19 posts 156 karma points
    Feb 08, 2017 @ 19:57
    Chris Zielin
    0

    Figured I'd try uninstalling and reinstalling the Merchello and FastTrack packages. No luck with that either. Ran into the following error when trying uninstall FastTrack.

    System.Data.SqlClient.SqlException: The DELETE statement conflicted with the REFERENCE constraint "FKumbracoAccessumbracoNodeid1". The conflict occurred in database "Umbraco", table "dbo.umbracoAccess", column 'loginNodeId'. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>c__DisplayClass1.<ExecuteNonQueryWithRetry>b__0() at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func1 func) at Umbraco.Core.Persistence.Database.Execute(String sql, Object[] args) at Umbraco.Core.Persistence.Repositories.PetaPocoRepositoryBase2.PersistDeletedItem(TEntity entity) at Umbraco.Core.Persistence.Repositories.ContentRepository.PersistDeletedItem(IContent entity) at Umbraco.Core.Cache.DefaultRepositoryCachePolicy2.Remove(TEntity entity, Action1 persistMethod) at Umbraco.Core.Persistence.Repositories.RepositoryBase2.PersistDeletedItem(IEntity entity) at Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWork.Commit(Action1 transactionCompleting) at Umbraco.Core.Services.ContentService.Umbraco.Core.Services.IContentServiceOperations.Delete(IContent content, Int32 userId) at Umbraco.Core.Services.ContentService.DeleteContentOfType(Int32 contentTypeId, Int32 userId) at Umbraco.Core.Services.ContentTypeService.Delete(IContentType contentType, Int32 userId) at Umbraco.Web.Editors.PackageInstallController.PerformUninstall(InstalledPackage pack) at Umbraco.Web.Editors.PackageInstallController.Uninstall(Int32 packageId) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker._1.MoveNext()

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Feb 09, 2017 @ 15:56
    Rusty Swayne
    1

    The first post looks like an issue with Umbraco Models Builder - FtStore is a generated model which you can probably see in the App_Data.

    Did you install both Merchello and FastTrack from the package installs?

  • Chris Zielin 19 posts 156 karma points
    Feb 09, 2017 @ 16:17
    Chris Zielin
    101

    Thanks for the reply Rusty.

    I just figured this out and was going to post. It was indeed an issue with the models builder. Which was enabled as part of the Merchello walk through.

    The problem in my case was that I had some document types with property names that were the same as the document type name. Which the model builder does not like.

    It took me forever to figure out because the models builder does not log errors to the normal Umbraco log file. Rather it logs to App_Data/Models/models.err. I had no idea to look there until I began performing a file diff on a new clean working project and my broken one.

    Also, for those unfamiliar with models builder running into something similar the walk through mentions setting the following config value to true.

    <add key="Umbraco.ModelsBuilder.Enable" value="true" />
    

    However, in my case the models mode was set to "Nothing". Which I also had to change.

    <add key="Umbraco.ModelsBuilder.ModelsMode" value="Nothing" />
    

    I'm currently using "Dll", but a good explanation of the different options can be found here.

    http://24days.in/umbraco-cms/2016/getting-started-with-modelsbuilder/

  • Biagio Paruolo 1594 posts 1825 karma points c-trib
    Jul 15, 2018 @ 17:25
    Biagio Paruolo
    0

    Solution: generate the models from Umbraco backoffice.

Please Sign in or register to post replies

Write your reply to:

Draft