System.TypeLoadException: Could not load type 'RandomDataGenerator.FieldOptions.FieldOptionsBytes #293

Closed
opened 2025-12-29 15:19:52 +01:00 by adam · 6 comments
Owner

Originally created by @rangerranger on GitHub (Sep 10, 2020).

Trying to integrate Wiremock into a larger project. I have tackled most of the needed packages / dependencies. But I'm currently blocked on this error:

WireMock.Exceptions.WireMockException: Service start failed with error: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.TypeLoadException: Could not load type 'RandomDataGenerator.FieldOptions.FieldOptionsBytes' from assembly 'RandomDataGenerator, Version=1.0.9.0, Culture=neutral, PublicKeyToken=ae5c571d29a3b8d9'.

I have the RandomDataGenerator.Net package installed and reference it in the csproj. I have the Fare package installled and also reference in csproj (not sure if this is necessary, but read on the RandomDataGenerator.Net wiki that Fare is one of the dependencies).

Any help would be great!

Originally created by @rangerranger on GitHub (Sep 10, 2020). Trying to integrate Wiremock into a larger project. I have tackled most of the needed packages / dependencies. But I'm currently blocked on this error: ``` WireMock.Exceptions.WireMockException: Service start failed with error: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.TypeLoadException: Could not load type 'RandomDataGenerator.FieldOptions.FieldOptionsBytes' from assembly 'RandomDataGenerator, Version=1.0.9.0, Culture=neutral, PublicKeyToken=ae5c571d29a3b8d9'. ``` I have the RandomDataGenerator.Net package installed and reference it in the csproj. I have the Fare package installled and also reference in csproj (not sure if this is necessary, but read on the RandomDataGenerator.Net wiki that Fare is one of the dependencies). Any help would be great!
adam added the question label 2025-12-29 15:19:52 +01:00
adam closed this issue 2025-12-29 15:19:52 +01:00
Author
Owner

@StefH commented on GitHub (Sep 11, 2020):

Hello @rangerranger ,

Can you please provide some more details on the .NET version you use, and if it's possible also post the mapping or the c# code you use?

@StefH commented on GitHub (Sep 11, 2020): Hello @rangerranger , Can you please provide some more details on the .NET version you use, and if it's possible also post the mapping or the c# code you use?
Author
Owner

@StefH commented on GitHub (Sep 28, 2020):

Hello @rangerranger, can you please answer my question and provide some more details?

@StefH commented on GitHub (Sep 28, 2020): Hello @rangerranger, can you please answer my question and provide some more details?
Author
Owner

@StefH commented on GitHub (Oct 7, 2020):

Hello @rangerranger, can you please answer my question and provide some more details?

@StefH commented on GitHub (Oct 7, 2020): Hello @rangerranger, can you please answer my question and provide some more details?
Author
Owner

@rangerranger commented on GitHub (Oct 7, 2020):

Apologies, couldn't get back to it due to both work and personal reasons. I
will retry the work in that repo - they are planning to update to NetCore
3.x.

On Wed, Oct 7, 2020 at 11:28 AM Stef Heyenrath notifications@github.com
wrote:

Hello @rangerranger https://github.com/rangerranger, can you please
answer my question and provide some more details?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/WireMock-Net/WireMock.Net/issues/502#issuecomment-705116029,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJDVODTWUK4BBRB5O2ZGKDLSJSXLHANCNFSM4REK4IYA
.

@rangerranger commented on GitHub (Oct 7, 2020): Apologies, couldn't get back to it due to both work and personal reasons. I will retry the work in that repo - they are planning to update to NetCore 3.x. On Wed, Oct 7, 2020 at 11:28 AM Stef Heyenrath <notifications@github.com> wrote: > Hello @rangerranger <https://github.com/rangerranger>, can you please > answer my question and provide some more details? > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/WireMock-Net/WireMock.Net/issues/502#issuecomment-705116029>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AJDVODTWUK4BBRB5O2ZGKDLSJSXLHANCNFSM4REK4IYA> > . >
Author
Owner

@StefH commented on GitHub (Nov 9, 2020):

Hello @rangerranger , did you have time to verify?

@StefH commented on GitHub (Nov 9, 2020): Hello @rangerranger , did you have time to verify?
Author
Owner

@StefH commented on GitHub (Dec 12, 2020):

Hello @rangerranger , did you have time to verify?

Else I'll close this issue within some days.

@StefH commented on GitHub (Dec 12, 2020): Hello @rangerranger , did you have time to verify? Else I'll close this issue within some days.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#293