CryptographicException

Author Message
 Posted 5/13/2014 7:54:37 AM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: Awaiting Activation
Last Login: 11/13/2019 6:44:06 AM
Posts: 595, Visits: 3,785
Any ideas what may be causing the (see attachment) error? The error is happening at

'-- Retrieve the global preferences
SFSPreferencesBO.RetrieveSecurityPreferences()

in AppMain.

The application uses CustomDataSerializtion, compression, and encryption. I've checked the encryption keys and vectors in the application and on the server and they match. It's only two application (data sources) that are having a problem. Other applications are running fine with ES. The application runs if I remove the ES connection and connect directly to the database.

-Larry



 SFES_Error.png (10 views, 19.72 KB)
Post #32571
Add to Twitter Add to Facebook
 Posted 5/13/2014 8:01:09 AM
StrataFrame Developer

StrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame Developer

Group: StrataFrame Developers
Last Login: 5/16/2018 3:20:37 AM
Posts: 2,982, Visits: 2,482
Does it happen on any command that you send to the ES?  If you put a plain SELECT in front of the RetrieveSecurityPreferences, does it also die?
Post #32572
Add to Twitter Add to Facebook
 Posted 5/13/2014 8:57:47 AM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: Awaiting Activation
Last Login: 11/13/2019 6:44:06 AM
Posts: 595, Visits: 3,785
Hi Ben,

I traced is down a little further and it's actually failing in the data layer. See attached. The command is

SELECT * FROM [dbo].[SFSPreferences]. Any other select statement gives the same result.

-Larry


 SFES_Error2.png (4 views, 103.50 KB)
Post #32573
Add to Twitter Add to Facebook
 Posted 5/13/2014 9:35:25 AM
StrataFrame Developer

StrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame Developer

Group: StrataFrame Developers
Last Login: 5/16/2018 3:20:37 AM
Posts: 2,982, Visits: 2,482
Can you email me your web.config, datasources.config, and the Program.cs code that sets up your data sources?  I'll see if I can spot what my be awry.
Post #32574
Add to Twitter Add to Facebook
 Posted 5/13/2014 11:12:45 AM
Strategic Support Team Member

Strategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team MemberStrategic Support Team Member

Group: StrataFrame MVPs
Last Login: 6/15/2019 1:08:46 AM
Posts: 1,920, Visits: 21,109
Just a guess here Larry.

Try checking if the MicroFour StrataFrame Enterprise DLLs on the client are on the same version as the ones installed on the server.
Post #32575
Add to Twitter Add to Facebook
 Posted 5/15/2014 7:05:01 AM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: Awaiting Activation
Last Login: 11/13/2019 6:44:06 AM
Posts: 595, Visits: 3,785
Issue resolved (sort of). Whatever is causing the problem is not SF but something in my development environment. I opened the solution in visual studio 2010 on another development system and everything works as it should. I have VS2010, 12 and 13 on my primary development system and the issue is only happening in one application in VS2010 on my primary system. So it appears that VS2010 may be corrupted.

-Larry
Post #32581
Add to Twitter Add to Facebook
 Posted 5/15/2014 7:10:32 AM
StrataFrame Developer

StrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame DeveloperStrataFrame Developer

Group: StrataFrame Developers
Last Login: 5/16/2018 3:20:37 AM
Posts: 2,982, Visits: 2,482
Hrm, that's odd.  Although it could be that if the assemblies weren't in the GAC, the different versions of VS might have different pathing to the referenced assemblies and the wrong version might have been brought in.  If the two versions don't line up, the sequence of data written to the stream would be different than the sequence of data expected to be read from the stream on the other end, and you would receive all kinds of errors, such as the end of stream exception you got.

Anyway, I'm glad you got it working.
Post #32582
Add to Twitter Add to Facebook
 Posted 5/16/2014 5:40:57 AM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: Awaiting Activation
Last Login: 11/13/2019 6:44:06 AM
Posts: 595, Visits: 3,785
The final fix was to uninstall and re-install StrataFrame. I did see an error message when SF was uninstalling say it couldn't find a path, so I'm assuming something got corrupted and re-installing SF clean things up.

-Larry
Post #32585
Add to Twitter Add to Facebook


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.