Указал "App_Code", прокатило, но в конфиг добавляются только embedded resource. В web приложении установить файл присоединенным нельзя.
Цитата | You can only embed resources in projects that have a dll as their ultimate output. Thus, you cannot embed resources in your web project, unless you are using the new Web Application Project.
|
Можно конечно сделать так
Цитата | Use two projects.
Your first project should be an Assembly project which can contain your domain objects an mapping files. In this project you should be able to select a mapping file and the properties dialog should allow you to change the file to an Embedded Resource.
Your second project can be a web project and you can then reference your first project from it. In this project your configuration can be set up to automatically use the mappings from your other project by using the <mapping assembly="your_first_project" /> tag in the <session-factory> node where your_first_project refers to the project I'm talking about in my last paragraph.
|
Но чего-то жутко не хочется ради этого создавать отдельный проект. Может кто знает как по другому?
Добавлено через 4 минуты и 28 секунд Да и System.Web.UI.WebResourceAttribute сюда не особо-то и прикрутишь, т.к.
Цитата | It is valid only when used on assembly declarations and it is used to enable a specified embedded resource in an assembly for use as a Web resource.
|
Добавлено через 6 минут и 7 секунд
Цитата(Zakonnic @ 8.5.2008, 13:04 ) | Еще можно глянуть Object Browser-ом (Ctrl+Alt+J), выбрав My Solution. |
Solution'a нету, в том то и дело  |