小编Iam*_*ker的帖子

没有找到入口点的例外

我已经安装了vs2012 (11.0.50727.1),
我开了一个新的MVC4 with .NET 4.5解决方案,
我创建了一个简单的HomeController,因为我想在本地启动它,我收到了这个非常奇怪的错误:
如何解决它?这个错误是什么以及它为什么会发生?

如果您有任何帮助,请提前感谢您.

    Server Error in '/' Application.
Entry point was not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.EntryPointNotFoundException: Entry point was not found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc-4 .net-4.5

29
推荐指数
4
解决办法
3万
查看次数

是否可以在Visual Studio 2013中使用asp.net mvc 6?

可以在Visual Studio 2013中运行asp.net mvc6吗?如果是这样我该怎么办?

如果没有,是否可以这样做?

asp.net-mvc visual-studio visual-studio-2013 asp.net-core-mvc

23
推荐指数
1
解决办法
2万
查看次数

url路由到小写如何?


我在asp.net mvc3上开发了一个Web应用程序,现在我需要制作路由,小写
示例:

 that's what i have:
 http://www.example.com/SubFolder/Category/Index => looks ugly :-)

 that's how i would like it:
 http://www.example.com/subfolder/category/index
Run Code Online (Sandbox Code Playgroud)

我发现这篇文章:http:
//goneale.com/2008/12/19/lowercase-route-urls-in-aspnet-mvc/

我实际上需要使用页面底部的global.asax中的代码.

protected void Application_BeginRequest(Object sender, EventArgs e)   
{
    string lowercaseURL = (Request.Url.Scheme + "://" + 
    HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.Url.AbsolutePath);
    if (Regex.IsMatch(lowercaseURL, @"[A-Z]"))
    {
      lowercaseURL = lowercaseURL.ToLower() + HttpContext.Current.Request.Url.Query;
      Response.Clear();
      Response.Status = "301 Moved Permanently";
      Response.AddHeader("Location", lowercaseURL);
      Response.End();
    }
}
Run Code Online (Sandbox Code Playgroud)

现在的问题是:
什么时候在开发站上使用它的工作是完美的,但当我上传它,生产它不起作用.

在开发站,它只发布,但在生产它有两个:

POST - status: 301 Moved Permanently 
GET  - status: 200 OK
Run Code Online (Sandbox Code Playgroud)

而且我根本没有被重定向到正确的路线.在开发站,它的工作完美.

asp.net-mvc asp.net-mvc-3

9
推荐指数
1
解决办法
3743
查看次数

如何在android中制作可扩展的面板布局?

我在android中做了非常复杂的布局?

我需要两个面板,如果一个扩展另一个扩展,否则,我想做一个像吸水器的行为,但因为我只能在视图中按钮,没有别的我有深陷困境.

在此输入图像描述

这里是我需要帮助的例子,我已经花了3天时间,没有找到答案.

这是我的代码

    <RelativeLayout android:id="@+id/imagesContent" android:orientation="vertical" android:layout_alignBottom="@+id/lhsLogo"
                    android:layout_width="wrap_content" android:layout_height="wrap_content">
        <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="3dp"
                   android:src="@drawable/orange_price_tag" android:layout_toLeftOf="@+id/lhsLogo" android:layout_alignBottom="@+id/lhsLogo" />
        <LinearLayout android:layout_centerHorizontal="true" android:orientation="vertical" android:layout_width="wrap_content"
                      android:layout_height="wrap_content">
            <TextView android:layout_width="fill_parent" android:layout_height="0dp" android:text="50%" android:singleLine="false"
                      android:textColor="#ffffff" android:textSize="17dp" android:id="@+id/discountTypeNumbers" android:layout_weight="1" />
            <TextView android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="????" android:singleLine="false"
                      android:textColor="#ffffff" android:textSize="14dp" android:id="@+id/discountTypeText" />
        </LinearLayout>
    </RelativeLayout>

    <TextView android:id="@+id/detailsTextContent"
              android:layout_below="@+id/imagesContent"
              android:layout_width="fill_parent"
              android:layout_height="200dp"
              android:textSize="11dp"
              android:layout_marginLeft="10dp"
              android:layout_marginRight="10dp"
              android:scrollbars = "vertical"
              android:layout_marginTop="10dp"
              android:text="some textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome textsome …
Run Code Online (Sandbox Code Playgroud)

android android-layout

9
推荐指数
1
解决办法
3万
查看次数

更新Autofac后出现奇怪的异常

我之前有一个MVC4应用程序,我已经更新了Autofac的版本,每件事都运行正常,现在我有这个奇怪的例外.

请帮忙!?

Method not found: 'Autofac.Builder.IRegistrationBuilder`3<!0,!1,!2> Autofac.Builder.IRegistrationBuilder`3.InstancePerMatchingLifetimeScope(System.Object)'.



Line 22:             var builder = new ContainerBuilder();
Line 23:             builder.RegisterFilterProvider();
Line 24:             builder.Register(x => new AuthorizationService()).As<IAuthService>().InstancePerHttpRequest();
Line 25:             builder.Register(x => new HeaderRepository()).As<IUIHeaderRepository>().InstancePerHttpRequest();
Line 26:             builder.Register(x => new PageBuilder()).As<IUPageBuilder>().InstancePerHttpRequest();
Run Code Online (Sandbox Code Playgroud)

堆栈跟踪:

 [MissingMethodException: Method not found: 'Autofac.Builder.IRegistrationBuilder`3<!0,!1,!2> Autofac.Builder.IRegistrationBuilder`3.InstancePerMatchingLifetimeScope(System.Object)'.]
       Autofac.Integration.Mvc.RegistrationExtensions.InstancePerHttpRequest(IRegistrationBuilder`3 registration) +0
       Application.UI.Web.Services.HttpDependencyInjectionResolver.RegisterDependencies() in c:\Users\user\Documents\Visual Studio 11\Projects\MyProject\Application.UI.Web\Services\HttpDependencyInjectionResolver.cs:24
       Application.UI.Web.MvcApplication.Application_Start() in c:\Users\user\Documents\Visual Studio 11\Projects\MyProject\Application.UI.Web\Global.asax.cs:42

    [HttpException (0x80004005): Method not found: 'Autofac.Builder.IRegistrationBuilder`3<!0,!1,!2> Autofac.Builder.IRegistrationBuilder`3.InstancePerMatchingLifetimeScope(System.Object)'.]
       System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9859441
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, …
Run Code Online (Sandbox Code Playgroud)

c# exception autofac asp.net-mvc-4

9
推荐指数
1
解决办法
4904
查看次数

未捕获的ReferenceError:未定义导出和require

我正在使用angularjs和typescript来创建一些应用程序,我遇到了这个我无法解决的错误

这是我的*.ts代码

export var NgApp = new application.Startup();

///<reference path="../../../../../typings/tsd.d.ts"/>
import {NgApp} from "../../bootstrap";



module views.components.home {
    export class HomeComponent {
        public constructor() {
        }

        public static factory():Function[] {
            return [
                () => new HomeComponent()
            ]
        }

    }

}

NgApp.registerComponents(views.components.home,() => this.app.controller);
Run Code Online (Sandbox Code Playgroud)

这是我的GULP任务

let tsResult = gulp.src('src/**/*.ts').pipe(ts({
    module: 'commonjs',
    sourceMap: true
}));

let taskTs = tsResult.js.pipe(gulp.dest('built/'));
Run Code Online (Sandbox Code Playgroud)

这是我的错误:未捕获的ReferenceError:未定义导出

问题是:如何在打字稿中使用像es6这样的导入?我错过了什么?

angularjs typescript ecmascript-6 gulp

8
推荐指数
1
解决办法
2万
查看次数

Dapper和Oracle CRUD问题,如何?

如何让Dapper.NET成为CRUD我的Oracle数据库?

我有一个名为的表:PLAYER_LOG它的标识是由触发器完成的,这里是sql

SELECT SQ_MASTER_SEQUENCE.NEXTVAL INTO tmpVar FROM dual;
:NEW.ID := tmpVar;
Run Code Online (Sandbox Code Playgroud)

我的模型是:

public class PlayerLogStorage : IEntity //-> here is the identity
{       
    public string Cli { get; set; }
    public string PlayerAnswer { get; set; }
    public DateTime InsertDate { get; set; }
}
Run Code Online (Sandbox Code Playgroud)

这是我的插入内容:

 using (IDbConnection ctx = DbConnectionProvider.Instance.Connection)
 {
            ctx.Query<PlayerLogStorage>("INSERT INTO PLAYER_LOG (CLI, ANSWER, INSERT_DATE) VALUES (:Cli, :PlayerAnswer, :InsertDate)", new
            {
                Cli = model.Cli,
                PlayerAnswer = model.PlayerAnswer,
                InsertDate = model.InsertDate
            });
 }
Run Code Online (Sandbox Code Playgroud)

这是例外:

ORA-01008: not …
Run Code Online (Sandbox Code Playgroud)

crud c#-4.0 dapper

7
推荐指数
2
解决办法
8698
查看次数

Docker 拒绝在我的 localhost:3000 端口上工作

这是我的 docker-compose.yml 我试图在我的本地项目上运行 cypress,但它拒绝在端口上运行。我做错了什么?

version: '3.2'
   
# run Cypress tests and exit with command
#   docker-compose up --exit-code-from cypress
services:
  cypress:
    # the Docker image to use from https://github.com/cypress-io/cypress-docker-images
    image: "cypress/included:5.0.0"
    environment:
      - CYPRESS_baseUrl=http://localhost:3000
    # share the current folder as volume to avoid copying
    working_dir: /e2e
     command: "--browser chrome"
     ports:
     - 3333:3000
     volumes:
       - ./:/e2e
Run Code Online (Sandbox Code Playgroud)

compose-docker 的结果:

cypress_1  | 
cypress_1  | Cypress automatically waits until your server is accessible before running tests.
cypress_1  | 
cypress_1  | We will try connecting …
Run Code Online (Sandbox Code Playgroud)

docker docker-compose cypress

7
推荐指数
1
解决办法
1823
查看次数

如何在Windows OS上安装Android NDK?没有任何Unix Linux的简单方法?

我正在努力在Windows上安装Android NDK几天,有人可以通过图像教程解释简单的方法以及如何安装它吗?

我将如何在Android应用程序中使用C / C ++ ???

PS:我不知道如何使用Linux / Unix,所以请不要指给我Linux实现,我已经阅读了其中的所有教程。

Android的NDK另外一个另一个 ....

在此先感谢...任何帮助将不胜感激。

installation android android-ndk

5
推荐指数
1
解决办法
1万
查看次数

在TypeScript中指令,编译(前/后)的等价物是什么?

我有一个问题是什么是指令的等价物:编译(前/后)?

javascript中的示例:

angular.module('app').directive('checkBox', function () {
  return {
      //... my directive options

      compile: function () {
           return function () {
               pre: function (scope) {}
               post: function (scope) {}
           }
      }
  }
});
Run Code Online (Sandbox Code Playgroud)

什么是TypeScript相当于此?

equivalent angularjs typescript angularjs-directive

5
推荐指数
2
解决办法
2574
查看次数