我的项目可以从Visual Studio运行,但不能从Expression Blend运行 [英] My Project runs okay from Visual Studio, but not from Expression Blend
问题描述
我刚刚购买了表达混合物3.
当我"运行"时我从Visual Studio的项目一切都很好。但是当我"运行项目"时来自Expression Blend我收到了无声错误,我的数据没有通过服务客户端加载。
当我"清理项目"时来自Expression Blend我发现有些项目被标记为错误。即我的ServiceClient(以及我的ValueConverter类)。
服务客户端的错误是:"名称" Service1Client"命名空间中不存在"clr-namespace:SchoolYearRegistration_CS.ServiceReference1"。
这是App.xaml,它指向:
< Application xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation "
xmlns:x =" http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:SchoolYearRegistration_CS_ServiceReference1 =" clr-namespace:SchoolYearRegistration_CS.ServiceReference1" xmlns:d =" http://schemas.microsoft.com/expression/blend/2008 " xmlns:mc =" http://schemas.openxmlformats.org/markup-compatibility/2006 "
x:Class =" SchoolYearRegistration_CS.App"
mc:Ignorable =" d"
>
< Application.Resources>
< SchoolYearRegistration_CS_ServiceReference1: Service1Client x:Key =" Service1ClientDataSource" d:IsDataSource =" True" />
<! - 此处的其他内容 - >
< /Application.Resources>
< / Application>
I just purchased Expression Blend 3.
When I "Run" my project from Visual Studio everything is Okay. But when I "Run Project" from Expression Blend I am getting silent errors and my data is not loading through the service client.
When I "Clean Project" from Expression Blend I find that some items are being flagged for errors. Namely my ServiceClient (and also my ValueConverter classes).
The error for the Service Client goes: "The name "Service1Client" does not exist in the namespace "clr-namespace:SchoolYearRegistration_CS.ServiceReference1".
Here is App.xaml it points to:
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:SchoolYearRegistration_CS_ServiceReference1="clr-namespace:SchoolYearRegistration_CS.ServiceReference1" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:Class="SchoolYearRegistration_CS.App"
mc:Ignorable="d"
>
<Application.Resources>
<SchoolYearRegistration_CS_ServiceReference1:Service1Client x:Key="Service1ClientDataSource" d:IsDataSource="True"/>
<!--Other Stuff in here-->
</Application.Resources>
</Application>
推荐答案
重新安排我的参考后,我在清理项目时不再收到错误,但是,我仍然没有采摘窗口打开时,来自服务的数据。如果我从VS运行,该项目仍然有效,如果我从Blend运行则不行。
这可能是端口号的问题吗?
After rearranging my reference, I'm no longer getting the error when I clean the project, however, I'm still not picking up the data from the service when the window opens. The project still works if I run from VS, just not if I run from Blend.
Could this be an issue with the port number?
这篇关于我的项目可以从Visual Studio运行,但不能从Expression Blend运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!