Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Lightswitch SharePoint App Error - DateTime values that are greater than DateTime.MaxValue or smaller than DateTime.MinValue when converted to UTC cannot be serialized to JSON

$
0
0

Hi,

Getting 401.0 Unauthorized error on page SharePointLaunch.aspx asking username and password (Windows Authentication Prompt) when debugging the Lightswitch Sharepoint enabled provider hosted project (High Trust configuration).

The error in Trace.axd is “The error was: 'DateTime values that are greater than DateTime.MaxValue or smaller than DateTime.MinValue when converted to UTC cannot be serialized to JSON.'. User has been denied access to the application”.

Is it due to Geo Location ?

Development environment (everything on same machine):

  • Windows Server 2012
  • SharePoint Foundation 2013
  • Visual Studio 2012 with SharePoint enabled Lightswitch
  • Geo Location is Australia Sydney

SharePoint:

  • Developer site running on HTTPS
  • High Trust environment is configured correctly as I can debug/run basic On Premises SharePoint Apps
  • IssuerId and SSL certificates are correct and configured

Project:

  • Sharepoint enabled Lightswitch project
  • Provider hosted with Full Controls to Web and Site Collection
  • Debug using SSL certificate and IssuerID (High Trust)

Trace Information:



Microsoft.LightSwitch.UserCode[Microsoft.LightSwitch.UserCode][Application:Information][LightSwitchServiceApplication:Initialize] Invoking user method: Application.Application_Initialize
Microsoft.LightSwitch.UserCode[Microsoft.LightSwitch.UserCode][Application:Verbose][LightSwitchServiceApplication:Initialize] A user implemented method does not exist.0.0003670.000367
Microsoft.LightSwitch.UserCode[Microsoft.LightSwitch.UserCode][Application:Information][LightSwitchServiceApplication:Initialize] Execution completed.0.0011480.000781
Microsoft.LightSwitch.SharePointAuthentication[Microsoft.LightSwitch.SharePointAuthentication][Application:Information][SharePointAuthentication:VerifySharePointAccess] User 'TOSHIBA-TAP\admin_azia' attempted to access the application but verification of the user's access to SharePoint host site failed. The error was: 'DateTime values that are greater than DateTime.MaxValue or smaller than DateTime.MinValue when converted to UTC cannot be serialized to JSON.'. User has been denied access to the application4.1425744.141426

Has anyone faced this issue before ? What could be the solution to fix it ?

Thanks
Ahmad Zia


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>