Why the same files are copied to /Approot and /Siteroot in Windows Azure WebRole?
来源:互联网 发布:淘宝同学课程助手 编辑:程序博客网 时间:2024/05/16 12:09
http://social.msdn.microsoft.com/Forums/is/windowsazuredevelopment/thread/8aa6666d-5b02-493e-9c6b-473355a9afad
There is a way to avoid that, but I would not use it. The reason for having 2 complete copies is the "Full IIS mode", which came out since Azure SDK 1.3. With full IIS mode there are two copies of you application, because:
1. The Full IIS allows you to have more than one site/virtual app in a single web role (pretty neat feature!).Thus there is the need for the "siteroot" folder, where all registered web applications are deployed
2. Your class that implements RoleEntryPoint runs under separate process - WaIISHost.exe, which is the requirement to have the full app sourcein approot.
From the other hand, when you fall back to old times, and decide to use just theHWC mode (Hostable Web Code), you willonly have the approot folder.But you will loose a lot of the IIS functionalities.
You can read more about the change from HWC to Full IIS at this blog post: http://blogs.msdn.com/b/windowsazure/archive/2010/12/02/new-full-iis-capabilities-differences-from-hosted-web-core.aspx
Going back to HWC mode (removing <sites>..</sites> section from your csdef) is the only way to avoid having code duplication.
Please note that this code duplication is *only* for the web roles you have, and only for the main web role application. If you have multiple sites defined,only the main web role will be duplicated. All other sites will be just in the siteroot folder.
- Why the same files are copied to /Approot and /Siteroot in Windows Azure WebRole?
- Compare two files are exactly the same
- given two directory trees how to find which files are the same?
- whether the results are the same of getClass().getName() called in child class and parent class?
- people are able to buy the same products anywhere in the world
- Why are .goutputstream-xxxxx files created in home folder?
- To deal with files in the same file folder with .exe uder UNICODE of VC08
- Duplicate files copied in APK
- Duplicate files copied in APK
- duplicate files copied in apk
- How are the icon files in my application bundle used on iPad and iPhone?
- How are the icon files in my application bundle used on iPad and iPhone
- Why are the letters in the English "alphabet" in the order that they are?
- The source files "*\A.cpp " and "*\A.cpp " are both configured to produce the output file "*\A.obj "
- The source files "*\A.cpp " and "*\A.cpp " are both configured to produce the output file "*\A.obj "
- VC编译错误:The source files "*\A.cpp " and "*\A.cpp " are both configured to produce the output file "*\
- Multinomial Logistic Loss and Cross Entropy Loss are the same
- Using MERGE in SQL Server to insert, update and delete at the same time
- Discriminatively Trained Deformable Part Models + Windows(一)
- Android SDK工具:使用layoutopt进行布局优化
- 迭代最快的Collection
- 大端(Big-Endian)和小端(Little-Endian)
- 索引表简介
- Why the same files are copied to /Approot and /Siteroot in Windows Azure WebRole?
- 观察者模式的使用
- c#基础加强--多态II(接口)
- (优化处理)详细剖析Android Traceview 效率检视工具!分析程序运行速度!并讲解两种创建SDcard方式! .
- showModalDialog参数和使用方法;
- struts2中的request,response,session
- 探讨Oracle数据库的数据导入方法
- flex meunbar使用
- 为应用“瘦身”!给 Android 应用开发者的十个建议