小编G M*_*ros的帖子

500.21模块列表中的模块"ManagedPipelineHandler"错误

我收到错误:

HTTP错误500.21 - 内部服务器错误处理程序"CloudConnectHandler"在其模块列表中有一个错误的模块"ManagedPipelineHandler"

我的web.config文件如下所示:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="CloudConnectHandler" verb="*" path="CloudConnect.aspx" type="CloudConnectHandler" resourceType="Unspecified" />
    </handlers>
  </system.webServer>
  <system.web>
    <customErrors mode="Off" />
    <compilation debug="true" targetFramework="4.0" batch="false">
      <assemblies>
        <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
      </assemblies>
    </compilation>
    <pages>
      <controls>
        <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
      </controls>
    </pages>
        <identity impersonate="true" />
        <authentication mode="Forms" />
  </system.web>
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <providerOption name="CompilerVersion" value="v4.0" /> …
Run Code Online (Sandbox Code Playgroud)

asp.net iis-7

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

找不到类型或命名空间名称"dynamic"

Microsoft Visual Studio 2010 Ultimate(版本10.0.40219.1 SP1Rel).

Microsoft .NET Framework版本4.5.50709 SP1Rel

我正在编译.net framework 4.0.

每当我尝试使用动态或var数据类型时,我都会收到主题行中显示的错误:

找不到类型或命名空间名称"dynamic".

找不到类型或命名空间名称'var'.

我正在尝试使用JsonFX来解析从其他Web服务收到的数据.有时数据将代表"消息",有时它将代表"轨道".根据这个JsonFx文档,我应该能够按照"序列化到/从动态类型(.NET 4.0的默认值)"的示例:"

我在我的网站上添加了一个名为test的页面.下面的代码块来自Test.aspx.cs我试图使用的代码是这样的:

using System;
using System.Text;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using JsonFx;
using JsonFx.Json;
using Microsoft.CSharp;

public partial class Test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string Data = "";
        Data = @"[{""meta"":{""account"":""orbitinte"",""event"":""track""},""payload"":{""id"":410827200397312213,""id_str"":""410827200397312213"",""asset"":""359551031717134"",""recorded_at"":""2013-02-07T15:59:04Z"",""received_at"":""2013-02-07T16:00:37Z"",""fields"":{}}},{""meta"":{""account"":""orbitinte"",""event"":""track""},""payload"":{""id"":410827200409895125,""id_str"":""410827200409895125"",""asset"":""359551031717134"",""recorded_at"":""2013-02-07T16:00:04Z"",""received_at"":""2013-02-07T16:00:37Z"",""fields"":{}}}]";
        Data = @"[{""meta"":{""account"":""orbitinte"",""event"":""message""},""payload"":{""id"":410865901198377173,""thread_id"":null,""parent_id"":410865891354345685,""id_str"":""410865901198377173"",""thread_id_str"":"""",""parent_id_str"":""410865891354345685"",""type"":""message"",""channel"":""com.mdi.services.adminProtocol"",""sender"":""359551031717134"",""recipient"":""@@server@@"",""asset"":""359551031717134"",""b64_payload"":""eyJlcnJvciI6ImNhbm5vdCBwYXJzZSBjb21tYW5kIn0="",""recorded_at"":""2013-02-07T18:34:25Z"",""received_at"":""2013-02-07T18:34:24Z""}}]";


        JsonReader Reader = new JsonReader();
        dynamic Output = Reader.Read(Data);

        Notifications oNotifications = new Notifications();
        oNotifications.ProcessNotifications(Data);
    }
} …
Run Code Online (Sandbox Code Playgroud)

.net c# asp.net json visual-studio-2010

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

将数据加载到组合框中的速度很慢

我有一个带搜索屏幕的VB6应用程序.在搜索中,我有9个组合框.有些组合框只有几个项目,但有些只有几百项.填充数据需要很长时间(几秒钟).

每个组合框配置相同:Sorted = False,Style = 2 - 下拉列表

3个组合框少于20个项目.1有130件商品.4有大约250项1有近700项.

我用类似的代码填充所有九个组合框.

While Not RS.EOF

    cmbX.List(i) = RS("Description")
    cmbX.ItemData(i) = RS("Id")

    i = i + 1

    RS.MoveNext
Wend
Run Code Online (Sandbox Code Playgroud)

我尝试设置Visible = False,但它对性能没有影响.

是否有另一种方法来填充比我现有方法更好的组合框?

vb6 performance combobox

3
推荐指数
2
解决办法
8374
查看次数

标签 统计

asp.net ×2

.net ×1

c# ×1

combobox ×1

iis-7 ×1

json ×1

performance ×1

vb6 ×1

visual-studio-2010 ×1