English 中文(简体)
如何部署。 NET在没有虚拟名录的情况下的网络应用
原标题:How to deploy .NET web application without virtual directory

我有一个主机账户,我无法登录到服务器上,我必须使用一个行政小组和FTP来部署一个项目。

我有一个伙伴关系。 NET 2.0Webforms Web Application that I need topeace to a deep 别处,但并不认为我可以在这个文件夹上建立一个虚拟目录。

I can deploy this code/app properly on my own server by going in 以及 creating a virtual directory. Then the app runs fine. Without the virtual directory, I get the same error on the production environment I m trying to deploy to.

他们都是教区错误。

The file /Site.master does not exist.

以及

不能制造 我的Namespace.webserviceName 。

Do I need to build it differently? Publish it differently? Should it be a website instead of a Web Applications? I am several folders deep on a web server that definitely has .NET 以及 definitely works with other apps.

最佳回答

我找到了一种办法,使我的共享东道方的虚拟名录(1&1)。 这在网上档案浏览器中是一个非常隐蔽的特征,我在那里期望这样做。

最后,我没有建立虚拟目录就能够部署这支部队,但不幸的是,它们实际上拥有这一特征。

问题回答

从根本上说,你们改变了东道方。 点。

任何东道机构都提供协会服务。 该网络还应提供各种应用,这些应用是一种特殊的虚拟名录形式。 争取他们的支持。 如果它们不有用,则行得通。 违反合同。

Usually your hosting provider will have a way to convert the Virtual Directory to an Application through some sort of admin panel. If not you can try calling and have them do it for you.

I ve had to deal with this in the past with some hosting providers. Essentially, they give you a single Virtual Directory, which contains a single active "bin" folder for your dlls. The trouble is that all of your paths are completely different when you build a Web application at the root of a project in Visual Studio.

我们在此问题上走的一个途径是,在你的视觉演播室项目内,从制作服务器虚拟名录的根基开始,重建完全相同的组合结构。 管理该项目比以往更加麻烦(如果你在这方面再次担任过纯主义者,则有适当的名称空间),但你可将所汇编的批号放在“/组合”的夹中,并直接将其他文件翻译成正确的文件。 通过这样做,您的项目将了解在制作服务器上将存在的所有档案途径,因此,如<编码>Server.MapPath()将产生正确的结果。

另一种选择是找到一个不同的东道国(由Tom先生提议),但这可能不可行,取决于你的情况。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签