【问题标题】:Impossible to launch nop.Admin web project with vs 2010无法使用 vs 2010 启动 nop.Admin Web 项目
【发布时间】:2012-12-22 13:56:51
【问题描述】:

我下载了 nopcommerce v2.65 并遇到了 2 个问题,我设法解决了第一个问题。 第一个问题: 无法调试项目,解决方法是像这样修改 Nop.Admin.csproj 的 ProjectExtensions 部分:

<ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
        <WebProjectProperties>
          <UseIIS>False</UseIIS>
          <AutoAssignPort>True</AutoAssignPort>
          <DevelopmentServerPort>2619</DevelopmentServerPort>
          <DevelopmentServerVPath>/</DevelopmentServerVPath>
          <IISUrl>http://localhost:2451/</IISUrl>
          <NTLMAuthentication>False</NTLMAuthentication>
          <UseCustomServer>False</UseCustomServer>
          <CustomServerUrl>
          </CustomServerUrl>
          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
        </WebProjectProperties>
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>

第二个问题,我没有找到解决方案:

当我启动 Nop.Admin 网站时,我收到以下错误:

La ressource est introuvable。 说明:HTTP 404。La ressource recherchée (ou l'une de ses dépendances) a peut-être été supprimée ou renommée ou bien elle n'est plus disponible temporairement。 Vérifiez l'URL ci-après etsurez-vous qu'elle est correcte。

网址要求:/

这很正常,因为我们必须在 global.asax 文件中定义全局注册路由,所以我创建了 Gloab.asax 文件,然后我写道:

 public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
            RegisterRoutes(RouteTable.Routes);
        }

        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            AreaRegistration.RegisterAllAreas();
            routes.MapRoute(
                "Default",                      // Route name
                "{controller}/{action}/{id}",   // URL with parameters
                new { controller = "Home", action = "Index", id = "" }  // Parameter defaults
            );
        }
    }

-> 现在我在执行中有一个新错误:无法加载全局 asax :(

你能帮帮我吗?

【问题讨论】:

    标签: c# asp.net-mvc asp.net-mvc-3 nopcommerce


    【解决方案1】:

    Nop.Admin 项目无法自行启动。在 Visual Studio 解决方案资源管理器中,您需要将 Nop.Web 设置为启动项目(右键单击项目名称并选择“设置为启动项目”;然后您可以使用 F5 或 Ctl+F5 启动该站点。

    您可以通过以管理员身份登录(使用您提供的凭据在安装过程中创建管理员)并单击标题中的管理链接来访问管理区域。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-11-18
      • 1970-01-01
      • 2019-11-25
      • 1970-01-01
      • 1970-01-01
      • 2023-04-08
      • 1970-01-01
      • 2016-12-16
      相关资源
      最近更新 更多