Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > VersionManager.cs View modes: 
User avatar
Member
Member
enelson-drhorton - 8/3/2012 11:08:08 AM
   
VersionManager.cs
Hello

I am using version 5.5

This code is executing in VersionManager intermittently.

if (tree.UserInfo.UserID == 0)
{
throw new Exception("[VersionManager.SaveVersion]: No user specified.");
}

The exception is being thrown. I am not managing the user information in any way.

Is there any reason why the userid is not being set in 5.5?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/8/2012 6:01:36 AM
   
RE:VersionManager.cs
Hi,

What is the pattern when this code is being executed?

What are the steps leading to the exception?

Best regards,
Juraj Ondrus

User avatar
Member
Member
enelson-drhorton - 8/8/2012 9:46:39 AM
   
RE:VersionManager.cs
New info.

There is no pattern.

It occurs on only one server and no others.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/9/2012 1:54:14 AM
   
RE:VersionManager.cs
Hi,

And what are the steps before this happens - at least some :-)

What is the difference between the servers, CMSs and overall setup?

Best regards,
Juraj Ondrus

User avatar
Member
Member
enelson-drhorton - 8/9/2012 4:01:21 PM
   
RE:VersionManager.cs
The CMS code is the same. It is built and then uploaded to the server. Therefore each server in the farm has the same code. However, only the one server gets the error.

I am not in charge of the servers themselves. I thought of configuration differences, but have been assured that there are not any. It is one of two in a farm.

I do not know of any steps to create it. It occurs intermittently while working in the tree node - and the one server that gets the error is one that has no debugging allowed on it. The number of errors are slowing it down and hence the need to figure out what is wrong.

I have modified the code to add node information and server information whenever the exception is thrown rather than just saying "No User Info". I'll post some example results next time I see the error.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/10/2012 1:11:39 AM
   
RE:VersionManager.cs
Hi,

Thank you for the information. Just to be sure - the web farm servers are setup and configured as described in our documentation, could you please confirm?

the only idea I have right now is that while using the code, the request from server 1 is redirected to server 2 and for some reason the context is not synchronized to the other server - however, if the web farm synchronization is working correctly in other cases, it would be very strange.

Best regards,
Juraj Ondrus

User avatar
Member
Member
enelson-drhorton - 8/10/2012 10:52:36 AM
   
RE:VersionManager.cs
I did find that the application pool pipelines were not set the same. They have both been set to 'Classic' now.

Would this be a possibility?

Trust levels are set the same to 'Full'.

The ASP.NET framework is at 4.0.

Is there anything else I can check?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/10/2012 3:35:34 PM
   
RE:VersionManager.cs
Hi,

Yes, it can have an impact. Also, for version 5.5 and .Net 4 is recommended to use the Integrated pipeline mode instead of the classic.

Best regards,
Juraj Ondrus

User avatar
Member
Member
enelson-drhorton - 8/10/2012 4:36:34 PM
   
RE:VersionManager.cs
Framework 4 is installed, but the application pools are running as framework 2.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/11/2012 12:10:36 AM
   
RE:VersionManager.cs
Hi,

So, the CMSs are also set for .Net 2 or 3.5, right? In this case it is OK to use the classic mode too.

Best regards,
Juraj Ondrus