locked
Red X appears in IE 11 but not in firefox or chrome - Image Column RRS feed

  • Question

  • I have a Lightswitch app that brings back employee data.

    On one screen, I bring the employee data with no issues. On another screen, I include an employee photo (Image type) with an image viewer. The screen without the photo(s) appears with no issues but the screen displaying the photo shows a red X everywhere in IE 11 (including Compatibility View) but not in Chrome or Firefox. Trace shows everything is okay.

    Trace below and thanks in advance for your help!

    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.000232 0.000232
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][LightSwitchServiceApplication:Initialize] Execution completed. 0.000476 0.000244
    Microsoft.LightSwitch.Security [Microsoft.LightSwitch.Security][Application:Information][SecurityState:User] MOSAID\Larente(Jean-François Larente) 0.022261 0.021785
    Microsoft.LightSwitch.Security [Microsoft.LightSwitch.Security][Application:Information][SecurityState:EffectivePermissions] Effective Permissions: Microsoft.LightSwitch.Security:SecurityAdministration | LightSwitchApplication:CompanyManagement | LightSwitchApplication:EmployeeManagement | LightSwitchApplication:EmployeePhotoEdit | LightSwitchApplication:EmployeePhotoView | LightSwitchApplication:DepartmentApprovers 0.024275 0.002014
    Microsoft.LightSwitch.DataService [Microsoft.LightSwitch.DataService][Application:Information][LightSwitchServiceApplication.ecm:ECM_Employees] Executing 'ECM_Employees' 0.024579 0.000304
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_Employees:CanRead] Invoking user method: ecmService.ECM_Employees_CanRead 0.025280 0.000701
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Verbose][ecm:ECM_Employees:CanRead] A user implemented method does not exist. 0.025451 0.000171
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_Employees:CanRead] CanRead returned 'True'. 0.025614 0.000163
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:Query:Executing] Invoking user method: ecmService.Query_Executing 0.026054 0.000440
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Verbose][ecm:Query:Executing] A user implemented method does not exist. 0.026216 0.000163
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:Query:Executing] Execution completed. 0.026376 0.000160
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_Employees:Filter] Invoking user method: ecmService.ECM_Employees_Filter 0.030241 0.003864
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Verbose][ecm:ECM_Employees:Filter] A user implemented method does not exist. 0.030473 0.000232
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_Employees:Filter] Execution completed. 0.030631 0.000158
    Microsoft.LightSwitch.DataService [Microsoft.LightSwitch.DataService][Application:Information][LightSwitchServiceApplication.ecm:ECM_Employees:DataProviderQuery] value(System.Data.Objects.ObjectQuery`1[LightSwitchApplication.Implementation.ECM_Employee]).MergeAs(AppendOnly).Where(it => (it.Active == True)).LongCount() 0.031259 0.000628
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_DepartmentLookups:CanRead] Invoking user method: ecmService.ECM_DepartmentLookups_CanRead 0.038693 0.007433
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Verbose][ecm:ECM_DepartmentLookups:CanRead] A user implemented method does not exist. 0.038904 0.000211
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_DepartmentLookups:CanRead] CanRead returned 'True'. 0.039065 0.000161
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_EmployeePhotos:CanRead] Invoking user method: ecmService.ECM_EmployeePhotos_CanRead 0.039486 0.000422
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Verbose][ecm:ECM_EmployeePhotos:CanRead] A user implemented method does not exist. 0.039647 0.000161
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_EmployeePhotos:CanRead] CanRead returned 'True'. 0.039803 0.000155
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_CompanyLookups:CanRead] Invoking user method: ecmService.ECM_CompanyLookups_CanRead 0.040480 0.000677
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Verbose][ecm:ECM_CompanyLookups:CanRead] A user implemented method does not exist. 0.040658 0.000179
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_CompanyLookups:CanRead] CanRead returned 'True'. 0.040817 0.000159
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_DepartmentLookups:Filter] Invoking user method: ecmService.ECM_DepartmentLookups_Filter 0.041657 0.000840
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Verbose][ecm:ECM_DepartmentLookups:Filter] A user implemented method does not exist. 0.041839 0.000182
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_DepartmentLookups:Filter] Execution completed. 0.041990 0.000151
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_EmployeePhotos:Filter] Invoking user method: ecmService.ECM_EmployeePhotos_Filter 0.042303 0.000313
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Verbose][ecm:ECM_EmployeePhotos:Filter] A user implemented method does not exist. 0.042492 0.000189
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_EmployeePhotos:Filter] Execution completed. 0.042646 0.000154
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_CompanyLookups:Filter] Invoking user method: ecmService.ECM_CompanyLookups_Filter 0.042918 0.000271
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Verbose][ecm:ECM_CompanyLookups:Filter] A user implemented method does not exist. 0.043078 0.000161
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:ECM_CompanyLookups:Filter] Execution completed. 0.043227 0.000149
    Microsoft.LightSwitch.DataService [Microsoft.LightSwitch.DataService][Application:Information][LightSwitchServiceApplication.ecm:ECM_Employees:DataProviderQuery] value(System.Data.Objects.ObjectQuery`1[LightSwitchApplication.Implementation.ECM_Employee]).MergeAs(AppendOnly).Where(it => (it.Active == True)).OrderBy(p => p.LastName).ThenBy(p => p.FirstName).ThenBy(p => p.ID).Skip(0).Take(15).Select(p => new ExpandedWrapper`5() {ExpandedElement = p, Description = "ECM_DepartmentLookup,Manager,ECM_EmployeePhoto,ECM_CompanyLookup", ReferenceDescription = "ECM_DepartmentLookup,Manager,ECM_EmployeePhoto,ECM_CompanyLookup", ProjectedProperty0 = p.ECM_DepartmentLookup, ProjectedProperty1 = p.Manager, ProjectedProperty2 = p.ECM_EmployeePhoto, ProjectedProperty3 = p.ECM_CompanyLookup}) 0.044034 0.000807
    Microsoft.LightSwitch.DataService [Microsoft.LightSwitch.DataService][Application:Information][LightSwitchServiceApplication.ecm:ECM_Employees:QueryExecuted] The query returned 15 results. 0.638721 0.594687
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:Query:Executed] Invoking user method: ecmService.Query_Executed 0.639255 0.000533
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Verbose][ecm:Query:Executed] A user implemented method does not exist. 0.639423 0.000169
    Microsoft.LightSwitch.UserCode [Microsoft.LightSwitch.UserCode][Application:Information][ecm:Query:Executed] Execution completed. 0.639586 0.000162

    Friday, July 18, 2014 12:29 PM

Answers

  • Hi,

    Clean and rebuild your current Project (Right-click > Clean, Right-click Rebuild respective) and see if that makes any difference at all. 

    If you have any trouble regarding Red X,  follow the tutorial below.

    http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx

    If you want to add image to Image Viewer, you can add static images and text to the screen as local properties via the Add Data Item dialog and then lay them out in the content tree by dragging them from the view model. click “Add Data Item”, select Local Property, set the type to Image.

    Here is a sample for you.

    Adding Static Images and Text on a LightSwitch Screen

    Regards


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    • Edited by Angie Xu Monday, July 28, 2014 7:06 AM edit
    • Marked as answer by Angie Xu Monday, July 28, 2014 7:06 AM
    Wednesday, July 23, 2014 9:27 AM