Open maqdk opened 10 years ago
This error is not BMVC related. Just a project configuration issue of some sort. See if this helps or this
I get this error only on the pages where i am using BMVC. See line 10 in my screenshot that is causing this error. The pages where BMVC is not used, there is no error in there.
As you said, it works locally, but not on test. So this is for sure environment configuration issue. This answer might be especially useful in your case. Let me know what's the result after you try it.
Yes, i understand that it is environment issue, but since it appears only with BMVC usage and not anywhere else in application, i would like to find out what is the relation and what needs to be done. I don't have much influence on server configuration at my web host, so this will of course be decisive for me to know if i can continue using BMVC, which i am really very fond of.
I will continue to look myself and will post here if i find any solution or an explanation to it.
It's hard to point you to a solution since I can't reproduce the issue. BMBC uses system.xml 4.0. I'll summer that your project doors the same since this I'd a default, do there should bye no issue with compatibility there. The only thing left that I can think of is updating .net on the test server
I am just checking and reconfirming the project and .net framework configuration. I can see that in my project i have a reference to system.xml.linq version 4.0. But the error that is thrown while using BMVC is missing reference to version 2.0.5.0.
Do you have any idea why?
As I said, try updating .net on the test environment per links provided above. This is all I can think of at the moment.
Just for your info, i have spent 2 days trying to find a solution to this. My web host confirms that framework is up to date and they have version 4.0.30319 of system.xml.linq installed on server.
So, having no other choice left, i have now decided to roll back from BMVC and revert to normal razor syntax so i can go forward with my project.
If you by chance come across this and find any solution, you are welcome to update this issue and I would like to look at using BMVC again.
I thank you for your help.
Hi Dmitry,
Can you take a look at this one:
http://stackoverflow.com/questions/4548511/problem-with-system-xml-linq-asembly
It is exactly the same problem discussed, and the issue being system.xml.linq referenced in a web project. I dont have any reference of it in my project, and errors are only appearing as soon as BMVC is used.
Do you think this error have anything to do with the fact that i am using a trial license of BMVC? Is there in any way system.xml.linq being used with trial licenses?
Thank you for your help.
It looks like in that question\answer the problem was that they were referencing different versions of the system.xml.linq
. One project had 2.0.5 and the other one had 4.0. I think it's not your case
My application is working fine locally, but when i upload it to my host, i get error "Could not load file or assembly System.Xml.Linq.
I am using .net framework 4.0 both on my local environment and at web host. How can i solve this issue?