小编joe*_*ger的帖子

Font Face在IIS 8.0中不起作用

我在使用Font Squirrel生成的程序中有一个font-face我无法让它在IIS中运行,它可以在localhost中运行.我将application/font-woff 文章添加到我的MIME类型中,但它仍然不想工作.

Context
--Fonts
----font location
--css files
Run Code Online (Sandbox Code Playgroud)

CSS

@font-face {
    font-family: 'wallStreetFont';
    src: url('Fonts/subway-webfont.eot');
    src: url('Fonts/subway-webfont.eot?#iefix') format('embedded-opentype'),
         url('Fonts/subway-webfont.woff2') format('woff2'),
         url('Fonts/subway-webfont.woff') format('woff'),
         url('Fonts/subway-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
Run Code Online (Sandbox Code Playgroud)

编辑当前MIME

我使用默认的IIS 8 MIME 字体/ x-woff

css iis fonts woff2

117
推荐指数
3
解决办法
6万
查看次数

System.Data.SqlClient.SqlException:用户登录失败

在调试中使用我的项目我没有问题.但是在IIS中运行它我收到此错误:

System.Data.SqlClient.SqlException:用户'domain \name-PC $'登录失败.

堆栈跟踪

[SqlException (0x80131904): Login failed for user 'CAPLUGSLLC\OETINGER-PC$'.]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +6749670
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +815
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4515
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +84
   System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +53
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) +368
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) …
Run Code Online (Sandbox Code Playgroud)

c# iis connection-string sql-server-2012

27
推荐指数
6
解决办法
11万
查看次数

模拟仅在用户特定时才有效

我在使用没有指定用户的模拟访问Web服务时遇到问题.

作品: <identity impersonate="true" userName="DOMAIN\USERNAME" password="MyPassword" />

不起作用

<identity impersonate="true" /> 
Run Code Online (Sandbox Code Playgroud)

在调试时,我使用下面的代码来验证正在使用的域和用户名,它们是.

System.Security.Principal.WindowsIdentity.GetCurrent().Name;
Run Code Online (Sandbox Code Playgroud)

这是我的web.config的更多内容

<authentication mode="Windows" />
<identity impersonate="true" /> 
<authorization>
  <allow users="*" />
  <deny users="?"/>
</authorization>
Run Code Online (Sandbox Code Playgroud)

我正在登录提示,图片如下在此输入图像描述

任何想法为什么它只有在我在web.config中指定用户时才有效?我使用与Domain\Username放入<identity impersonate="true" userName="DOMAIN\USERNAME" password="MyPassword" />中相同的密码登录.我尝试过多个帐户,当我将凭据放入web.config但没有使用身份设置<identity impersonate="true" />和登录时,它们都能正常工作.

编辑 远程服务器返回错误:(403)禁止. 在此输入图像描述

编辑2 一切正常,在调试时,并在包含它托管的IIS的服务器上点击服务,我尝试了多个帐户,他们都工作.一切都在同一个领域

c# model-view-controller web-services web-config

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

.on('animationend webkitAnimationEnd oAnimationEnd') 只触发一次

我有一个动画,动画完成后我使用局部视图来更新数据。 .on('animationend webkitAnimationEnd oAnimationEnd')似乎只是第一次开火。知道为什么会发生这种情况,就像 JQuery 无法识别.Here是我希望它做的事情$('#marqueeTop span')jsfiddle

部分的

<div id="marqueeTop">
    <span class="moveTop">
        @foreach(var item in Model){
            <label>
                @Html.DisplayFor(x => item.GroupName)
                @Html.DisplayFor(x => item.Sales ).....
            </label>   
        }
    </span>
</div>
Run Code Online (Sandbox Code Playgroud)

CSS

#marqueeTop {
    width: 100%;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

#marqueeTop span {
    display: inline-block;
    padding-left: 100%;
    text-indent: 0;
    font-family:wallStreetFont;
}
.moveTop{
    animation: marqueeTop 5s linear infinite;
    animation-iteration-count:1;
}
Run Code Online (Sandbox Code Playgroud)

查询

 $('#marqueeTop span').on('animationend webkitAnimationEnd oAnimationEnd', function () {
    $.get('/Home/GetBookingsTicker', function (response) …
Run Code Online (Sandbox Code Playgroud)

css ajax jquery razor

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

添加向下箭头以选择下拉

你好我正在创建一个MVC Razor网站,我目前有一个风格的下拉框,这是jsfiddle.我无法弄清楚如何添加向下箭头.有任何想法吗?我试过这个,但它对我不起作用.这是我目前的代码

HTML

<div class="dropdown">
    <select>
        <option>Option One </option>
        <option>Option Two </option>
        <option>Option Three </option>
    </select>
</div>
Run Code Online (Sandbox Code Playgroud)

CSS

.dropdown select{
  background:transparent;
   width: 297px;
   padding: 2px;
   font-family:Arial, Helvetica, sans-serif;
   font-size:1.2em;
   font-weight:600;
   color:#fff;
   line-height: 1;
   border: 0;
   border-radius: 0;
   /*Hides the default arrows for Selects*/
  -webkit-appearance: none;
  -moz-appearance: none;
    text-indent: 0.01px;
    text-overflow: '';

  }


.dropdown{
    width: 297px;
    overflow: hidden;
    background: no-repeat right #363636;
    border-top:#575757 1px solid;
    -webkit-border-radius: 4px 4px 4px 4px;
     -moz-border-radius: 4px 4px 4px 4px;
          border-radius: 4px …
Run Code Online (Sandbox Code Playgroud)

html css css3 razor

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

添加新列与添加更多行系统效率

我有一个包含邮政编码及其相关销售人员的表格.我们正在添加一个修改,最终会有多个与每个邮政编码相关联的销售人员.最佳做法是为新销售人员添加新列还是添加更多行?

表中大约有150万邮政编码.

database sql-server

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