Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm using below code to read and write to the xlsx sheet using NPOI
- Below code works but it's trowing handled [System.MissingMethodException] exceptions

Using opening a file stream for reading / writing has been the only way I can write the sheet information back to the xlsx file ???
I don't think the method is missing for opening a stream ...again its working

how can I make this work - without getting the exceptions?

Dim Worksheet_FileStream As FileStream = New FileStream(WorkSheet_path, FileMode.Open, FileAccess.Read)
               XLSX_WORKBOOK = New NPOI.XSSF.UserModel.XSSFWorkbook(Worksheet_FileStream)
               Worksheet_FileStream.Close()


What I have tried:

different methods to open the file
Posted
Comments
Dave Kreskowiak 2-Dec-23 19:27pm    
The best source of information and support on a 3rd party library is the people who wrote the library. Their discussion forums are at nissl-lab/npoi · Discussions · GitHub[^].

1 solution

Please, read this: https://stackoverflow.com/questions/8058832/system-missingmethodexception-method-not-found[^].
It could be a problem with:
- duplicated name of method,
- obslolete NuGet package,
- etc.

I'd suggest to read this also: MissingMethodException Class (System) | Microsoft Learn[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900