Missing curent principal.
screenshot
Just created a new project and set it up... Receiving Missing current principal when I try to publish a page or a content type like an event.. not sure what's up, can't seem to find anything in the documentation or by searching the forums. Running 4.1 1395 now but was receiving it with 4.1 1339 earlier.
Hi Tony,
Thank you for contacting us.
Can you provide the stack trace of the error? Also can you give me more information about the actions which led to this error? Did you try to delete a page, or modify a setting in your website?
Greetings,
Victor Velev
the Telerik team
The first thing I did when I installed it was to create a new page with the Events module in one of the content areas and attempt to publish it. That's when I received the error.. I then tried to publish an Event and received the same error. Then I tried to create a new page with nothing on it and publish it and received the error.
I'm not really sure how to get the stack trace... the call stack stays empty when I received that error while debugging in VS2010.
Hello Tony,
We thrown this error only when the current user is null.
var user = SecurityManager.GetCurrentUser(); and the current principal is null. . This means that a user which is responsible for some content on your site is not present in the database. Have you tried to create some content with a specific user then you have removed the user ? Can you try to run the project through our ProjectManager, create an administrator and access the backend. Then try to create a page ( event ).
Best wishes,
Victor Velev
the Telerik team
Hi Victor,
I'm using multi threading. I'm trying to use a manager to retrive content on a different thread. I'm getting "Missing current principal" error. How should I execute the manager with a specified user account?
Thanks,
Duneel
Hello Duneel,
I have answered you in the support ticket you have opened. I hope you don't mind to continue our communication there.
All the best,
Victor Velev
the Telerik team
Alright sorry I haven't gotten back to this yet.. We're just about to fire up our project so I need to give it another try. I installed a new version of Sitefinity 4.1.1574. I created a new filesystem project, launched it with ProjectManager and used SqlExpress and various other defaults. Install worked fine I logged in and immeditely created a new page, added a content block, and hit publish. I received the same Missing current principal error. I then went and created another administrator account from the user management area and logged into it and tried to publish the page with a new content block (because I couldn't save the last one) and received the same error. I then tried to create an event and received the same error. No users have been deleted I just used the first admin user set up with the project and a second admin user.
Hello Tony,
Can you open a support ticket, so I can send you a sample project for testing.
Best wishes,
Victor Velev
the Telerik team
We're seeing this error after attempting to upgrade from 4.0 to 4.4. Was there ever any resolution to this?
Actually it was only happening when I installed the Project Manager and created the project on my workstation running Windows 7 (don't think it was OS specific though). I've had to install/upgrade it on my virtual machine or our staging server except since 4.4 I was able to install 4.4 and upgrade my project with no issues.
Thanks Tony - that gives me a little more to go on. We are doing exactly what you mentioned: upgrading the sitefinity project on our local machine then deploying it to our dev server. Works fine locally but not on the dev server. Both dev and my localhost are pointing to the same dev database, so the database part should be already upgraded.
Since your last note I installed sitefinity 4.4 on our dev server but I haven't reverted the codebase back to 4.0 to do a re-conversion to 4.4 again on the dev server. I'm really hoping I don't have to do that since I've made so many code changes locally just to get 4.4 working for us.
More info:
Hello Ben,
Could you share more information about your dev machine setup, where publishing is throwing errors? Are you using a proxy or some other internal redirection setting ( or a firewall ) which might be affecting the default behaviour of Sitefinity?
Also when upgrading Sitefinity I would like to suggest to perform the upgrade on a local copy of the project ( the files and the database working together on a local machine ) to ensure that the system has all proper permissions over required resources.
Regards,
Victor Velev
the Telerik team
Hi Victor. Thanks for your response.
I was inspired by your question on the proxy server so I remoted into our dev server and opened up the sitefinity admin from a browser there and still received the same errors. We have an entry in the hosts file on the dev server that maps the dev website to 127.0.0.1, so I *think* this test completely bypasses our proxy server and still shows the errors. I'm going to open fiddler2 and see if I can find anything further.
I have no idea if this helps or not but using Fiddler2 I'm seeing the following:
Hello Ben,
Thank you for providing the detailed description of your infrastructure as well as of the issue. However I am pretty sure that the problem is somewhere along the track, as the issue is reproducible only when Sitefinity runs under AppFabric. Unfortunately Sitefinity does not support AppFabric at the moment.
Please consider checking the following thread where a similar issue is discussed:
www.sitefinity.com/.../unable-to-save-or-publish-pages-4-2-1650.aspx
All the best,
Victor Velev
the Telerik team
Thanks for the link Victor. Somehow I missed that in my previous searches and it sounds exactly like my problem. I'm going to try turning off the appFabric workflow persistence option as suggested there...
Update: I stopped the appfabric workflow services for my specific website in IIS then restarted the website & app pool, but still getting the "Missing Principal" errors. I then completely stopped the 2 appfabric services in Admin Tools > Services, restarted the website and still no good.
Hi Ben,
The situation is a bit strange, as in your case you still experience the error. What I can suggest you is to try and move your project on another server instance and set the site on IIS, without any additional services / applications installed. If the site runs flawlessly, you will know that the problem comes from your server environment, blocking Sitefinity from functioning properly.
Regards,
Victor Velev
the Telerik team
Just wanted to update this thread to help anyone in the future. We ended up completely uninstalling Microsoft AppFabric from our dev server and in all the problems mentioned here simply disappeared.
Hello Ben,
Thank you for sharing your experience to the community. I am sure that it will be helpful when bumping into similar issue.
Kind regards,
Victor Velev
the Telerik team