Add -> Controller throws exception 'Could not load file or assembly 'Glass.Mapper, Version 3.2.0.34'

62 views
Skip to first unread message

Sean Holmesby

unread,
Jan 29, 2015, 12:38:25 PM1/29/15
to glass...@googlegroups.com
This doesn't seem like an issue with Glass Mapper, but more some weirdness with Visual Studio.

In my project we have Glass.Mapper.Sc v3.2.0.34 installed.
When I right click on Controllers, and select Add -> Controller, Visual Studio shows an exception in a dialog:-

Could not load file or assembly 'Glass.Mapper, Version 3.2.0.34, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

We can still add controllers doing Add -> Class, select Controller.

The weird thing about this error, is the mention of v3.2.0.34 for Glass.Mapper.
v3.2.0.34 is the verion of Glass.Mapper.Sc, not Glass.Mapper.
Glass.Mapper doesn't even have that version available....

As I said... this probably isn't specifically a Glass.Mapper issue....more some craziness with Visual Studio...

Anyone know why this may have came about, and how to get Visual Studio stop trying to find this DLL?

Thanks,
Sean
Reply all
Reply to author
Forward
0 new messages