小编Fle*_*lea的帖子

使用Windows身份验证时,MVC5重定向到Login.aspx

从MVC 4升级到MVC 5后,我的应用程序(从Visual Studio中启动时)会出现以下错误.值得注意的是,我在同一个项目中托管MVC5和WebAPI2项目,因为可能存在干扰.我还安装了dotnetopenauth nuget包(我已经删除了):

Server Error in '/' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /login.aspx
Run Code Online (Sandbox Code Playgroud)

我不确定为什么会这样,因为过滤器或控制器上没有设置授权属性.

Global.asax中:

    public class MvcApplication : HttpApplication {

    protected void Application_Start() {
        IDependencyInjectionBuilder dependencyInjectionBuilder = new DependencyInjectorBuilder();
        var builder = new ContainerBuilder();

        builder.RegisterControllers(typeof(MvcApplication).Assembly); …
Run Code Online (Sandbox Code Playgroud)

c# asp.net-mvc dotnetopenauth asp.net-mvc-5

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

Kubeadm和主节点上的Pod调度风险(Pod总是等待)

在关于使用kubeadm创建群集的kubernetes文章的同时,当我尝试安装的AddOn pod(Nginx,Tiller,Grafana,InfluxDB,Dashboard)始终处于Pending状态时,我被困住了.

检查消息kubectl describe pod tiller-deploy-df4fdf55d-jwtcz --namespace=kube-system导致以下消息:

Type     Reason            Age                From               Message
----     ------            ----               ----               -------
Warning  FailedScheduling  51s (x15 over 3m)  default-scheduler  0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate.
Run Code Online (Sandbox Code Playgroud)

当我从主隔离部分运行命令时kubectl taint nodes --all node-role.kubernetes.io/master-,AddOns将按预期安装.

此时我只能怀疑(因为它们已经安装在主节点上),原因是我还没有将工作节点连接到集群,而调度程序还没有安排pod.

该文档指出"出于安全原因,您的群集不会在主服务器上安排pod".我知道这是一个非生产环境,因此在这种情况下几乎没有风险但是在生产集群中消除污染的风险是什么?

后续行动:如果这是一个风险,我该如何重新添加该污点,以便我可以卸载AddOn pod并尝试让调度程序在我的工作节点上安装它们?

环境详细信息:操作系统 - CentOS 7.4.1708(核心)Kubernetes版本 - 1.10

kubernetes centos7 kubeadm

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

创建持久卷导致 storageclass.storage.k8s.io“快速”找不到

我使用 kubeadm 在两个 Centos7 虚拟机上安装了 kubernetes。

我正在尝试遵循示例:使用状态集部署 CassandraScalable-Cassandra-deployment-on-kubernetes示例。

创建本地卷可以工作,但kubectl get pvc始终会导致状态为Pendingkubectl descrive pvc <*pvc name*>结果出现以下警告:

Events:
Type     Reason              Age                   From                         Message
----     ------              ----                  ----                         -------
Warning  ProvisioningFailed  54s (x16854 over 2d)  persistentvolume-controller  storageclass.storage.k8s.io "fast" not found
Run Code Online (Sandbox Code Playgroud)

我不确定如何创建“快速”存储类以使卷能够成功创建并完成示例。

kubernetes kubeadm kubernetes-pvc

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

从格式化字符串中提取电话号码正则表达式

鉴于电话号码都是这种格式:

(999) 999-9999 Ext.9999"
Run Code Online (Sandbox Code Playgroud)

我想把所有东西都归还给第二个空间,例如:

(999) 999-9999
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

.net c# regex phone-number

0
推荐指数
1
解决办法
1118
查看次数