 |
 |
Index ‹ Visual Studio 2008 ‹ Windows Communication Foundation ("Indigo")
|
- Previous
- 1
- Windows Communication Foundation ("Indigo") Using WCF for database operations
Hi
I am working on a distributed architecture based on SOA model.
I have my front end calling a WCF proxy and I need the WCF to handle data base related operations.
I also have in mind to make use of typed datasets and perform all operations through it like select, insert, update,delete.
I also have a Data Access Layer which specifically does the work of handling database operations and my plan is to make the WCF communicate with the DAL.
Can anyone verify if my approach is correct or suggest and other approach to handle database related operations using WCF and a combination of Typed data sets.
Any working samples would also be of help.
- 2
- Visual Studio Guidance Automation Toolkit Linking DSL Files
Hi All,
I will try to be as brief as possible. I've been making a DSL project for 2 months now. And somehow my application need to access the inner-structure of Visual Studio. I went to DSL forum to solve my problem, but someone pointed me to this forum. I hope there is someone here who can help me out.
I dont know if my first question is related to GAT. When I run my DSL project I can add an item in Experimental Window by left-clicking the Debugging in solution explorer and then a window with templates appears. There I can choose my DSL template for the file I want to add. My question is, how can I perform this by only clicking a button I made by myself How can I show the Add New Item Template window by clicking my button
And the second one, how can I link DSL files in my project Let's say I add two new DSL files; test1.mydsl and test2.mydsl. How can I link these two files For instance, in test1.mydsl I make the relation between System1, System2, and System3. And in test2.mydsl the full diagram of System1 is specified.
Any help will be appreciated. Thanks!
Herru
- 3
- Visual Studio Extensibility Autogenerate exception comments?First of all, this might be in the wrong subforum, but I didnt find any better, anyways...
Is there a way to "automatically generate" the Exception comments (i.e. "/// <exception cref="ArgumentException"></exception>")
A small example
/// <summary> /// Example method /// </summary> /// <param name="file">My File</param> void f(string file) { StreamWriter writer = new StreamWriter(file); }
Is there any key combinations or predefined macros to add the exceptions thrown by StreamWriter(string) (the ones specified in its comment) to my methods comment
- 4
- 5
- Visual Studio Source Control and SourceSafe Too much network I/O
Hi All... I'm running Visual Studio with Sourcesafe 6.0. I've just loaded a project from sourcesafe. When I go into Windows Explorer and browser to where the project is stored, it looks like all the files are there. But when I try and open the web.config file from the solution explorer, the network traffic goes through the ceiling and the Studio pretty much just hangs. I'm working remotely from the sourcesafe database so I'm sure that doesnt help. I've also implemented some of the tricks found on the web like specifying temps files to be local - to make sourcesafe run faster. It runs fine on another machine thats still running dev studio 6.0.... So what's it doing with all this network I/O Thanks! -- Curt
- 6
- Windows Presentation Foundation (WPF) Issue with Richtextbox
Hi,
I am new to WPF and XAML. I want to create a richtextbox and have an animation on top of the richtextbox. This means when a user clicks on the backspace button inorder to delete the characters an image should appear instead of the carat. This image should move from right to left as the user clicks on the backspace button. Can anyone help me out in this
Thanks in advance,
Subrajit
- 7
- Windows Presentation Foundation (WPF) Cannot run XAML or XBAP from Internet Zone
When I try to run an XAML file which is hosted on a website I get the following error:
Startup URI: http://www.charlespetzold.com/blog/2007/01/NewYearsMagic.xaml Application Identity: file:///c:/WINDOWS/Microsoft.Net/Framework/v3.0/WPF/XamlViewer/XamlViewer_v0300.xbap#XamlViewer_v0300.application, Version=3.0.0.0, Culture=neutral, PublicKeyToken=c3bce3770c238a49, processorArchitecture=msil/XamlViewer_v0300.exe, Version=3.0.0.0, Culture=neutral, PublicKeyToken=c3bce3770c238a49, processorArchitecture=msil, type=win32
System.Configuration.ConfigurationErrorsException: Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section. ---> System.Net.Sockets.SocketException: An invalid argument was supplied at System.Net.SafeCloseSocketAndEvent.CreateWSASocketWithEvent(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, Boolean autoReset, Boolean signaled) at System.Net.NetworkAddressChangePolled..ctor() at System.Net.AutoWebProxyScriptEngine.AutoDetector.Initialize() at System.Net.AutoWebProxyScriptEngine.AutoDetector.get_CurrentAutoDetector() at System.Net.AutoWebProxyScriptEngine..ctor(WebProxy proxy, Boolean useRegistry) at System.Net.WebProxy.UnsafeUpdateFromRegistry() at System.Net.WebProxy..ctor(Boolean enableAutoproxy) at System.Net.Configuration.DefaultProxySectionInternal..ctor(DefaultProxySection section) at System.Net.Configuration.DefaultProxySectionInternal.GetSection() --- End of inner exception stack trace --- at System.Net.Configuration.DefaultProxySectionInternal.GetSection() at System.Net.WebRequest.get_InternalDefaultWebProxy() at System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint) at System.Net.HttpRequestCreator.Create(Uri Uri) at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase) at System.Net.WebRequest.Create(Uri requestUri) at System.IO.Packaging.PackWebRequestFactory.CreateWebRequest(Uri uri) at System.Windows.Navigation.NavigationService.CreateWebRequest(Uri resolvedDestinationUri, NavigateInfo navInfo) at System.Windows.Navigation.NavigationService.Navigate(Uri source, Object navigationState, Boolean sandboxExternalContent, Boolean navigateOnSourceChanged) at System.Windows.Navigation.NavigationWindow.OnSourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType) at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at System.Windows.Navigation.NavigationWindow.set_Source(Uri value) at MS.Internal.XamlViewer.XamlViewerApp.OnStartup(Object sender, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at System.Windows.Application.<.ctor>b__0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter) at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.Run() at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.StartDispatcherInBrowser(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter) at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
And when I try to run an XBAP from a website I get the following error:
Startup URI: http://scorbs.com/workapps/woodgrove/FinanceApplication.xbap Application Identity: http://scorbs.com/workapps/woodgrove/FinanceApplication.xbap#FinanceApplication.application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=256a0a4972738a32, processorArchitecture=msil/FinanceApplication.exe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=256a0a4972738a32, processorArchitecture=msil, type=win32
System.Runtime.InteropServices.COMException (0xFFFFFFFF): Exception from HRESULT: 0xFFFFFFFF at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System.Deployment.Application.LockedFile.AcquireLock(String path, TimeSpan timeout, Boolean writer) at System.Deployment.Application.SubscriptionStore.AcquireLock(DefinitionIdentity asmId, Boolean writer) at System.Deployment.Application.SubscriptionStore..ctor(String deployPath, String tempPath, ComponentStoreType storeType) at System.Deployment.Application.SubscriptionStore.get_CurrentUser() at System.Deployment.Application.DeploymentManager..ctor(Uri deploymentSource, Boolean isUpdate, Boolean isConfirmed, DownloadOptions downloadOptions, AsyncOperation optionalAsyncOp) at System.Deployment.Application.InPlaceHostingManager..ctor(Uri deploymentManifest, Boolean launchInHostProcess) at System.Deployment.Application.InPlaceHostingManager..ctor(Uri deploymentManifest) at MS.Internal.AppModel.XappLauncherApp.TryUriActivation() at MS.Internal.AppModel.XappLauncherApp.DoDirectActivation(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter) at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter) at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg) at MS.Internal.AppModel.XappLauncherApp.XappLauncherApp_Startup(Object sender, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at System.Windows.Application.<.ctor>b__0(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter) at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.Run() at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.StartDispatcherInBrowser(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter) at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
I have .NET 3.0 RTM installed and the Internet Zone settings in IE 7 is set to default (XAML and XBAP is enabled).
If I download the XAML file to my computer and unblock it it will open up in IE 7 and run just fine!
- 8
- Windows Communication Foundation ("Indigo") Does this model look "feasible"?
I want to setup a "chain" for a business application model and this is what I envision:
Database > TCPchannel or named pipe > DataLayer Service > TCP channel or named pipe > Business Object Service (Using Business Object library) > TCP Channel or named pipe > Business Presentation Service (Using Presentation Library & Business Object Library) > wsHttpBinding with two channels > Certificates only (intranet/ VPN) & server certificate with UserName (typical web access) > Web Hosted Client and Winforms Client (Using presentation library)
Essentially, I have a third-party ORM that works very nicely to create the data layer from my classes without having to manually create any SQL or Stored procedures (the CRUD operations are abstracted to a single interface which performs nicely).
The Business Object Service is essentially a library of DTO (Data Transfer Objects) implementing proper interfaces for Data Contracts and Service Contracts. The business model self-validates all objects, but does not control filterable criteria for security, or any user-based security for that matter.
The presentation tier is a form of MVP (Model View Presenter) and provides the client accessed security which are implemented on the server-side and proxied on the clients. (very similar to remoting).
Thus, the clients are very thin and only require updates when any view (client form) is improved and/or the interfaces for any presentation service requires modifications on the client. Changes to business logic that do not effect the presentation interfaces can be implemented without direct effect to the client.
I am just starting the test model and was wondering if anyone sees any potential problems
TIA
Trevor
- 9
- Visual Studio Extensibility Custom Add Item
Hi All,
I will try to be as brief as possible. I've been making a DSL project for 2 months now. And somehow my application need to access the inner-structure of Visual Studio. I went to DSL forum to solve my problem, but someone pointed me to this forum. I hope there is someone here who can give me some ideas, or point me to some related threads.
It goes like this, when I run my DSL project I can add an item in Experimental Window by left-clicking the Debugging in solution explorer and then a window with templates appears. There I can choose my DSL template for the file I want to add. My question is, how can I perform this by only clicking a button I made by myself How can I show the Add New Item Template window by clicking my button
Any help will be appreciated. Thanks!
- 10
- 11
- Windows Presentation Foundation (WPF) Transperent Windows Forms controls WindowsFormsHost
Hello all I have a TabControl With no tab Items.
I am adding TabItems via code, each TabItem contains a WindowsforsHost which contains a UserControl.
When clicking the add button in the application, I can see the Tab Text but the content appear transperent and I cannot see the controls.
in some occassions userControl.Dock.Fill helps but not in all cases.
TabItem tabItem = null;
if (!createIfExists && _tabItems.ContainsKey(key))
{
tabItem = _tabItems[key] as TabItem;
}
else
{
tabItem = new TabItem();
tabItem.Header = text;
tabItem.Tag = key;
tabItem.Background = Brushes.Brown;
WindowsFormsHost host = new WindowsFormsHost();
//containedControl.Dock = System.Windows.Forms.DockStyle.Fill;
host.Child = containedControl;
tabItem.Content = host;
if (!createIfExists)
_tabItems.Add(key, tabItem);
_instance.Items.Add(tabItem);
}
if (tabItem != null)
_instance.SelectedItem = tabItem;
- 12
- Visual Studio MSBuild Synchronising with solution explorer....
Hi
After i installed recent patch for visual studio 2005.. my vs2k5 is behaving weird. Many time it shows me "Synchronising with solution explorer...." message. It goes for a hang and eats up lot of memory. Once its back.. all the nodes into my Solution Explorer, gets expanded to full extent.
I have a bad time... closing all them as i have more then 500 nodes into my solutions explorer...
Some one body.. plaese let me know the issue....
N!ls
- 13
- Developer Documentation and Help System Generate one chm from multiple dlls and their xml documentations?
Sorry if this has been asked/answered already. I quickly browsed through the threads but didn't find any that would answer this in detail.
Let's say I have a Logic.dll and an Elements.dll. I also have a Logic.xml and an Elements.xml which contain the vs2005 generated xml documentation.
Logic has the, um, well, logic and Elements contains the property classes that could be the input/output parameters of the methods in the Logic.dll. They are not in the same vs solution or project. Logic.dll is referencing to Elements.dll as a dll reference.
Is it possible to generate a single chm from those two dlls and their comments with Sandcastle
I tried to use the Mrefbuilder like so: "MRefBuilder Logic.dll /dep:[path_to_references]\bin\*.dll /out:reflection.org" with the /dep section pointing to the location where Elements.dll resides in. However, this did not include the Elements documentation into the chm.
Thanks,
Mikko
- 14
- Developer Documentation and Help System How to Create Documentation from a web service
Hi I have created a VS2005 web service that I would like to document using Sandcastle. I have three cs files that are in the directory called APP_Code. After building the web service there are no dll files created. How can I generate a DLL from the web service so that Sandcaslte can generate the documentation I have tried using the CSC.exe program but with no luck ,.
Regards and thanks for any help
- 15
- Visual Studio MSBuild Programmatically Setting the Inputs and Outputs properties of a Target.
Hi, I'm setting up a build system on top of MSbuild, I'm trying the set the Inputs and Outputs Attributes of a task.
The Name, DependsOnTargets and some other properties are available but I can't find how I can access the Inputs and Outputs of a target.
Am I missing some obvious way to do it
thanks;
Nicolas
// Create a target for this Asset
Target^ tgt = m_Project->Targets->AddNewTarget(L "Build_" + _CreateMSBuildName(iAsset->BaseName));
// Add Dependencies
tgt->DependsOnTargets = depends;
// Specify Inputs and Outputs
|
| Author |
Message |
SnowJim

|
Posted: Windows Communication Foundation ("Indigo"), Exceptions and WCF |
Top |
Hey!
I have read the msdn documentation on handling faults in WSF but can’t get it to work.
I have the fallowing Interface fore the service:
[ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IChatChangeHandler))] public interface IChatChangePub { [OperationContract(IsOneWay = false, IsInitiating = true)] bool subscribe(string inNickName); [OperationContract(IsOneWay = false, IsInitiating = true)] void unsubscribe();
[OperationContract] [FaultContract(typeof(userListFault))] List<string> getUserList(string inNickName);
[OperationContract(IsOneWay = true)] void publishChatMessage(chatMessage inMessage); }
As you can see i am using a costum faultExcetion(userListFault) that looks like this:
[DataContract] public class userListFault { private string mOperation; private string mProblemType;
public userListFault(string inOperation, string inProblemType) { mOperation = inOperation; mProblemType = inProblemType; }
[DataMember] public string operation { get { return mOperation; } set { mOperation = value; } } [DataMember] public string problemType { get { return mProblemType; } set { mProblemType = value; } } }
In my ServiceContract i throwing a fault like this:
public List<string> getUserList(string inNickName) { throw new FaultException<userListFault>(new userListFault("testOperation", "testProblemType"), new FaultReason("myReason")); }
On the client i am using the fallowing code to catch:
private void InitializeConnection() { try { updateUserList(proxyChatChange.getUserList(txtNickName.Text)); } catch (Exception ex) { MessageBox.Show("Error in InitializeConnection: " + ex.Message); } }
When debugging this i am getting a unhandle exception on the throw new FaultException<userListFault> What am I missing
Visual Studio 200814
|
| |
|
| |
 |
Carlos Figueira - MSFT

|
Posted: Windows Communication Foundation ("Indigo"), Exceptions and WCF |
Top |
What's the error you're getting on the call to throw new FaultException<userListFault> I tried the program below, and it worked fine (i.e., the client received the FaultException<userListFault> back): [ServiceContract]
public interface IChatChangeHandler
{
[OperationContract]
void Foo(string str);
}
[ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IChatChangeHandler))]
public interface IChatChangePub
{
[OperationContract(IsOneWay = false, IsInitiating = true)]
bool subscribe(string inNickName);
[OperationContract(IsOneWay = false, IsInitiating = true)]
void unsubscribe();
[OperationContract]
[FaultContract(typeof(userListFault))]
List<string> getUserList(string inNickName);
[OperationContract(IsOneWay = true)]
void publishChatMessage(string inMessage);
}
[DataContract]
public class userListFault
{
private string mOperation;
private string mProblemType;
public userListFault(string inOperation, string inProblemType)
{
mOperation = inOperation;
mProblemType = inProblemType;
}
[DataMember]
public string operation
{
get { return mOperation; }
set { mOperation = value; }
}
[DataMember]
public string problemType
{
get { return mProblemType; }
set { mProblemType = value; }
}
}
public class Service : IChatChangePub
{
public bool subscribe(string inNickName)
{
return false;
}
public void unsubscribe() { }
public List<string> getUserList(string inNickName)
{
throw new FaultException<userListFault>(new userListFault("testOperation", "testProblemType"), new FaultReason("myReason"));
}
public void publishChatMessage(string inMessage) { }
}
public class Host
{
class ClientContextClass : IChatChangeHandler
{
public void Foo(string str)
{
Console.WriteLine(str);
}
}
public static void Main()
{
ServiceHost host = new ServiceHost(typeof(Service), new Uri("net.tcp://localhost:8000/Service"));
host.AddServiceEndpoint(typeof(IChatChangePub), new NetTcpBinding(), "");
host.Open();
DuplexChannelFactory<IChatChangePub> factory = new DuplexChannelFactory<IChatChangePub>(new InstanceContext(new ClientContextClass()),
new NetTcpBinding(), new EndpointAddress("net.tcp://localhost:8000/Service"));
IChatChangePub proxy = factory.CreateChannel();
try
{
List<string> userList = proxy.getUserList("hello");
Console.WriteLine(userList.Count);
((IChannel)proxy).Close();
}
catch (Exception ex)
{
Console.WriteLine("Exception caught: " + ex);
((IChannel)proxy).Abort();
}
factory.Close();
host.Close();
}
}
|
| |
|
| |
 |
SnowJim

|
Posted: Windows Communication Foundation ("Indigo"), Exceptions and WCF |
Top |
Sorry for the delay, I am not reciving any notification about updated thread.
If i Run in debug mode, it stops(without break point) on the: throw new FaultException("test"); And says somthing about unhandle exception, but if i click resume, or run the project without debug mode then it works fine, the fault exception message are recivied on the client.
|
| |
|
| |
 |
| |
 |
Index ‹ Visual Studio 2008 ‹ Windows Communication Foundation ("Indigo") |
- Next
- 1
- LINQ Project General Migration Support?Hi, I have recently been looking through Linq and I've got to say how impressed I am so far. I was recently considering using ruby on rails for a number of projects due to its active record implementation, but this will allow similar benefits in .net. Does any one know of any plans to include ideas such as rails' migration into .net and possibly the Linq project so that database versions can be updated and downgraded using commands and thus making it easier to work with multiple versions.
- 2
- Visual Studio Tools for Office Prevent Outlook from embedding attached image
I'm using Outlook 2003 and C# and I'm trying to create a MailItem using Microsoft.Office.Interop.Outlook.Application
It is working so far, but there is a small problem. I create a new message and set the the BodyFormat to olFormatHTML. Then I attach an image "test.png" to the mail. In the HTMLBody I use this image as a source:
<img border="0" align="middle" src="test.png" />
After executing Display(false) on the created MailItem object I see this message, but without the image attachment - it is automatically converted to an embedded image with the cid:-link as image source in html code.
Is it possible to use attached images as image sources in html-body, but also to keep them as attachments
- 3
- Visual Studio Tools for Office Accessing an Excel TextBox from c#I need to access a named Excel text box from c# code. I have successfully been using Microsoft.Office.Interop.Excel.Range to access cells, but I don't see how to get the handle of a textbox. Should I be doing this through the TextBox interface, or the IShape interface
- 4
- Visual Studio Class Designer Missing tools in class designer toolbox
Hello and thanks for any help you can give me with this problem.
I'm using VS Professional and was having the Class designer load failuer discussed here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=98590&SiteID=1. I followed the steps posted to remove and reload the correct version of the dll files. The Class designer loads but when I create a new class library project the class designer toolbox has only 3 items all named class. I've dragged all three items into the design area and each is actually a class object. On another work machine I have VS Prof edition installed and the toolbox also has: enum, interface, abstact class, struct, delegate, etc.
How can I get the other tools loaded When right click in the tool box and select choose items - I don't know what if any framework items will give me the missing tools.
Thanks in advance
- 5
- Visual Studio Tools for Office Making a custom installerHi
I need information about making a custom installer, I can't get it to work. The installer installs the application at a certain location and it also installs the registry entries.
I've have also set the add-in to be fully trusted.
The add-in is for powerpoint.
// Lasse
- 6
- Visual Studio Setup and Installation Intellisense Quirk, HTML modeHello,
I've noticed something minor that has changed in my visual studio setup somehow. It's a small issue, but its driving me insane because it interrupts my normal flow...
Basically when trying to invoke intellisense using CTRL+spacebar, the IDE is inserting a space along with bringing up the intellisense menu. If I've typed 3-4 letters of a property and hit CTRL+space, instead of auto completing the property name it inserts a space where my cursor is and pops open the intellisense menu.
Has anyone else noticed this or know how to fix it
- 7
- Visual Studio Debugger Deployment and debugging
Hello,
I'm trying to figure out the smartest approach to this issue. I have a rather large ASP.net 1.1 application that I need to both deploy and debug on a remote server. I have access to the server, but what I would like is something like a checklist of the most comprehensive way to deploy the application so that I can debug it from my local machine.
Please assume that I cannot migrate the application to 2.0. Thanks for your help.
- 8
- Visual Studio Tools for Office AddItem on ComboBoxes using Control Collection in Excel 2003
I've added about 50 comboboxes which all have the same possible choices of values. I can't figure out how to programmatically use AddItem in a for statement (by using their "(name)" property) much like in Outlook's Controls(Name).AddItem Method. I can't seem to find the right way.
Here is what I've done so far and it can't seem to work, I can't find the Controls Property:
Dim intCboIndex As Integer Dim strCboName As String For intCboIndex = 1 To 50 strCboName = "ComboBox" & intCboIndex Sheet3.OLEObjects(strCboName).AddItem ("Line") Sheet3.OLEObjects(strCboName).AddItem ("Case-to-Case") Next
Can please somebody help me
Thanks.
- 9
- Visual Studio Tools for Office call a form from word (VSTO2005)
Hi,
I would like
to open a popup window (just a form/application containing a web browser) when a
user clicks on a button within the word document.
Can you provide
me with a code example to get me started
I managed to do it from the Actionpane... but it does not work within the document !
(using VSTO
2005 and Word 2003)
Thanks!
Claudia
- 10
- Visual Studio Setup and Installation The instruction at "0x00eb5d78" referenced memory at "0x00eb5d78". The memory could not be "written"
Hi to everybody.
1 week ago i do all of my works regularly and accurately. Then i got some disk errors and a fatal error so i should
install all of my development enviroment from the beginning. MS Server 2003 Standart Edition SP1, Sql Server 2000 SP 4, VS.NET SP1
I try to deploy one of my projects which i had coded in asp.net 1.1
Before the new installation i deployed it hundred of times.
I do my web setup installation then when i go to the path for executing the created msi.exe file
i got this error;
The instruction at "0x00eb5d78" referenced memory at "0x00eb5d78". The memory could not be "written"
I dont know what is going all!I have all of the updates hotfixes and last servicepacks....
Is there any opinon, suggestion
Thanks in advance
Osman AYHAN
- 11
- Windows Communication Foundation ("Indigo") HOW TO: run svcutil during build process to generate both WSDL and ClientProxy.cs files
Is it possible to run SVCUTIL during the build process against my source code that contains my DataContract and ServiceContract definitions to automatically generate WSDL, ClientProxy.cs and ClientProxy.app.config files I know the port information is a problem when not running against a live service, but I'm trying to determine if there is a way to automate this procedure during development without having to manually run the service, then run SVCUTIL, etc., etc.
Or, is there a better way, since my one client is part of the same solution the service is in, to call the WCF service using the actual DataContract/ServiceContract files to create the Client channel
Thanks in advance for any suggestions,
Bob
- 12
- 13
- Windows Presentation Foundation (WPF) Need some pseudo code for a "simple" scenario
Hi guys,
Here's my dilemma. I have a canvas hosting a bunch of PathGeometry's that can be dragged around and re-positioned etc. Keeping in mind that these are all very non rectangular shapes, I'd like to be able to label the Filled areas of the shapes with text. So the end result would be that both the shapes AND their corresponding text would move in unison when I darg the shapes about.
Any ideas on what the easiest way to achieve my goals is
Thanks!
Senkwe
- 14
- Windows Presentation Foundation (WPF) Styling the ContentPresenter inside a ControlTemplateHi all,
I'm trying to style the TabItems of a TabControl.
I've got this template so far;
<ControlTemplate TargetType="{x:Type TabControl}">
<Grid KeyboardNavigation.TabNavigation="Local">
<!-- grid definiton --> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions>
<!-- TabPanel - contains the TABS --> <TabPanel Name="HeaderPanel" Grid.Row="0" IsItemsHost="True"/>
<!-- Main content (of each TAB) --> <!-- wrapped in a border --> <Border Name="Border" Grid.Row="1">
<!-- ContentPresenter itself --> <ContentPresenter Name="PART_SelectedContentHost" Margin="4" ContentSource="SelectedContent" />
</Border> </Grid> </ControlTemplate>
And I've got several *named* style for the TabItems, like this;
<Style x:Key="MyTabStyle1" TargetType="{x:Type TabItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type TabItem}"> <Grid>...(snipped)
and
<Style x:Key="MyTabStyle2" TargetType="{x:Type TabItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TabItem}">
<Grid>...(snipped)
How do I tell the TabControl template to use the named style 'MyTabStyle1' for each of its TabItems
as always, many thanks in advance
jzf
- 15
- LINQ Project General Getting a specific record number?OK, I've been out of the development world for a while. Coming back into it my C# is a little rusty. Add new features of C# and I can feel a little lost at times.
I currently have LINQ Setup and running nicely on a project I'm developing. However, I am clueless as to how I select a specific record number in an IEnumerable object.
Say I have the LINQ generated class Addresses which consists of many Address objects.
I basically want to say give me Address #4 in the Addresses. How do I do this There are all these genericized functions and I just can't figure out how to do that. I've figured out the First<> to select a specific record, but can't figure out how to do this.
Thankss!
|
|
|