Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Compile Time Error in Updgrade

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • Compile Time Error in Updgrade
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
JeffBowman
Sisko JeffBowman Sisko
164
ardak
ardak Schneider Alumni (Retired)
34
sesa180908_brid
Commander sesa180908_brid Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to SmartConnector Forum
Solved
sesa237670_brid
sesa237670_brid Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2018-09-05 07:22 AM

0 Likes
2
680
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-09-05 07:22 AM

Compile Time Error in Updgrade

Hi Jeff,

When I Update my old smartconnector extension from V2.2.130 to V2.4.7, I am getting few complie time error.  One of the error is in below code. This code snippet is to get the Id of running update processor:

using (var db = MongooseObjectFactory.Current.GetInstance<IProcessConfigurationDataSource>())

                {

                    IQueryable<ProcessConfiguration> updateProcessorConfig = db.ProcessConfigurations.Where(x => x.Name == ApplicationDefinitions.UpdateProcessorName);

                    ProcessConfiguration updateProcessorConfigVal = updateProcessorConfig.FirstOrDefault();

  if (updateProcessorConfigVal != null)

                    {

                        updateProcessorId = updateProcessorConfigVal.Id;

                    }

                }

ERROR -- CS1061 'IProcessConfigurationDataSource' does not contain a definition for 'ProcessConfigurations' and no extension method 'ProcessConfigurations' accepting a first argument of type 'IProcessConfigurationDataSource' could be found (are you missing a using directive or an assembly reference?)

##Where should I find the correct method? What is the best practice to do code lookup to replace obsolete/change methods usage ?

Thanks!
Neeraj Tomar

Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2018-09-05 07:53 AM

1 Like
1
672
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-09-05 07:53 AM

Hi Neeraj,

In this case what you are looking for is 'db.Items' instead of 'db.ProcessConfigurations'.

With the addition of Endpoint Configurations along with Processor Configurations in 2.3 there were some refactoring done in the core with regards to these interfaces.

In general, if an overload is obsoleted it is marked, but in this case since the whole interface changed, this was not done. So, in this case, your best bet to figure out the new link would have been to inspect the definition of IProcessConfigurationDataSource and then see IDataSource and look at that as well.

Regards,

-Jeff

See Answer In Context

Reply
Replies 2
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2018-09-05 07:53 AM

1 Like
1
673
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-09-05 07:53 AM

Hi Neeraj,

In this case what you are looking for is 'db.Items' instead of 'db.ProcessConfigurations'.

With the addition of Endpoint Configurations along with Processor Configurations in 2.3 there were some refactoring done in the core with regards to these interfaces.

In general, if an overload is obsoleted it is marked, but in this case since the whole interface changed, this was not done. So, in this case, your best bet to figure out the new link would have been to inspect the definition of IProcessConfigurationDataSource and then see IDataSource and look at that as well.

Regards,

-Jeff

Reply
sesa237670_brid
sesa237670_brid Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2018-09-05 08:26 AM

0 Likes
0
672
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-09-05 08:26 AM

That helped ! Thanks.

Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of