Could not load type system.runtime.compilerServices.CallSite

Kao Xue LIU (SP) 0 Reputation points

system.runtime.compilerServices.CallSite error when accessing Excel by C#

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
2,140 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
5,974 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 41,191 Reputation points

    Hello there,

    Can you share your code so that it might for the community?

    Because the error is generic, it is difficult to detect the source.

    I suggest to check if all involved objects are valid. Another check might be trying to read the cell first.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–