Hi, does this site make use of ASP.NET MVC technology? thx :)
cateyes99
Posts
-
Does this site make use of ASP.NET MVC technology? -
SQL Server Error: String or binary data would be truncatedThanks, but I cannot see how Axos_Tech's words actually help me in our situation. The post you gave has some words I quite agree: "This is notorious error in SQL." and "didn’t find any elegant way of finding this error." I think, this is one thing MS's dev failed the good practice here :)
-
SQL Server Error: String or binary data would be truncatedHi, guys We encountered a SQL server error message saying, "String or binary data would be truncated". I know it's because some new records to be inserted into a table has value exceed the limit of the column's definition, eg, the value to be inserted is something like "abcdef", but the column's definition is something like "varchar(3)". The problem is, there are more than 10 tables that have been inserted new records in that stored proc, and each has huge amount of columns. Is there a way to let SQL Server tell exactly which table and which column it complains about? So I can avoid the extremely tedious task of using the same problematic data to examine each column? Thanks very much,
-
WCF client talk to soapUI mock service using wsHttpBindingThanks very much :)
-
Inplement a precise timerthanks, i'll take a look at quartz.net.
-
Inplement a precise timerYep, Windows scheduled task may be a way. But it needs to be reused/consumed by other programs, so using Windows scheduled task is out of scope.
-
Inplement a precise timerDefinitely, we can do it in this way, but the thing is what techique I can use in .net not to rely on the inefficient polling tech (and polling is not accurate as well). I'd like to let the working thread to sleep and when the specific time coming, woken up. This model is what I really want. I wonder if .net has mechanism directly support this model, don't have to do converting interval stuff. By the way, if the time-specific matter needs to meet life-critical requirement, what .net mechanism we can rely on? Does .net have such capability to support this level of accuracy? (My understanding is this needs real-time OS and device to support).
-
Inplement a precise timerActually, I also meant 'micorsecond' :) (well, I'm not sure whether .net can really cater for nanosecond accuray or not) I'll take look at quartz.net, thanks.
modified on Thursday, September 2, 2010 6:28 PM
-
Inplement a precise timerthanks for the info.
-
Inplement a precise timerthanks for pointing out this.
-
Inplement a precise timerThanks very much for your example.
-
Inplement a precise timerIn .net we've got several timers, but all of them specify an interval to elapse rather than a specific time to come. I'd like to implement a timer which specifies a specific time, say to be triggered at the time of 10:25:15am (hour:minute:second). Using polling tech to determine if it's the right time to trigger is a very bad way and inefficient, I'd like to put the timer to sleep, then when the time is coming it receives a signal from the system to be woken up and then do its work. One way to do this is still based on the Threading.Timer, convert how long to wait for the specific time into interval. But is there any mechanism provided by .net directly supporting this scenario to signal the thread at specific time? Many thanks.
-
Tools for merging multiple xsd filesIt's extremely unfortunate. Obviously, there is severe lack of such a wonderful tool :-( I wish XML Spy could provide this kind of feature ...
-
The order of objects in WCF Parameter InspectorsWCF IParameterInspector Interface has two member methods: AfterCall and BeforeCall. Both have parameters passed in as array of objects: object[] outputs and object[] inputs. My questions is what is the order of these two object arrays, are they the same order of the parameter's order defined in the service method signature? anyway, the MSDN document about IParameterInspector doesn't mention this at all.
-
How does C# support and implement exception handling?Thanks
-
How does C# support and implement exception handling?Don't get at all :doh:
-
How does C# support and implement exception handling?Hi, we know if there is try-catch in place for an exception, it'll be caught and handled then when the exception occurs. But how this magic happens? How C#/compiler implements this exception handling feature at low level? Thanks.
-
Tools for merging multiple xsd filesI don't think this include tag will solve my problem. What I'm facing is that - Case 1 I've got WSDL which reference multiple xsd files, I use soapUI to generate Web service, but soapUI cannot handle those multiple xsd references because the refrence URLs in all files are still referencing to web sites which are not available, unless I manually hack those URLs to reference local xsd files. But this is tedious, each time I have to do it when WSDL changes. So I need a tools to put all XSD file's content inside the WSDL file. So soapUI will accept it. - Case 2 I also initially had a big XSD file, but client asked to split a particular path in the main XSD to a seperate XSD file, and removed this from the main XSD then, for example. the initial Main XSD's struct:
-root node - 1st level node 1 - 2nd level node 1
- 2nd level node 2
- 1st level node 2 - 2nd level node 3
- 2nd level node 4
- 2nd level node 5now, after split, it become two xsd files:
-root node - 1st level node 1 - 2nd level node 1
- 2nd level node 2
- 1st level node 2 - 2nd level node 5-root node - 1st level node 2 - 2nd level node 3
- 2nd level node 4the problem is that I use .net xsd.exe tool to generate classes from those xsd files. After splitting to 2 xsd files which are compensatory, when I use xsd.exe to generate classes again, it will get conflict classes for the root level and 1st level :( so I need a tool to merge these XSD files into a single one again for generating classes. Any ideas? :)
-
Tools for merging multiple xsd filesHi, I've got a XML schema which is split to multiple XSD files. Now we need to merge them into one big XSD file. Anyone knows a good tools I can use to do it? Manually merging would be too cumbersome, and error-prone. Thanks very much.
-
WCF client talk to soapUI mock service using wsHttpBindingHi, I'm testing a WCF client application using wsHttpBinding. I use soapUI to create a mock service using the existing WSDL. I'm struggling to get them correctly to communicate to each other. When the WCF client calls to soapUI's mock service, the soapUI mock service throws exception which I can see it in soapUI's error log:
ERROR:com.eviware.soapui.impl.wsdl.mock.DispatchException: Missing operation for soapAction [null] and body element [{http://tempuri.org/}UnitLocation] with SOAP Version [SOAP 1.2]
So soapUI thought the call from WCF client had wrong soapAction, but when using Service Trace Viewer to check the soap1.2 Message, the soapAction looks fine to me:
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action s:mustUnderstand="1">http://tempuri.org/IMobilityInboundService/UnitLocation</a:Action>
<a:MessageID>urn:uuid:e1b3753c-603a-422c-a81e-3d524f4a86b7</a:MessageID>
<ActivityId CorrelationId="f538e84f-2ed1-411a-8e0f-f19c1dbf2446" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">55a95dee-7d91-450c-917c-0a59177d95ee</ActivityId>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
<a:To s:mustUnderstand="1">http://127.0.0.1:8088/mockWSHttpBinding\_IMobilityInboundService</a:To>
</s:Header>If changing to use basicHttpBinding and based on it generate a new soapUI mock service, it's fine. Anyone has successful experience to communicate with soapUI mock service using wsHttpBinding, can be willing to give details on how to set soapUI properly. I know compared to basicHttpBinding, wsHttpBinding will have more involvement. Thanks very much.