JBanning's Q&A profile
.NET Development HTTPWebResponse Error: Unable to read data from the transport connection
I have a console app that is making a web request to my localhost and I keep getting this error: "System.IO.IOException: Unable to read data from the transport connection. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host \r\n at System.Net.Sockets.Socket.BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)\r\n at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)\r\n --- End of inner exception stack trace ---\r\n at System.Net.Sockets.Networ ...Show All
Architecture Exception Management in N-Tier architecture
Hi, The following are the layers in our application: 1. Entities/Collections 2. Data Access 3. Business Logic 4. Service Facade layer 5. UI The way we implement our exception handling in each layer is : 1. Catch exception 2. Wrap the exception using a Custom Application Excpetion class, that also indicates the type of exception, say the exception is due to Data/Service or a Generic one. 3. Log the exception 4. Re-throw the exception to the next layer Finally, in the UI Layer, a custom error page is shown indicating that an exception was raised. We took this article as reference for handling exceptions: http://msdn.microsoft ...Show All
SQL Server Rebuilding dimensions with huge fact tables
Hi, I have a dimension which is used in two Measure Groups. It has many levels (let's say 10). One fact table handles level 1-8, the other 8-10. The facts are huge, about 2 billion records for the first table (for level 1-8) and 100 million records for 8-10. We discussed a fitting partitioning schema and this will not be the big issue. Our problem is, that in the last levels (9-10) members can move from one parent to another. That means that the dimension structure changes, it has to be updated which also means a reprocession of all partitions related to this dimension. This is really a problem because of the first fact ta ...Show All
Visual Studio Team System Modifying canned reports
I am trying to the rdl from the Team Systems report services site and the rdl before I switch to data view runs fine, but once I switch the report to data view. I have both connections that the server uses and checked permissions and all that seems fine. Is there any info any where to let me know how to properly setup a development environment to be able to properly modify and make variations of the canned reports I seem to be pretty close, probably something simple. thanks in advance for any help. Hi Claude, I'm not quite clear on what error or condition you are experienceing - can you elaborate a bit ...Show All
Visual Studio Express Editions Creating reports in Vb Express 2005
Are there any type of reporting features in VB Express 2005 Tried Crystal 9.0 with no luck. Any help appreciated. John Williams Crystal doesn't come with the Express Editions. If you're using SQL Server, you can use Microsoft's reporting services. I think reports can be added from the new item... menu, and report controls are available on the toolbar. If you're not using SQL Server, you'll need to get a third party reporting package. We use Active Reports, which is pretty good (but not free). There are some free ones as well, just look around on SourceForge or another open ...Show All
Visual C# .NET 2.0 WIndows Service Deployment
I have a windows service written in C# for .NET 2.0, and I've got everything completed for it, even a Deployment application. Every thing installs and runs fine. However, now I need to modify the deployment process in order to ask the installer a couple configuration questions. How would I go about doing this In my original message, I stated that I had built a succesful deployment project... My question was, during this deployment how do I ask the installer (aka User) for configuration data before while deploying the service ...Show All
Visual C++ Strange compiler error (C2664)
void f1(const int a[2][5][3]) { } void f2() { int b[2][5][3]; f1(b); } Causes the following error in VS6: C:\Roman\Projects\simulator\tmp\src1.cpp(6) : error C2664: 'f1' : cannot convert parameter 1 from 'int [2][5][3]' to 'const int [][5][3]' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast I note also that with only 2 or 1 dimension, the error does not appear. const_cast does not help as well (although I can't understand why should I have one). Any ideas Thanks, Roman. Well, the casting I use is not only permitted, it is ...Show All
Microsoft ISV Community Center Forums Dump data into 2 databases automatically
Is there a way to dump data into 2 databases automatically So when I enter in data through an MS Access Form, it loads the data into a Table in that database, and then also loads the data into another Table in another database (or Excel file) Essentially, single entry to dual tables. Thanks, Mark Hi Mark, There a couple of ways you can do this. The simplist would be to create a linked table in the database with the form. You can link to tables in other Access databases or even to Excel spreadsheets. In the 'Save' button on the form you'd call two INSERT or UPDATE sql statements, one for each ta ...Show All
Visual Studio Express Editions Disabled control not shaded
Hi, Is there a way of disabling a control without it being shaded. I want to use the checkbox control to output the state of the application without letting the users mess with the controls. Thanks You can create a boolean variable and check if it is false in the change event and exit if it is. When you want to change it set the boolean to true and make your change. Then set the boolean back to false. ...Show All
Visual C# Problem with IDataReader method GetValues
I've implemented a custom data reader which implements the IDataReader interface. I'm having a problem with DataTable.Load calling my data reader's GetValues method. The method has a signature {int GetValues(object[] objs)}. This should return a populated array of objects (the values for the row) and the length of the object array. My problem is that the object array is passed by value, not reference. Shouldn't this method have a sig like {int GetValues(out object[] objs)} in order to get back a populated object list At the moment all I can get is whatever objs was passed in as (null). Am I missing something or is this method wro ...Show All
Smart Device Development Name mangling issue between eVC++4.0 and Visual Studio 5.0?
I've run into a problem linking a ARMV4 release project built with Visual Studio to a ARMV4 release DLL built with eMbedded Visual C++ 4.0 that I believe may be caused by a method name-mangling bug. In my DLL project, I have a class that is declared in the header as follows: class __declspec(dllexport) CAeFOutputStream { public: CAeFOutputStream& WriteInt32(long iVal); CAeFOutputStream& WriteStrUTF8(const wchar_t* pcwcsBuf); /** Other declarations removed for clarity **/ }; (Of course, the dllexport declaration becomes dllimport when the header file is included in files outside of ...Show All
SQL Server Conversation ID cannot be associated with an active conversation
Hi: My service broker was working perfectly fine earlier. As I was testing...I recreated the whole service broker once again. Now I am able to get the message at the server end from intiator. When trying to send message from my server to the intiator it gives this error in sql profiler. broker:message undeliverable: This message could not be delivered because the Conversation ID cannot be associated with an active conversation. The message origin is: 'Transport'. broker:message undeliverable This message could not be delivered because the 'receive sequenced message' action cannot be performed in the 'ERROR' state. How do I pro ...Show All
Windows Forms performance counters for hardware statistics?
I love having all the performance counters so easy to access. But how do I get statistics for things like CPU Temperature and fan speeds Seems like every motherboard has them, and it's built-in to all the new Intel processors. So why can't I get to it with perfmon Do I have to use WMI or SNMP know what I mean WMI (W ...Show All
Visual Studio 2008 (Pre-release) drag/drop to reorder listbox items.
I'd like to be able to use drag and drop to reorder items in a listbox, similar to how you rearrange items on the "All Programs Menu". I've looked at Marcelo's dragdropadorner, but I can't see how to apply that to this scenario where the source container is the same as the target container. Simon Let me rephrase I can't see how to identify the drop target, (ie the new item position) when the source container is the same as the target container ...Show All
Visual Studio 2008 (Pre-release) Canvas, Rectangles, ClipToBounds slowness
We are thinking about starting a new moderately complex graphical application in WPF. But before committing to the platform, we are testing features to see if WPF can handle it. >:) One test application so far has a Canvas with ~800 Rectangles (added with C# using “canvas.Children.Add(..)”. These rectangles are movable by dragging them… implemented with Canvas.SetLeft(rect, newLeft) and Canvas.SetTop(..) from the MouseMove handler. I need some tips on how to speed this up. Currently dragging a single rectangle around causes 100% utilization with 20 FPS on a Xeon 2.8GHz… even turning down to 50 rectangles seems ...Show All
