zotje's Q&A profile
SQL Server The data value cannot be converted for reasons other than sign mismatch or data overflow
Hi, In my package, I am loading data from SQL Server to Oracle. The table structure is almost same except the thing that, one field is integer type in SQL server and that same field is 'number' type in Oracle. So, SSIS assigns 'DT_I8' for SQL field and 'DT_R8' for Oracle field. Now, when I do insert to Oracle table using 'OLE DB Destination', it works without any problem. But when I update the Oracle table using 'OLE DB Command', I got the error 'The data value cannot be converted for reasons other than sign mismatch or data overflow'. After explicitly converting the data type to DT_R8 from DT_I8, it worked. My question is, why I am ...Show All
.NET Development MAC Address
Hi there, sorry for the stupid Q Is there a way to retrieve a MAC Address from a client machine in ASP.NET I have found a way of retrieving the MAC address for the local machine (Server) but would require it for the client. I can get the hostname and IP no problem but would require the MAC Address, if possible reason to see what user has "disobeyed" any rules etc.. and to make sure that you can "ban" or report them on your website. an IP address isnt enough and a MAC address is. Thanks! yes i was going to point this out I could shell it out but i dont want to have to do that as it is unprofessional. Ok, what about using client side scri ...Show All
.NET Development Receiving unexpected OutOfMemory exceptions
I have a (nearly) released commercial application built in .Net 1.1. At the high level, it is a protocol proxy. Needless to say, it creates and uses many sockets. It is running on a 2003 Std Edition SP1, 2MB memory with 4MB virtual and 2 hyper-threaded XEON CPU’s. and is configured to use server mode GC via the following in the .config file. <runtime> <gcServer enabled="true"/> </runtime> The customer has a release build. I sent them a debug build one time to check something and it ran much worse. It has started getting OutOfMemoryException at one of the customer beta sites. The customer is reportin ...Show All
Visual Basic How to load image into picturebox from web
I'm open to suggestions.... Thank you. Thanks 'all. Is it possible to bypass the picturebox and save image to disk Thanks. ...Show All
.NET Development Adding a tab to a tabcontrol based on data in an xml file.
Hi, I'm trying to add tabs to a tabcontrol in VB 2005 based on an xml file that I have. I want to add an tab for each "keyword" element that I have giving the tab a name based on the "name" attribute of the element. Here is the file: notes.xml < xml version="1.0" > <KeywordList> <Keyword name="Keyword 1"> <Category> <Name>Keyword 1 Category 1</Name> <Description>Description for category 1 in keyword 1</Description> </Category> <Category> <Name>Keyword 1 Category 2</Name> <Description>Description ...Show All
Visual Studio 2008 (Pre-release) WCF vs WSE 3.0
I enjoyed reading Aaron Skonnard article, especially the part where he answers the question: What features does WCF provide for developers that ASMX 2.0 and WSE 3.0 don't But... I didn't understand - Since WSE 3.0 runs on .NET 2.0, in what scenario (if any) should one use WSE 3.0 over WCF Is there any feature inside WSE 3.0 that is not inside WCF (emphasize on security) Thanks. I think you should look at it from the WS-* specification point of view. WSE is kind of a subset of the specs and WCF encompasses quite a lot more. So thinking of it from a comparison point of view i think WCF can be said to be WSE(WS S ...Show All
Visual C++ Newb Question [How do I compile?]
I'm using Visual C++ 2005 Express Edition, and I can't find out how I compile my .cpp script. I'd appricate an answer... Thanks First you need to create a project. Try "File > New > Project > Visual C++ > Win32 Console Application". Thanks. ...Show All
Visual C# Is there metadata/manifest for the Project Name of an Assembly?
Does an Assembly have a manifest/metadata that tells the title of the project that it came from I tried to look at the assemblyinfo.cs of one of the project that isn't mine and the only lead that I have is the: [assembly: AssemblyTitle ( "" ) However, there are projects in our company that the AssemblyTitle is different from the project name. There are also several instances wherein the Assembly name is different from the project name. Please advice. Is that so....then I guess there is something wrong with the code I created. I'll have to review it then. I'll continue posting if I encounter any pro ...Show All
.NET Development Can i convert ascx page (presentation) to XML style sheet (presentation) through code.
Hi, I have an aspx page.I would like the presentation of the page which has data with some images to be saved as XSLT with same presentation as of aspx page. My aim is to save the content of aspx page with its GUI on local machine using XML. I surfed web but to no avail.I have to accomplish this task throug code only.Can this be done. Regards, Ashwin I have never heard about such tool. It may be not possible to convert arbitrary aspx page to XSLT. ...Show All
Visual C# How to Add a Windows Service in VC#2005 Express Edition
Hi Refer to my subject, thanks. The service application templates are not included in the Visual Studio Express products, but there is a workaround to allow you to use them. What I have done in the past is to load up the trial version of the Visual Studio System and create a base application from each template and then export them as templates. Then once inside the Express IDE I would then import the templates, from this point on I now have a windows Service template that I can use. If you do not have the trial you may be able to find someone to export the template for you. But, it are just templates, so this means you ca ...Show All
Visual Studio Express Editions SOS:VC2005 B2 Express VC++ Directories Problem
I downloaded and installed VC2005 B2 Express, I can't set "VC++ Directories". screenshot: http://member.netease.com/~lilong/temp/VS2005ExOpt.jpg is this bug this is a BIG PROBLEM!! How about removing C++ Beta2 ane replacing it with Beta1 Will this work I am thinking about trying it. ...Show All
Visual Basic Datagridview "HideSelection"
I'm using an unbound datagridview to display information, and I need to color-code certain cells to alert the user to status events. Is there a way to not have the selected row highlighted when the control does not have focus (similar to the VB6 .HideSelection property) I would explore using the DataGridViewx.SelectionChanged method to test your condition and if not met, set the Style.Backcolor to normal - else set Style.Backcolor to the row highlight color. ...Show All
Visual Basic Workaround for Compiler Error That Was NOT FIXED BY THE PATCH
For those of you unaware: There is still a seemingly random problem with the VB .Net 2005 Compiler (And yes everyone of our developer machines has the recently released patch installed). Basically a DLL project somehow gets corrupted on a specific machine, and any project that references that DLL immediately begins getting compiler errors (even on load of the .NET Project). From that point on that machine can no longer load any project that references that dll. Note: Disabling edit and continue does absolutely nothing Completely deleting the files and copy over fresh WORKING projects from another developer machine does nothing ...Show All
.NET Development Generic GetHashcode method problem
I'm trying to write a generic method to generate Hashcodes but am having some problems with (generic) collections. Here is the code of my method: public static int GetHashCode(object input) { try { Type objectType = input.GetType(); PropertyInfo[] properties = objectType.GetProperties(); int totalHashCode = 7; foreach (PropertyInfo property in properties) { // Reset hashcode int hashcode = 0; // Get property value object value = property.GetValue(input, null); // Invoke GetHashCode method on property ...Show All
Visual Studio 2008 (Pre-release) Could not find <DataTemplate> Tag inside <ListBox.ItemTemplate>.
Hello Everyone, I am a new user to Windows Presentation Framework. I tried working with some samples with the help of WPF Book by Oreilly. I got struck here: < ListBox ItemsSource = " {Binding} " IsSynchronizedWithCurrentItem = " True " > < ListBox.ItemTemplate > < DataTemplate > <TextBox> < TextBlock Text = " {Binding Path=Name} " /> : < TextBlock Text = " {Binding Path=Nick} " /> </TextBox> </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > Here i cou ...Show All
