Hi
 
(Sorry Larry, but I need a more elaborate explanation)
 
I almost have everything configured and compiled the way I wan't it... but 1 thing is missing.
I have all my resources files compiled into my .dll, including Providers.config. And it's working...
I wan't to be able to distribute the .dll to my colleagues, but only the .dll and the Properties.xml file. This means my SqlMap.config needs embedding too...
 
I have compiled SqlMap.config into my .dll file, but I can't seem to get .NET (my webapp) to look for it embedded, instead of looking in the directory where web.config resides... (root dir)
 
How do I telle my webapp to look for SqlMap.config embedded in BudgetModel.DataMapper.dll instead og my root directory?
 
Larry told me something like:
 
XmlDocument sqlMapConfigResource =
Resources.GetEmbeddedResourceAsXmlDocument("SqlMap.Config,
vendorinquiry");
 
But I don't quite understand this... Should this be placed in my .dll file somewhere? in Session_Start / Application_Start? I'm a bit confused. Is this all the code needed? If it is, why do I need the "XmlDocument sqlMapConfigResource =" part?
 
If I get this working, I'll try to find the time to follow Larry's request on updating the Wiki with the information I gathered from this question, and all my previous questions ;o)
 
/morten

Reply via email to