Skip to content

Infragistics Community Forum / Web / Ignite UI for ASP.NET Web Forms / ‘Resources.strings’ is inaccessible due to its protection level

‘Resources.strings’ is inaccessible due to its protection level

New Discussion
Dimitris
Dimitris asked on May 23, 2016 8:09 AM

Hi,

I took from samples WebSchedule project in order to create a Sharepoint Web Part.

To accomplish this I created a User Control containing webschedule.

This runs fine as user control in a default.aspx page.

Next step is to add this in Sharepoint. I created a smart part container and I added this user control in my sharepoint site.

But I have the folloing problems :

1. The WebMonthView doesn’t have styles (has white background)

2. When I dbclick on a date the AppointementAdd I get the following error :

Compiler Error Message: CS0122: ‘Resources.strings’ is inaccessible due
to its protection level

Source Error:

Line 30:         {
Line 31:             string array = "<script type='text/javascript'> \r\n var AppointmentDialogStrings = [" +
Line 32:                                 "'" + Resources.strings.JS_AppointmentDialog_Error_CantFindDateChooser + "'," +             //0
Line 33:                                 "'" + Resources.strings.JS_AppointmentDialog_RecurrenceDescriptionLabel + "'," +            //1
Line 34:                                 "'" + Resources.strings.JS_AppointmentDialog_Error_OccurrenceBeforeStartDate + "'," +       //2

 

Source
File:

c:\Inetpub\wwwroot\wss\VirtualDirectories\80\Forms\AppointmentAdd.aspx.cs
Line: 32

 

I appreciate any help

Thank you

D.E.

Sign In to post a reply

Replies

  • 0
    Rupali Jadhav
    Rupali Jadhav answered on May 23, 2016 8:09 AM

    Open up the resource file in design mode and change the access modifier

     

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Dimitris
Favorites
0
Replies
1
Created On
May 23, 2016
Last Post
9 years, 9 months ago

Suggested Discussions

Created by

Created on

May 23, 2016 8:09 AM

Last activity on

Feb 16, 2026 2:52 PM