If you have been searching and have found this then you have probably had a frustrating hour or more with an error of "No Corresponding Start Element Open". No doubt you have rebuilt your WCF service, updated the service reference, maybe even removed and re added the service reference. Still you'll have the error.
So maybe one of a couple of things are happening. If your client is not WCF then maybe the generation of the service proxy is making some parameters optional in the request or response. In this case have a read of this article to get a better idea of what is happening.
Eugene Osovetsky's Blog : Solving the "disappearing data" issue when using Add Web Reference or Wsdl.exe with WCF services
However, in my case I have WCF as the client - something else is awry. One thing to check is if you have a Dataset in your method signature. If the service call is returning null instead of a Dataset instance then this error will come up. There are a couple of options - return an empty Dataset or set the EmitDefaultValue attribute on the argument. Read more about that here No Corresponding Start Element Open
Tuesday, October 23, 2007
Frustrating Error: No Corresponding Start Element Open
Posted by
Unknown
0
comments
Labels: ASP.Net, WCF, Web Services
Monday, October 22, 2007
Implementing network credentials for ReportViewer
When the reporting control is not hosted under the same credentials as the reporting server, the network credentials need to be set for a ReportViewer control. Here is an easy way to do that.
reportViewer.ServerReport.ReportServerCredentials.NetworkCredentials readonly - MSDN Forums
Posted by
Unknown
1 comments
Labels: ASP.Net, Reporting Services, Web Development
Tuesday, October 16, 2007
Easily refresh an UpdatePanel, using JavaScript
Another way to refresh an Atlas AJAX UpdatePanel from a client side event. This also mentions other ways, such as hidden submit buttons, which can be used.
Easily refresh an UpdatePanel, using JavaScript Encosia
Posted by
Unknown
0
comments
Tuesday, August 28, 2007
Computer Zen - Scott Hanselman's 2007 Ultimate Developer and Power Users Tool List for Windows
If you are anything like me, then sometimes you just don't have the time to keep up with some of the niftier little tools that can make a developer's life easier.
Once again Scott Hanselman has compiled his list of Windows utilities and developer tools that will make your life easier. Even if you only start using a couple of these utilities you'll be forever thanking yourself for it. I do...
Scott Hanselman's Computer Zen - Scott Hanselman's 2007 Ultimate Developer and Power Users Tool List for Windows
Some of my favorites:
Lutz's Reflector, SysInternals, FireBug, TestDriven.NET, WinMerge, IE Developer Toolbar, Fiddler, and so many more. Give it a good look.
Posted by
Unknown
0
comments
Labels: Development Tools, Tips, Utilities
Tuesday, August 14, 2007
Tips and Tricks with Microsoft AJAX
Wicked Code: UpdatePanel Tips and Tricks -- MSDN Magazine, June 2007
Recently I had my first experience with Microsoft AJAX. In previous incarnations I have written many websites with 'traditional' AJAX using Xml-Http and some client side scripting.
The first thing that struck me about Atlas was that is wasn't lightweight. At all. Sending complete page state and a full page lifecycle. It seemed to me that it was a recipe for writing a really unscalable website without even knowing it. If you don't know what type of load this will place on our bandwidth or server, then I would suggest not doing anything with UpdatePanels and update timers! The use of these controls should be well thought out rather than liberal.
Take for example the task of updating a control when a value is selected in another control. Using Microsoft AJAX this would involve a complete postback of page state and page lifecycle on the server. Now consider when the user is using the keyboard to scroll through the contents of the controlling listbox. That's one postback and page lifecycle for each value that is scrolled over. Eeek! Not my idea of scalable.
In this case it might be better to consider a more traditional AJAX approach. Note that this doesn't mean writing all of the client-side script and the webservice yourself. The Microsoft AJAX toolkit can provide some features to help you. This article presents some options for hooking up a client-side event with a more traditional lightweight approach using the ScriptService and PageMethods.
These are something that are well worth the investigation if you are considering using Microsoft AJAX toolkit extensively on your site. A little bit of fore-thought can go a long way.
Posted by
Unknown
0
comments
Labels: AJAX, ASP.Net, Web Development, Web Services
Monday, August 13, 2007
Language Log
Language Log is an interesting collection of quirks and constructs of the formal and informal English language.
Posted by
Unknown
0
comments
Labels: Other