Ticket T277981
Visible to All Users

NullRefferenceException in the T195734 example

created 10 years ago

[DevExpress Support Team: CLONED FROM T195734: How to use Google Maps in XAF ASP.NET application]
Hi,
I am trying to run this extended example file but getting the attached error.
Please advise.

Show previous comments (1)

    Me too having the same problem (15.1.6, tried in VS2013/2015)
    protected override void AssignDataSourceToControl(object dataSource) {
     //WebWindow.CurrentRequestWindow == nul --> exception
     WebWindow.CurrentRequestWindow.RegisterClientScript(Model.Id + "_markers_script", ConvertToJS(Enumerable.Cast<IGoogleMapsMarker>((IEnumerable)dataSource)), true);
    }

      Hi
      The same problem (version 15.1.6 VS 2013).
      Thanks for your help.

      Dennis Garavsky (DevExpress) 10 years ago

        @Peter, INFO CL: For now you can solve this problem by checking the WebWindow.CurrentRequestWindow on null. We will research the cause of this behavior internally.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.