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

推荐订阅源

爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
MongoDB | Blog
MongoDB | Blog
Martin Fowler
Martin Fowler
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
B
Blog
U
Unit 42
B
Blog RSS Feed
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
腾讯CDC
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Visual Studio Blog
博客园 - 聂微东
MyScale Blog
MyScale Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
Engineering at Meta
Engineering at Meta

博客园 - 龙少爷

将博客搬至CSDN 偶遇 Lc.exe已退出代码为-1 安装CentOS时,显示 NET:Registered protocol family 2 Nunit2.6.2调试.net4类库 清除SqlServer2008的日志 DomainDataSource的自动刷新 使用dataInput:DescriptionViewer对输入的数据进行校验 android程序连接后端web service时,提示:Permission denied 设置XP系统的自动登录 chrome浏览器的迅雷插件 cmd中更换用户权限 使用WCF Ria取得子表的数据,一直为null SilverLight中使用WCF Ria出现的问题empty domain service class linq的表关系解决办法 在Java中使用Hibernate,使用不同数据库服务名 将固定字符分隔的内容转换为数组 Flex中TabBar与ViewStack 使用ApdComPort 拖动控件
使用WCF RIA服务支持ASP.NET验证
龙少爷 · 2012-01-10 · via 博客园 - 龙少爷

为了在客户端访问到服务类,需要在app.xml中添加服务作为一个应用程序级别的资源:

<Application.ApplicationLifetimeObjects>
    <app:WebContext>
        <app:WebContext.Authentication>
            <services:FormsAuthentication />
        </app:WebContext.Authentication>
    </app:WebContext>
</Application.ApplicationLifetimeObjects>

否则程序提示:WebContext 的当前实例不可用。必须实例化 WebContext 并将它添加到默认 App 构造函数中的 Application.ApplicationLifetimeObjects。

posted on 2012-01-10 20:29  龙少爷  阅读(275)  评论(0)    收藏  举报

刷新页面返回顶部