小编Mo *_*sbi的帖子

Ionic Android版本停止运行

在更新Ionic和Cordova CLI后,我的Ionic/Cordova应用程序突然停止在Android上构建.我花了最近两天的时间在谷歌搜索解决方案,但我找不到任何有帮助的东西.我假设它现在与Cordova有关,现在使用Gradle构建而不是Apache Ant.我的Android SDK和构建工具都是22版,Gradle 2.2,Ant 1.9.4,JDK 8.

其他细节:
Cordova CLI:5.1.1
Ionic CLI版本:1.6.1
Ionic App Lib版本:0.3.3
操作系统:Mac OS X Yosemite节点版本:v0.12.7

当我运行ionic build android时,我收到此错误:

FAILURE: Build failed with an exception.

* Where:
Script '/platforms/android/CordovaLib/cordova.gradle' line: 128

* What went wrong:
A problem occurred evaluating root project 'android'.
> No match found

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.426 secs

/platforms/android/cordova/node_modules/q/q.js:126
                    throw e; …
Run Code Online (Sandbox Code Playgroud)

java android cordova android-gradle-plugin ionic-framework

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

查询返回“未实现该方法或操作。” 错误

我有一个 Lambda 表达式来根据外键显示我的数据库中的值列表。初始表达式工作正常

db.seasons.Where(s => s.Sport_SportID.Equals(Id)).OrderBy(a => a.Identifier).ToPagedList(pageNumber, pageSize)
Run Code Online (Sandbox Code Playgroud)

但是,我希望能够搜索此列表以缩小结果范围,因此我已将其添加到我的控制器中以执行此操作

if (!string.IsNullOrEmpty(search))
{
    string[] splitSearchStr = search.Split(' ');

    return View(db.seasons.Where(s => splitSearchStr.All(t => s.Identifier.Contains(t))).Where(s => s.Sport_SportID.Equals(Id)).OrderBy(s => s.Identifier).ToPagedList(pageNumber, pageSize));
}
Run Code Online (Sandbox Code Playgroud)

但是每当我执行我知道会返回结果的搜索时,我都会遇到以下错误

The method or operation is not implemented.

[NotImplementedException: The method or operation is not implemented.]
    MySql.Data.Entity.SelectStatement.Accept(SqlFragmentVisitor visitor) +36
    MySql.Data.Entity.ExistsFragment.Accept(SqlFragmentVisitor visitor) +30
    MySql.Data.Entity.BinaryFragment.Accept(SqlFragmentVisitor visitor) +30
    MySql.Data.Entity.SqlGenerator.FuseSelectWithInnerSelect(SelectStatement outer, SelectStatement inner) +465
    MySql.Data.Entity.SqlGenerator.VisitInputExpression(DbExpression e, String name, TypeUsage type) +152
    MySql.Data.Entity.SelectGenerator.VisitInputExpressionEnsureSelect(DbExpression e, String name, TypeUsage type) +19
    MySql.Data.Entity.SelectGenerator.Visit(DbLimitExpression expression) +34
    MySql.Data.Entity.SqlGenerator.VisitInputExpression(DbExpression e, String …
Run Code Online (Sandbox Code Playgroud)

.net mysql linq asp.net-mvc

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

.net标识忽略LoginPath

标题说真的,我的LoginPath被完全忽略了,所以每当我尝试访问授权页面时,它都会带我到"/ Account/Login"页面,我从来没有在任何地方定义,而不是"/ Accounts"页面我已经定义了.不完全确定为什么会发生这种情况,因为之前我曾经将我重定向到正确的位置,而且我很久没有接触到任何与身份验证有关的事情了

这是我的Startup.Auth.cs

using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using Microsoft.Owin.Security.Cookies;
using App.Models;
using Owin;
using System;

namespace App
{
    public partial class Startup
    {
        public void ConfigureAuth(IAppBuilder app)
        {
            app.CreatePerOwinContext(ApplicationDbContext.Create);
            app.CreatePerOwinContext<ApplicationUserManager>(ApplicationUserManager.Create);
            app.CreatePerOwinContext<ApplicationRoleManager>(ApplicationRoleManager.Create);

            app.UseCookieAuthentication(new CookieAuthenticationOptions
            {
                AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
                LoginPath = new PathString("/Accounts"),
                Provider = new CookieAuthenticationProvider
                { 
                    OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>(
                        validateInterval: TimeSpan.FromMinutes(30),
                        regenerateIdentity: (manager, user) => user.GenerateUserIdentityAsync(manager))
                }
            });

            app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);
            app.UseTwoFactorSignInCookie(DefaultAuthenticationTypes.TwoFactorCookie, TimeSpan.FromMinutes(5));
            app.UseTwoFactorRememberBrowserCookie(DefaultAuthenticationTypes.TwoFactorRememberBrowserCookie);
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

这是我的web.config

<?xml version="1.0" encoding="utf-8"?>
<!--
  For more information on how to …
Run Code Online (Sandbox Code Playgroud)

c# asp.net-mvc-5 asp.net-identity-2

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