Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Daniel Tucker
    @me_dantuck_twitter

    Hello. I would like to implement PWA features but I have come to the point where I have one last step that needs to be updated in the http response. The Vary header is added with * and I can't find where it is added. Also I have tried to remove it using <remove name="Vary" /> then <add name="Vary" value="Accept-Encoding" />

    Any suggestions?

    Daniel Tucker
    @me_dantuck_twitter
    I guess I will open a support ticket since I am not getting any response here.
    jbert50021
    @jbert50021
    How important is it to use a static method when using an external c# function. I have found that this is causing me problems, and I have found a way to trick the cms to let me do what I want. What sort of issues am I opening myself up to?
    Kt Shulha
    @Kt_Shulha_twitter
    Hi!
    Does anybody know how to change the starting (home) page?
    Currently I have one, but want the other one to be the starting page (without any redirects).
    Marcus Wendt
    @mawtex
    @jbert50021 I haven't used those for quite some time, so details might be a bit vague - but if I remember correctly the function provider only recognizes static methods. But what you do from there should be safe enough, as long as you keep in mind you are in a static context to begin with.
    @Kt_Shulha_twitter If you have multiple homepages (and no hostname binding via the "Hostnames" settings on the System perspective) then the top homepage will be served. You can use the "cut / paste" right click commands on a home page and move one page above another, thus switching which is active by default. Do a "Cut" on the new homepage and then "Paste" on the Websites node, placing your new default page as the top one.
    Kt Shulha
    @Kt_Shulha_twitter
    @mawtex Thanks a lot! Hostnames settings solved the issue.
    sfedor
    @sfedor

    Hi there,

    What is the best way to organize deploying and synchronizing among dev and production server? Sometimes we do first changes (controls, content, add new types and metadata) on the dev server and some times we modify the production one. Is there any pattern or mechanism to synchronize data on both servers?

    akhil1990
    @akhil1990
    hi guys
    i am facing a severe issue
    i am not able to login! After entering credentials its keep on showing progress bar
    Marcus Wendt
    @mawtex
    @akhil1990 take a look in the c1 server log - you can find the log files in ~/App_Data/Composite/Logfiles - you can also use the browser dev tools (activated by in browser F12) to check if requests fail and if those requests carry a error message. With an error message, we can better pinpoint the problem.
    David Bailey
    @DBailey635

    Hi. I've recently added two new fields to an in-use page datatype on my home machine and everything works as it should. However, after uploading changes to my GIT repo and then downloading the same changes on my work machine, I'm getting an error whenever I want to edit or open a data record:

    '''System.NullReferenceException: Object reference not set to an instance of an object. at Composite.Data.DynamicTypes.DataTypeDescriptorFormsHelper.GetBindings(IData dataObject, Boolean allowMandatoryNonDefaultingProperties)
    at Composite.Data.DynamicTypes.DataTypeDescriptorFormsHelper.UpdateWithBindings(IData dataObject, Dictionary'2 bindings)

    at Composite.Plugins.Elements.ElementProviders.GeneratedDataTypesElementProvider.EditDataWorkflow.editCodeActivity_ExecuteCode(Object sender, EventArgs e)
    at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e)
    at System.Workflow.Activities.CodeActivity.Execute(ActivityExecutionContext executionContext)
    at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
    at System.Workflow.Runtime.Scheduler.Run()
    System.InvalidOperationException: Error executing workflow b5ef03b4-8946-4ccf-8836-b75aceac03b7
    at Composite.C1Console.Workflow.WorkflowFacadeImpl.RunWorkflow(Guid instanceId)
    at Composite.C1Console.Workflow.WorkflowFacadeImpl.RunWorkflow(WorkflowInstance workflowInstance)
    at Composite.C1Console.Workflow.WorkflowActionExecutor.Execute(String serializedEntityToken, String serializedActionToken, ActionToken actionToken, FlowControllerServicesContainer flowControllerServicesContainer)
    at Composite.C1Console.Actions.ActionExecutorFacade.Execute(EntityToken entityToken, ActionToken actionToken, FlowControllerServicesContainer flowControllerServicesContainer, TaskManagerEvent taskManagerEvent)
    at Composite.C1Console.Actions.Data.ProxyDataActionExecuter.Execute(String serializedEntityToken, String serializedActionToken, ActionToken actionToken, FlowControllerServicesContainer flowControllerServicesContainer)
    at Composite.C1Console.Actions.ActionExecutorFacade.Execute(EntityToken entityToken, ActionToken actionToken, FlowControllerServicesContainer flowControllerServicesContainer, TaskManagerEvent taskManagerEvent)
    at Composite.Core.WebClient.FlowMediators.ActionExecutionMediator.ExecuteElementAction(ElementHandle elementHandle, ActionHandle actionHandle, String consoleId)

    at Composite.Core.WebClient.FlowMediators.TreeServicesFacade.ExecuteElementAction(String providerName, String serializedEntityToken, String piggybag, String serializedActionToken, String consoleId)
    at Composite.Services.TreeServices.ExecuteSingleElementAction(ClientElement clientElement, String serializedActionToken, String consoleId)'''

    This page details my .gitignore:

    https://baileyweb.online/blog/2019/01/01/Git-ifying-My-Project

    Any ideas what is causing this error? Have I missed a path in my .gitignore file?

    Pauli Østerø
    @burningice2866
    @DBailey635 have you previously customised and saved the Form Markup for the given datatype? If so, it might reference fields that have now been renamed or removed.
    David Bailey
    @DBailey635
    @burningice2866 That's a good posibility. It might be that I've accidently created a form markup file there. I'll add the path into my .gitignore file and see if there's anything in that folder when I get back home. I'll let you know what I find.
    Marcus Wendt
    @mawtex
    @DBailey635 what files were committed in the change? Also, try to remove ¨/bin/Composite.Generated.dll - this should force the file to regenerate. Looking at the code this could be a fix.
    David Bailey
    @DBailey635

    @burningice2866 . OK, so there weren't any Form Markup files, but I was missing a number of XML files from the /Website/App_Data/Composite/DataStores/ path in my GIT repo. I'm not including all of the CMS in GIT... just the files that specifically relate to my own project. However, I forgot that in order to test that my own code is working, I also need to keep the website, files, and data synchronised between both of my machines. By adding those missing DataStore files back, the errors disapeared.

    @mawtex . I did also remove and regenerate the Composite.Generated.dll file as you suggested, but the first time I tried it I got a lot of error messages about missing references from the Package Server add-on. Uninstalling this add-on allowed me to compile the DLL and I was able to reinstall the Package Server add-on afterwards. Not sure why that was, but at least it's back up and running now.

    Thanks both for your help.

    Pauli Østerø
    @burningice2866

    @DBailey635 deleting Composite.Generated.dll is generally not a good idea if you, or any packages you have installed, have code in App_Code which relies on dynamic datatypes since it prevents the whole website from starting up.

    A more robust option is to upvote this feature request and enable C1 to generate the dll when needed Orckestra/C1-CMS-Foundation#634

    Dmitriy Bobrovskiy
    @Safety1st
    Hi there! Just installed recent C1 version and got error right after migrating to MSSQL. You could see it there: default page & Console. Any help will be appreciated.
    Marcus Wendt
    @mawtex

    @Safety1st from the error I see, it looks like the migration from xml to SQL did not complete - did you use the tool in https://c1.orckestra.com/Add-ons/All/Composite.Tools.SqlServerDataProvider to move?

    For sure it makes sense you revert to the xml based version and redo the migration, using the tool here.

    Dmitriy Bobrovskiy
    @Safety1st
    @mawtex I used exactly that tool. Detailed C1 log is here Since it is newly created web site redo the migration is not needed.
    John Simon Brady
    @JohnSBrady_twitter
    Hi I need a bit of advise re the following. Have been using a build Composite C1 3.2 Patch 4 Build 3.2.4813.16821 since 2011 and there is no other developers/builders that can be tracked down in Ireland to help or advise on updating the site to the latest level. Is there anyone who has been through this and could offer advise as to where I should take it from here?
    Marcus Wendt
    @mawtex
    @JohnSBrady_twitter if you can partner up with someone familiar with general ASP.NET development, they should be equipped to assist with the upgrade. In practice the upgrade is very simple and done through the UI as described on #696 - the most tricky parts is ensuring you have a good backup (and you are able to restore this backup if needed) and ensuring you have the 4.7.1 version of .NET available on the webserver. Feel free to write me at marcus.wendt at orckestra.com for more guidance, if needed.
    Marcus Wendt
    @mawtex
    @Safety1st I see relevant log info like "The data interface 'Orckestra.Web.Html.JumbotronSlide' will not work for the SqlDataProvider 'DynamicSqlDataProvider'" but it seems we don't have a log record of what exactly failed here. Did you install a fresh C1 v6.6 and the move to SQL with a connection string that has DBO access? Anything special beyind that? Do you see the tables and data in SQL Server?
    David Bailey
    @DBailey635

    Hi. as some of you know, I'm creating an add-on for the C1 CMS to allow universities to build their websites faster. I have page datafolder datatypes for courses, subjects, and modules that aren't localised. None of their linked data reference datatypes are localised either. When I use a C# function to retrieve the data and output it as XML for other XSLT functions to render, everything works as expected for the default language website (in this case, EN) http://uni.baileyweb.online/courses/modules/IWD101 . However, when I switch over to a secondary language version of the same website (FR) http://uni.baileyweb.online/fr/courses/modules/IWD101 , the same C# function cannot retrieve the records from the page datafolder datatype.

    I've pasted the relevant code to a Gist over at: https://gist.github.com/DBailey635/0782cc76c73c4f6b7452192a0d00f09b , with the error message received printed in a comment below it.

    I don't want to specify the default language using ´new CultureInfo("da-DK")´, but in other projects I've done, where datatypes aren't localised, the default language record (EN) usually displays in the secondary language website (FR). Can anyone see what I'm missing, or suggest how to fix the error? Thanks.

    Dmitriy Bobrovskiy
    @Safety1st
    @mawtex Yes, I installed fresh C1 v6.6 and the move to SQL with a connection string that has DBO access. Nothing special, just simple action of installing add-on and using it. Yes, there are tables and data in the database.
    Marcus Wendt
    @mawtex
    @Safety1st this typically "just works" - the logs indicate the migration went well, then the system restarts and C1 can't access tables ("Table 'Composite_Data_Types_ICompositionContainer' does not exist" messages) - that table got created fine according to the log. Can you share info about the sql server version and the structure of connection string you use?
    @DBailey635 from the code link and the comments there it sounds like you got the problem described here fixed?
    David Bailey
    @DBailey635
    @mawtex I've found a work-around for the problem, as I realised there isn't a good solution within C1. Linking a datatype field directly to a C1 Page, then trying to retrieve the page title only works if the page exists on both the primary language website, and the secondary language site. If it's in one but not the other, the request will fail in the secondary site. I can mitigate for that by either using a try / catch in my C# code and displaying an error message (see my Gist comment), specifying the language code of the page to retrieve (ala new CultureInfo("EN")), or I can create a localised datatype that links to the correct pages in each website. I hope that makes sense.
    David Bailey
    @DBailey635
    OK... a more generic question. When creating an application, is it possible to have a datatype nested within the same datatype? I'd like to show hierarchy in an organisation, like this:
    • Organisation
      Group
      *
      Group (like this)
      ** Team
    Marcus Wendt
    @mawtex

    @DBailey635 There is a point and click way to nest types in trees, there is also a pretty straight forward XML declarative way to do very customized structures and then there is a C# way for fully customized trees - one of the two first ways will for sure serve your purpose. The C# approach is a ton more work.

    Point and click way: Edit the team data type (most deep element to show in tree) and focus on the "Structural representation" and its "Tree grouping" for the fields that reference Group - if you ask for grouping, you get Group folders, showing the related teams. Do the same for group/org.

    XML way: see https://docs.c1.orckestra.com/Console/Tree-Definition-Samples/Two-Level-Data-Folder-App

    C# way: https://docs.c1.orckestra.com/Console/AttachingElements

    David Bailey
    @DBailey635
    @mawtex Perfect! Thanks.
    David Bailey
    @DBailey635
    One more question... Is there a way to capture and use the current logged in user in a Tree Definition? I'd like to only display the logged in user's profile and group. I need something to go where [ActiveUser] is in the code below:
    ´<Filters>
    <ParentIdFilter ParentType="BaileyWeb.University.People" ReferenceFieldName="UserId" />
    <FieldFilter FieldName="UserId" Operator="equal" FieldValue="[ActiveUser]"/>
    </Filters>´
    I also noticed that <NamedParent Name="PerspectivesRoot"> doesn't work as per documentation. Should I log that as a bug?
    Marcus Wendt
    @mawtex

    I also noticed that <NamedParent Name="PerspectivesRoot"> doesn't work as per documentation. Should I log that as a bug?

    Did you first check that you gave yourself permissions to access this new perspective you created? If not, you won't see it. Edit your user or a group you are member off - if you see the new perspective here, give yourself access and reload the console.

    @DBailey635 to filter on something like current user, take a look at https://docs.c1.orckestra.com/Console/Guide-to-Applications/How-to-Filter-Data-Elements#_How_to_Filter_3 - it should be able to read the current user and return a fitting Expression<Func<BaileyWeb.University.People, bool>> (which is a filter)
    Aaron S. Holt
    @TechGuyTN
    Hey guys/gals I am having issues installing. I am using Visual Studio 2019, I get the following errors when attempting to open the CompositeC1.sln. 'Composite\Composite.csproj: The application which this project type is based on was not found. Please try this link for further information: http://go.microsoft.com/fwlink/?LinkID=299083&projecttype=14822709-B5A1-4724-98CA-57A101D1B079' & 'Composite.Workflows\Composite.Workflows.csproj: The application which this project type is based on was not found. Please try this link for further information: http://go.microsoft.com/fwlink/?LinkID=299083&projecttype=14822709-B5A1-4724-98CA-57A101D1B079' . I tried installing with the Webmatrix installer but it just sets for hours doing nothing. Any help would be appreciated.
    Marcus Wendt
    @mawtex

    I'm still using on vs2017 so can't say for sure with vs2019, but check that you have the components listed at https://docs.c1.orckestra.com/Getting-started/System-Requirements - specifically this part:

    Visual Studio 2017 for development

    To work with the source code for C1 CMS you need Visual Studio 2017 with the following "Individual Components" installed:

    .NET
    .NET Framework 4.7.1 SDK
    .NET Framework 4.7.1 targeting pack

    Compilers, build tools, and runtimes
    C# and Visual Basic Roslyn compilers
    MSBuild

    Development activities
    Office Developer Tools for Visual Studio
    Windows Workflow Foundation

    Marc Rey
    @Roxxistic
    Hello guys. I got a question concerning the DataIdMultiSelector widget.
    I am using this widget on a data type "employee" to assign one or more "role"s to each employee. I use a razor function to show all employees in a grid. The roles are shown as a comma separated string per employee.
    I can change the order or the roles when editing an employee. The order is saved, i.e. when I reopen the data instance to edit again, the roles are in the correct order. But they are not necessarily rendered in the correct order in my razor function.
    How can I make sure, the roles are printed in the order manually chosen via DataIdMultiSelector widget?
    Thank you for your support. Marc
    Marcus Wendt
    @mawtex
    @Roxxistic the string field that you populate with the DataIdMultiSelector should have the original order and would (probably) be a list of GUIDs seperated by commas - if you lose the ordering it is most likely because you do a query like "give me the role data for all roles which ID is in this list" - you should then add the routine "and then order the result according to the IDs of the list"
    davejsmith007
    @davejsmith007
    Hi Everyone, I'm also using Visual Studio 2019 and having issues.
    Using either a download of the source from a zip file or via a git clone, the solution opens, compiles and starts up fine, the installation runs thru smoothy but the browser freezes/hangs when I try to edit a page on the resulting site.
    If I use the tagged release download (6.8) it all works fine, so I suspect a compilation / configuration issue specifically with Visual Studio 2019.
    Any ideas?
    Marcus Wendt
    @mawtex

    @davejsmith007 @TechGuyTN I checked and C1 and Vs2019 play nice, you just need to ensure you have the needed components installed:

    Launch the "Visual Studio Installer", and click "Modify" for vs2019.

    On the "Individual Components" tab, make sure ALL these are checked:

    .NET
    .NET Framework 4.7.1 SDK
    .NET Framework 4.7.1 targeting pack

    Compilers, build tools, and runtimes
    C# and Visual Basic Roslyn compilers
    MSBuild

    Development activities
    Office Developer Tools for Visual Studio
    Windows Workflow Foundation

    Then relaunch Vs2019 - "reload" the projects if you still see a project loading error - for me it then loads just fine and all is good.

    Marcus Wendt
    @mawtex
    I made this "information issue" for using VS2019: Orckestra/C1-CMS-Foundation#712
    davejsmith007
    @davejsmith007
    @mawtex Thanks for the quick reply.
    As per my question, I have no issues at all loading, compiling the solution or during the install wizard during initial configuration.
    The problem I have is once logged in any attempt to edit a page's content just causes my browser (Edge and Firefox) to freeze after only showing some of the page content (i.e. no preview of actual content). This happens either when debugging the site in visual studio or when running it outside of visual studio thru IIS.
    toliphant
    @toliphant

    @mawtex

    For that security update from older versions, it says to update by January 2020, but doesn't state if that is January 1, 2020 or January 31, 2020. I am guessing that this upgrade package will disappear unless you are on a paid license at some point, but do you know when this will disappear so I can better figure out my plan of attack for multiple websites, some are taking quite long depending on how old the websites are and how much customization we have done. Thanks.

    Marcus Wendt
    @mawtex
    @toliphant the upgrade packages for C1 CMS 6.7 will stay online "forever" - the January date relates to when we've been told that details on the RCE exploit will be published by @codewhitesec - from what I've seen this will in essence be a step-by-step guide. Protecting your site before this guide is published would be a good idea. You should expect this could happen January 1st, but as mentioned, the upgrade that will get you safe is still online and will stay online.
    toliphant
    @toliphant
    @mawtex Thanks for the quick reply.
    Marcus Wendt
    @mawtex
    @davejsmith007 sorry for misreading your question. I don't experience the issues you describe, so I'm not sure what is going on. Make sure you do not have both IIS and the Vs2019 webserver (iisexpress.exe) running at the same time - having to different processes running off the same folder will create problems. But if you experience the issue with any of the two, it's something different and we'd need more information. More info might be found in the event log or the c1 server log.
    Marc Rey
    @Roxxistic
    @mawtex Hey Marcus. OK, i'll go hunting for such a query then. Thank you for your quick reply! Cheers, Marc
    Marcus Wendt
    @mawtex
    @Roxxistic it could be something as simple as var ordered = queryResult.ToList().OrderBy( f=> theIdStringList.IndexOf( f.Id.ToString() ) );
    where queryResult would be the result from your initial query (where things are not ordered yet). The result should include the Id.