Telerik Sitefinity is an ASP.NET 2.0-based Content Management System (CMS) that enables the construction of dynamic, fully editable Web sites. Sitefinity provides the tools for quick and easy construction of a wide variety of attractive and functional Web sites.
Question:"Telerik.Sitefinity.Security.SecurityDemandFailException" exception while trying to create and upload the document to sitefinity's document library
Description:I am getting following exception while trying to upload document to sitefinity's document library Telerik.Sitefinity.Security.SecurityDemandFailException Telerik.Sitefinity.Libraries.Model.DocumentLibrary, Telerik.Sitefinity.Model was not granted ManageDocument in Document for principals with IDs 00000000-0000-0000-0000-000000000000 [Image] I am using following method and it is throwing exception while I am trying to set its parent library as seen in the above screenshot public static void CreateDocumentNativeAPI(Guid masterDocumentId, string parentDocumentLibraryUrlName, string documentTitle, Stream documentStream, string documentFileName, string documentExtension) { LibrariesManager librariesManager = LibrariesManager.GetManager(); Document document = librariesManager.GetDocuments().Where(d => d.Id == masterDocumentId).FirstOrDefault(); if (document == null) { //The document is created as master. The masterDocumentId is assigned to the master version. document = librariesManager.CreateDocument(masterDocumentId); //Set the parent document library. DocumentLibrary documentLibrary = librariesManager.GetDocumentLibraries().Where(d => d.UrlName.ToLower() == parentDocumentLibraryUrlName).SingleOrDefault(); document.Parent = documentLibrary; //Set the properties of the document. document.Title = documentTitle; document.DateCreated = DateTime.UtcNow; document.PublicationDate = DateTime.UtcNow; document.LastModified = DateTime.UtcNow; document.UrlName = Regex.Replace(documentTitle.ToLower(), @"[^\w\-\!\$\'\(\)\=\@\d_]+", "-"); document.MediaFileUrlName = Regex.Replace(documentFileName.ToLower(), @"[^\w\-\!\$\'\(\)\=\@\d_]+", "-"); //Recompiles and validates the url of the document. librariesManager.RecompileAndValidateUrls(document); //Upload the document file. librariesManager.Upload(document, documentStream, documentExtension); //Save the changes. librariesManager.SaveChanges(); //Publish the DocumentLibraries item. The live version acquires new ID. var bag = new Dictionary<string, string>(); bag.Add("ContentType", typeof(Document).FullName); WorkflowManager.MessageWorkflow(masterDocumentId, typeof(Document), null, "Publish", false, bag); } }
Posted by: Khalid Abbas | Posted on: Jan 25, 2023
Question:Made a fresh deployment of a site developed using sitefinity ,its backend started throwing "IIS Detailed Error - 404.0 - Not Found"
Description:I have a task to deploy an old sitefinity project, developed on sitefinity 7 and I have deployed it successfully but when I went to its backend link to verify that everything is working fine , unfortunately its backend started throwing "IIS Detailed Error - 404.0 - Not Found" and it doesn't allow me to go on any backend link.
Posted by: Sam Smith | Posted on: Jul 02, 2019
Question:how to create a custom widget to display details for a dynamic module item ,which will show details against UrlName?
Description:I have tried creating a custom detail widget in which I am getting item details against UrlName property and dropped that newly created widget on my detail page but when I am appending UrlName after my detail page url it redirects me to error page 404 instead of passing the UrlName to my widget's code behind. I am using sitefinity 8 (project built using asp.net web forms). is there a way that will allow me to pass UrlName after my details page url.(similar to news detail using default widget)
Posted by: Khalid Abbas | Posted on: Jun 20, 2019
Question:setting up listing and detail widgets on the same page sitefinity, having issue of opening details on both widgets
Description:I have tried setting up listing and detail widgets for all (i.e blog, news etc ) sitefinity's default widgets on the same page, having issue of opening details on both widgets , it is working fine when there is no detail url appended only the listing widget show the listing and details widget empty but when click on details link it appends the details url (UrlName of the details item) and both widgets start displaying the details of the item. i.e same details expended multiple times on the page. Let me know if this is the sitefinity bug or am I missing any settings?
Posted by: Khalid Abbas | Posted on: Jun 14, 2019
Question:Sitefinity's Default list (mvc) widget disappeared on news details page?
Description:I have to show Listing using the sitefinity's default List widget on my news details page where my list widget disappeared because of news detail's url because my list widget also consider it as details page while I have to show listing only. To resolve this error I have used the article . And this is working fine in case off multiple news widgets i.e one to always display listing and other to display details but same did't work in case of list widget.(I am using mvc widgets for both news and List,with Sitefinity 10.1.6502.0) Need your help!
Posted by: Tabish Usman | Posted on: Jan 24, 2018
Question:Shared Content block (MVC) throwing error on hosting environment
Description:In My project I have used many shared content block (MVC), it throws error when using the mvc shared content block and open it to edit and close it without changing anything in it. I have shared the following steps as well as error on browser's console. step1 step2 step3 step4 step5 ErrorOnConsole
Posted by: Tabish Usman | Posted on: Jan 09, 2018
Question:Type is not resolved for member 'Microsoft.IdentityModel.Claims.ClaimsPrincipal,Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Description:I have opened my old sitefinity project and geting below error. kindly help to identify the issue. Type is not resolved for member 'Microsoft.IdentityModel.Claims.ClaimsPrincipal,Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Posted by: Khalid Abbas | Posted on: Nov 01, 2017