aspnet_compiler 是一个把整个网站进行编译的工具。
运行C:\WINNT\Microsoft.NET\Framework\v2.0.40607>aspnet_compiler -v /djlp1 -p H:\Websites\DljPortal c:\dljp1 之后,
在 c:\dljp1 生成了一个目录,里面有 bin 目录,有data目录,还有其他文件都复制了过去了。
bin目录下多了几个dll文件:__code7jyhe1in.dll __DljPortalltzbmqxr.dll __resources9y3reyon.dll default.aspx.cdcab7d2.compiled global.asax.compiled global.asax7xyenj3t.dll ...
而以前的 default.aspx 现在的内容变成:This is a marker file generated by the precompilation tool, and should not be deleted!
不过这个 c:\dljp1 是不会自动变成 http://localhost/dljp1 的。这还要自己去添加。
web.config 里的信息没有变。 不过这次 codeSubDirectories/
最难得的是global.asax已经失踪了,这个文件将在bin目录下用global.asax.compiled来指定。内容是:
打印 | 张贴于 2004-07-01 17:26:00 | Tag:DotNet AspNet DotNet2学习
留言反馈
I have built a site using Visual Web Developer Express and precompiled it with ASP_Compiler. After uploading the ASP_compiler output files to the production server I get the following message when I go to the site address:
This is a marker file generated by the precompilation tool, and should not be deleted!
Can someone please tell me how to fix this? I don't know very much at all and would appreciate "idiot" level info, ie step-by-step. Many thanks in anticipation.
NB I do not have IIS and don't have the op system CD since my computer is 2nd hand.
就是我希望precompile和动态编译同时使用。有解决方案不?
也就是说:在站点发布的时候,我执行了precompile设置,把所有的ASCX,ASPX都编译成了DLL,但在运行过程中,程序代码可能会动态的从数据库或者别的方式生成一个ASPX或ASCX,再由页面动态调用,请问可行吗?
请问,怎么我编译后,访问web site,页面显示这样
This is a marker file generated by the precompilation tool, and should not be deleted!
出现这个问题的原因是:你没有把 PrecompiledApp.config 这个文件复制到站点中。
鏉╂瑦妲告0鍕椽鐠囨垵浼愰崗椋庢晸閹存劗娈戦弽鍥唶閺傚洣娆㈤敍灞肩瑝鎼存棁顫﹂崚鐘绘珟!”
help me!!
This is a marker file generated by the precompilation tool, and should not be deleted!
不过令人疑惑的是有个选项是设置build folder.何用?:(
为什么不起作用呢?
??这个是什么东西?难道用了这个之后,这些Web App只能放在同名的虚拟目录下面??