Add Standalone ASP.Net Application Into Existing ASP.Net Website

一个人想着一个人 提交于 2019-12-11 02:37:57

问题


I have a weird question for everyone. I am currently working on a project for a company that has an existing ASP.Net website that they have lost all source code for. I need to add some functionality to the site but they are not willing to pay for a site redesign right now.

Can I deploy my web application to a subdirectory of their website and have it function properly? I have to do this because I need to take advantage of the SSL certificate they have attached to the existing website (unfortunately it is not a wildcard cert).

They are running Windows Server 2008 SR2 with IIS 7.5. The current ASP.Net website uses forms authentication. My web app also uses forms authentication.

Is this doable? I have never ran into it and don't know the answer. Thanks in advance for your help.


回答1:


You can create a sub-folder under the root of the website, then go into IIS Manager, select that folder, right click on it and then click Convert to application. This will allow you to create a separate application for that folder so that it will be treated separately by IIS. You can create a new application alias in the same application pool as the root website but you can also run it in a totally different / new application pool in case you want it to run under a different .NET version.




回答2:


whilst you could deploy your new website it almost certainly will not work as it will most likely use a different version of the framework that the old one.

you could create a new site in iis and deploy your site there and configure iis to use the newer framework version, however you still have two issues:
1. the ssl cert, depending on the cert and your iis config it may not work
2. how do people navigate from the old site to the new one? if you cannot modify the source how will you add links?




回答3:


You could use Reflector from RedGate to decompile it. That would give you all of the source-code back. It would be much safer.



来源:https://stackoverflow.com/questions/15689412/add-standalone-asp-net-application-into-existing-asp-net-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!