mackey wrote:
Now, the mapping file is not found and, yes, there are many, many, post about this but there seems to be only one solution. To compile the mapping file as a embedded resource file. But I use Visual Studio 2005 (.net 2.0) and since I am fairly new to it, I can't find that option where everyone says it should be!
If It is normal VS 2005 web project, then then it is kind of messy... It uses special directories for stuff, like Global_Resources and so on. But I'm not sure if adding file to that directory causes it to be embedded.
Another thing is that in web project the path of assembly might not be the one You except. The assemblies are shadow-copied into temporary location. So, if You load from directpry, better get the ühysical location of request URL and use it. (there is MapPath method to do such mapping... in several classes, including HttpServerUtility, Page and so on)
Another option would be to create a ordinar library assembly for persistent classes and use embedded resources.
Or use Web Application Project
http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx, and include mappins as embedded resources.
Gert