Replies: 7 comments
-
Beta Was this translation helpful? Give feedback.
-
Looks like you are using .NET Framework and are having binding redirect issues. This project targets |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
One thing that might help is if you try to create a minimum viable reproducable project. So maybe start with a blank project and keep adding things until you hit the problem. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the advise. |
Beta Was this translation helpful? Give feedback.
-
Cool. Thanks for posting your answer. |
Beta Was this translation helpful? Give feedback.
-
Hello and thank you so much for this project, it is a great help.
In our asp.net ajax project, we've installed the Nuget package in the dev machine and were able to generate the json of an faqPage.
However, when we added the dll and its dependencies to the production server, the first line that refers the Schema.net classes in code cause an error which even a try/catch block does not log and we have no idea where to start.
we have registered all the dependencies in the GAC and added the assemblies to the web.config :
p.s. the first assembly "netstandard" was not referred to in the nuget or anywhere, but we were forced to add it even in the dev machine otherwise nothing could load and the most basic .net objects stopped working and throws error like "unknown class".
the difference between the dev and production is the fact that the dll's are in the Bin folder and not as a reference in the web.config (except for the first 2 lines which are the same). i thought maybe we are referring a wrong version of some of the dlls (the version number of their build differ from the version number they are actually registered with in the GAC, we checked the GAC to know which version to use and which PublicKeyToken to have for each of them),
However, maybe we refer a wrong version in some of them, for example the System.Numerics.Vectors have 2 versions installed, 4.0.0.0 and 4.1.3.0 - which we referred to, but maybe we need to use the older version?
see here:
the problem a i mentioned is that the dll files themselves shows completely different version... see here:
So like i said, when the line:
var faqPage = new FAQPage();
is reached - the production site is redirecting us to the homepage because of some internal error which we don't get to see in the try/catch log at all.
When we comment the code lines that refer to Schema.net, the faq page is loading fine.
please advise.
Thanks a lot,
ilan.
Beta Was this translation helpful? Give feedback.
All reactions