惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
T
Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
Intezer
C
Cyber Attacks, Cyber Crime and Cyber Security
The Register - Security
The Register - Security
量子位
Security Latest
Security Latest
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
MyScale Blog
MyScale Blog
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
Spread Privacy
Spread Privacy
Jina AI
Jina AI
博客园 - 【当耐特】
P
Palo Alto Networks Blog
Last Week in AI
Last Week in AI
SecWiki News
SecWiki News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
G
GRAHAM CLULEY
宝玉的分享
宝玉的分享
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
有赞技术团队
有赞技术团队
T
Tor Project blog
H
Hacker News: Front Page
A
Arctic Wolf
NISL@THU
NISL@THU
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
Engineering at Meta
Engineering at Meta
V
V2EX
N
News and Events Feed by Topic
Webroot Blog
Webroot Blog
Know Your Adversary
Know Your Adversary
P
Privacy International News Feed
I
InfoQ
D
Docker
L
LINUX DO - 最新话题
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
U
Unit 42

博客园 - 空紫竹

Crystal Report Error: Either the Crystal Reports registy key permission are insufficient or the Crystal Reports runtime is not installed correctly SSRS 例子的网站 SSRS配置 JQuery, Silverlight 公用WCF 获取数据库中有默认值的所以字段 sql server xml nodes 的使用 Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0 IIS 时间问题 sql server 创建临时表 系统程序监控软件 Window 7sp1 安装vs2010 sp1 打开xaml文件崩溃 windows 2008 安装 sql server 2008 CSS资源网址 SQL server 2008 安装和远程访问的问题 vss File for <file> (<physical file>) Was Not Found silverlight 报错超时 sql server isnumeric 函数 asp 中的getChunk(img_size) Windows 7 恢复删除的数据
详解Silverlight中PivotViewer控件编程实例
空紫竹 · 2011-08-22 · via 博客园 - 空紫竹

详解Silverlight中PivotViewer控件编程实例

http://www.shijia.com.cn/contents/1237/10994.html?__r=2428 

1. 在IIS7上面如何配置才可以运行。

    a. 首先在MIME Types 中添加:

        .xaml  -- text/xaml

        .dzc    -- text/xml

        .dzi    ---text/xml

    b. web.config 的设置

         View Code

<system.webServer>
    <!-- IIS uses these handler configuration values -->
   <handlers>
        <!--
            A generic handler that responds to requests for any CXML.
            You may leave this section as is, and place your collection factory assemblies into the
            bin folder of this ASP.NET Application for them to be used.
            Alternatively, you may add classes that implement the IHttpHandler (or HttpAsyncHandler)
            interface yourself and replace the generic handler below with the handlers specific to
            your CXML path.
            See the HttpHandler.cs source file for the generic implementation.
        -->
       <add name="CXML" path="*.cxml" verb="GET" type="PivotServer.CxmlHandler"/>

        <!-- Deep Zoom Collection and Deep Zoom Image XML and image handlers -->
      <add name="DZC" path="*.dzc" verb="GET" type="PivotServer.DzcHandler"/>
        <add name="DZI" path="*.dzi" verb="GET" type="PivotServer.DziHandler"/>
        <add name="DeepZoomImage" path="*/dzi/*_files/*/*_*.jpg" verb="GET" type="PivotServer.DeepZoomImageHandler"/>
        <add name="ImageTile" path="*_files/*/*_*.jpg" verb="GET" type="PivotServer.ImageTileHandler"/>
    </handlers>

<!--
    <staticContent>
        <mimeMap fileExtension=".cxml" mimeType="text/cxml" />
        <mimeMap fileExtension=".dzc" mimeType="text/xml" />
        <mimeMap fileExtension=".dzi" mimeType="text/xml" />
    </staticContent>
-->

 注释掉:system.web

里面的

 View Code

   <!-- <httpHandlers>
        <add path="*.cxml" verb="GET" type="PivotServer.CxmlHandler"/>
        <add path="*.dzc" verb="GET" type="PivotServer.DzcHandler"/>
        <add path="*.dzi" verb="GET" type="PivotServer.DziHandler"/>
        <add path="*/dzi/*_files/*/*_*.jpg" verb="GET" type="PivotServer.DeepZoomImageHandler"/>
        <add path="*_files/*/*_*.jpg" verb="GET" type="PivotServer.ImageTileHandler"/>

2. 在IIS6.0如何配制:

    a. 同上。

    b.  和上面相反。

        要注释掉<system.webServer>的所以内容。

        而使用 </system.web>里面的<httpHandlers>中的内容。

    c.  在站点的属性-->Configuration -->Mappings

        添加下面的内容:

        C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll

   

Extension: .cxml
   Limit to: GET
   Script engine: checked
   Verify that file exists: unchecked
    - Executable: C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
   Extension: .dzc
   Limit to: GET
   Script engine: checked
   Verify that file exists: unchecked
    - Executable: C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
   Extension: .dzi
   Limit to: GET
   Script engine: checked
   Verify that file exists: unchecked
At that point, the sample was able to run but no image was displayed. Then I thought that I could also add JPG.

    - Executable: C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
   Extension: .jpg
   Limit to: GET
   Script engine: checked
   Verify that file exists: unchecked