小编Voi*_*miX的帖子

从bin\debug文件夹运行Web应用程序

我正在尝试配置IIS以在bin\Debug目录中查找DLL (而不是bin目录).我尝试使用以下行更新我的web.config:

 <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <probing privatePath="bin\Debug" />
</assemblyBinding>
Run Code Online (Sandbox Code Playgroud)

但是,它仍然没有看到该目录.还有其他我想念的东西吗?

asp.net

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

使用NServiceBus + RabbitMQ对纯RabbitMQ有什么好处?

使用NServiceBus + RabbitMQ对纯RabbitMQ有什么好处?我想它提供了额外的基础设施.但还有什么?

nservicebus rabbitmq

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

错误"没有协议绑定与给定地址匹配......"

我在IIS服务器中托管了2个WCF服务.

这是web.config

<?xml version="1.0"?>
<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="HttpBinding" />
      </basicHttpBinding>
    </bindings>
    <services>
      <service name="BShop.Services.BubensService">
        <endpoint address="http://localhost:9001/BubensService" binding="basicHttpBinding"
          bindingConfiguration="HttpBinding" name="" contract="BShop.Services.IBubensService" />
      </service>
      <service name="BShop.Services.OrdersService">
        <endpoint address="http://localhost:9001/OrdersService" binding="basicHttpBinding"
          bindingConfiguration="HttpBinding" contract="BShop.Services.IOrdersService" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="false" />
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)

当我尝试运行它时,我得到了

没有协议绑定匹配给定地址'http:// localhost:9001/BubensService'.协议绑定在IIS或WAS配置中的站点级别配置.

我在配置中错过了什么?

.net wcf

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

StructureMap死了吗?

最后一次提交是在2011年8月28日

有21个未解决的问题

自八月以来没有任何活动

我怀疑在我的新项目中使用它

你怎么看待这件事?

structuremap ioc-container inversion-of-control

6
推荐指数
2
解决办法
2617
查看次数

TFS Build保持"进行中"状态,没有完成构建错误或成功[TFS 2012]

我创建了一个新的构建定义.

然后"排队新建......"

构建状态将其值更改为"进行中"

就这样 !

没有错误,没有结果

这是活动日志

user1触发SimpleWeb(Test_BuildDeploy)以获取最新源运行0秒(vm-tfs-Controller)

tfs tfs2012

6
推荐指数
1
解决办法
2354
查看次数

如何替换asp.net核心的machinekey?

我的任务很简单 - 在服务器场中的服务器之间共享cookie

我知道使用机器密钥的旧方法在asp.net核心中不起作用,但是有一个DataProtection API

但是,我无法将密钥存储在共享文件夹中(它是DataProtection的默认内置行为)

有没有办法在配置中存储密钥交换数据?(比如在旧的asp.net中)

asp.net asp.net-core

6
推荐指数
1
解决办法
2027
查看次数

FederatedAuthentication.WSFederationAuthenticationModule在运行时为null

我试图在Application_Start()中订阅RedirectingToIdentityProvider事件,但是FederatedAuthentication.WSFederationAuthenticationModule为null

protected void Application_Start()
{
 FederatedAuthentication.WSFederationAuthenticationModule.RedirectingToIdentityProvider += WSFederationAuthenticationModule_RedirectingToIdentityProvider;
}
Run Code Online (Sandbox Code Playgroud)

asp.net wif

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

如何更改具体TreeListNode的字体?

我需要更改XtraTreeList中TreeListNode项的字体

对于标准的TreeViewNode,有Font属性.

c# devexpress xtratreelist winforms

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

未调用WSFederationAuthenticationModule.RedirectingToIdentityProvider事件

我的Global.asax.cs文件中有2个事件

WSFederationAuthenticationModule_SecurityTokenValidatedWSFederationAuthenticationModule_RedirectingToIdentityProvider

Wif引擎不调用WSFederationAuthenticationModule_RedirectingToIdentityProvider.为什么?

public class MvcApplication : System.Web.HttpApplication
{ 
    void WSFederationAuthenticationModule_SecurityTokenValidated(object sender, SecurityTokenValidatedEventArgs e)
    {
        FederatedAuthentication.SessionAuthenticationModule.IsSessionMode = true;
    }


    void WSFederationAuthenticationModule_RedirectingToIdentityProvider(object sender, RedirectingToIdentityProviderEventArgs e)
    {
        //some code
    }
}
Run Code Online (Sandbox Code Playgroud)

这是web.config中的microsoft.identityModel部分

<microsoft.identityModel>
        <service saveBootstrapTokens="true">
          <audienceUris mode="Never">

          </audienceUris>
          <federatedAuthentication>
            <wsFederation passiveRedirectEnabled="true" issuer="http://localhost/dss.web.sts.tokenbaker/" realm="http://localhost/dss.web.frontend" requireHttps="false" />
            <cookieHandler requireSsl="false" />



          </federatedAuthentication>

          <issuerNameRegistry type="Microsoft.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
            <trustedIssuers>
              <add thumbprint="308efdee6453fff68c402e5eceee5b8bb9eaa619" name="servcert" />

            </trustedIssuers>
          </issuerNameRegistry>
        </service>
      </microsoft.identityModel>
Run Code Online (Sandbox Code Playgroud)

asp.net wif

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

使用WSFederationHttpBinding的性能非常糟糕

使用WSFederationHttpBinding我的性能非常差 - 每秒只处理250个请求.

捆绑:

public class CustomFactoryActive : ServiceHostFactory
    {
        protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
        {
            ServiceHost host = new ServiceHost(serviceType, baseAddresses);
            CommonConf.ConfigureServiceHost(host);


            string issuerAddress = ConfigManager.ActiveSTS;
            string issuerMexAddress = issuerAddress + "/mex";

            WSFederationHttpBinding wsFedBinding = new WSFederationHttpBinding();
            wsFedBinding.Security.Mode = WSFederationHttpSecurityMode.Message;
            wsFedBinding.ReliableSession.Enabled = false;

            wsFedBinding.MaxReceivedMessageSize = wsFedBinding.MaxBufferPoolSize = Constants.MaxFileSize;

            XmlDictionaryReaderQuotas quotas = wsFedBinding.ReaderQuotas;
            quotas.MaxArrayLength = quotas.MaxBytesPerRead = quotas.MaxStringContentLength =
                quotas.MaxNameTableCharCount = quotas.MaxDepth = (int)Constants.MaxFileSize;

            var messageSecurity = wsFedBinding.Security.Message;

            messageSecurity.IssuedTokenType = "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1";
            messageSecurity.IssuedKeyType = SecurityKeyType.SymmetricKey;
            messageSecurity.EstablishSecurityContext = false;
            messageSecurity.NegotiateServiceCredential …
Run Code Online (Sandbox Code Playgroud)

c# wcf wif ws-federation

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

EF Code First中多对多关系的问题

我有以下3个表格:

CREATE TABLE [dbo].[Items](
    [ID] [int] IDENTITY(1,1) NOT NULL,
    [Name] [nvarchar](50) NOT NULL)

CREATE TABLE [dbo].[Params](
    [ID] [int] IDENTITY(1,1) NOT NULL,
    [Name] [nvarchar](50) NOT NULL,
    [DisplayName] [nvarchar](50) NOT NULL)

CREATE TABLE [dbo].[Params2Items](
    [ParamID] [int] NOT NULL,
    [ItemID] [int] NOT NULL,
    [ID] [int] IDENTITY(1,1) NOT NULL)
Run Code Online (Sandbox Code Playgroud)

和2个相应的类

public class Item
    {
        public int ID { get; set; }
        public string Name { get; set; }

        public virtual ICollection<ItemParameter> Params { get; set; }
    }


 public class ItemParameter
    {
        public int ID …
Run Code Online (Sandbox Code Playgroud)

ado.net entity-framework

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