My problem was that in project.json I had links without a library version, just empty lines. It works under Visual Studio, but not when working without VS. I had such links because in RC I did not add a link to the context menu, so I added it manually, and it worked. So, here is the step to configure the website to work in IIS:
1) Wrap projects without DNX with the "dnu wrap" command
2) Add the link from the DNX project to the project without DNX and make sure that you have the correct version in project.json (the version must be the same as in wrap \ yourproject \ project.json). Here is an example:
"frameworks": { "dnx46": { "dependencies": { "MyLib": "1.0.0-*" } }
3) Publish your site with dnu posting
dnu publish .\src\Web --out <outputfolder>
4) Publish again with the runtime parameter. This runtime is copied to the output folder. But the wwwroot folder was not created this time, itโs good that we already published in step 3 ;-). You can change the order of steps 3 and 4
dnu publish .\src\Web --out <outputfolder> --runtime dnx-clr-win-x64.1.0.0-beta7
5) Go to outputfolder\wwwroot\web.config and enter the values โโfor 2 parameters in the appsettings: dnx-version and dnx-clr. Here is an example:
<appSettings> <add key="bootstrapper-version" value="1.0.0-beta7" /> <add key="runtime-path" value="..\approot\runtimes" /> <add key="dnx-version" value="1.0.0-beta7" /> <add key="dnx-clr" value="clr" /> <add key="dnx-app-base" value="..\approot\src\Web" /> </appSettings>
6) Create a new website in IIS, select the application pool with .Net v4.0 runtime
7) Direct your new website to the folder \ wwwroot
8) Make sure everything works