关于将两个Web应用程序连接在一起 [英] regarding linking two web application in one

查看:139
本文介绍了关于将两个Web应用程序连接在一起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将两个Web应用程序(asp.net)合并到一个位于同一个驱动器/文件夹的解决方案中有问题。

给我解决方案......

I have problem with combining two web Application (asp.net)in to one Solution which reside on same drive/Folder..
give me solution...

推荐答案

嗨Gajendra,



两个站点位于同一物理文件夹中没有问题(即使他们留在两个不同的网站,两个虚拟文件夹仍然可以指向同一个物理文件夹。

将两个网站合并为一个没有问题,但这会产生影响:

他们将拥有相同的会话 global.asax 等。



如果您有不同的登录功能,或者如果您在两个站点之间可能存在任何其他重叠,那么合并可能在技术上有效,但会存在逻辑缺陷。



底线是合并两个网站没有任何技术问题,特别是如果它们都是ASP.NET,并且使用了相同的.NET版本等。
>
为了达到这个目的:

1。打开你的某个项目的解决方案。

2。将第二个项目的文件添加到它。

3。将新合并的网站发布到托管位置。



干杯,

Edo
Hi Gajendra,

There is no problem having two sites reside in the same physical folder (even when they stay two different websites, two virtual folders can direct to the same physical folder anyway.
There is no problem merging two sites into one, but that has consequences:
They will have the same Session, global.asax etc.

If you have different login functionality, or if you there might be any other overlap between the two sites, then the merge may work technically but there will be logical flaws.

Bottom line is that there''s no technical problem whatsoever to merge two sites especially if they are both ASP.NET, and have used the same .NET version etc.
In order to achieve this:
1. Open the solution of one of your projects.
2. Add the files of the second project to it.
3. Publish your newly merged website to the hosting location.

Cheers,
Edo


这篇关于关于将两个Web应用程序连接在一起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆