programmer01's Q&A profile
Visual Studio 2008 (Pre-release) Trouble getting a WCF return a collection to a .NET 2.0 client
hi all, Can we return a strongly typed collection from a WCF method to a .NET 2.0(ASMX) client. Thanks Kiran. Yes, of course. Collections are described in schema (by default) as arrays. So, as long as the array type is also described (using known types in WCF side) the ASMX client can use the WSDL to generate appropriate proxy and client types to serialize. ...Show All
Visual Studio 2008 (Pre-release) Hosting at IIS
Hi, I'm trying to host simple WCF application in IIS. I'm using June CTP . Since i don't know exact format of config file, i'm getting following error Service 'HostAtIISLogic.ServiceLogicIIS' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element My cofing file is < system.serviceModel > < services > < service name = " HostAtIISLogic.ServiceLogicIIS,HostAtIISLogic " > < endpoint address = "" binding = " basicHttpBinding " c ...Show All
Visual C# There was an error reflecting type 'Bpe.Wdo.Process.Package'
Can anyone tell me what this is all about and why does it happends The code that throws this is: XmlSerializer serializer = new XmlSerializer(typeof(Package)); and the stack trace: at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel) at System.Xml.Serialization.XmlReflectionImporter.ImportElement(TypeModel model, XmlRootAttribute root, String defaultNamespace) at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(Type type, XmlRootAttribute root, String defaultNamespace) at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) at System.Xml.Serialization.XmlSe ...Show All
Visual Studio Express Editions problem with assigning values to cells in excel
Hi. VB don't want to asign values to excel cells, this is my code: Dim oExcel As New Excel._ExcelApplication Dim oWorkbook As Excel.Workbook = oExcel.Workbooks.add oExcel.Visible = True oWorkbook.Worksheets.Add() Dim xlws As Excel.Worksheet = oExcel.oWorkbook.Worksheets.Item(1) xlws.Cells(1, 2) = "Number" Please help me!!! Any sugestions this is my whole code again: Dim oExcel As New Excel._ExcelApplication 'Microsoft.Office.Interop.Excel.Application Dim oWorkbook As Excel.Workbook = oExcel.Workbooks(1).add 'Microsoft.Office.Interop.Excel.Workbook = oExcel.Workbooks.Add oExcel.Visible = True oWorkbook.Worksheets.Add() Di ...Show All
Windows Live Developer Forums FireFox bug in V3
I tried my VE v3 app in FireFox and I got the following error: Error: [Exception... "'Msn.Drawing.Exception: Your Web browser does not support SVG or VML. Some graphics features may not function properly.' when calling method: [nsIOnReadystatechangeHandler::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no] Any help is appreciated. The V3 map doesn't work in Firefox < 1.5, so if you have like 1.0.7 it doesn't work with the error you noted. Hope they'll fix it soon. Still alot of people are on < 1.5. ...Show All
Visual Studio Express Editions Microsoft Agent Request Event Question
Happy New Year VB Experts, I am attempting to use the Microsoft Agent in an application; you know, the Clipit and Merlin characters. According to the documentation that I have found there is a Request event which is fired by a number of the Agent methods. The agent _RequestComplete event is used to keep the Agent animations and the rest of the program in sync. This is how I attempted to program the Request event. The code sample just contains the code pertaining to this problem. Public Class Form1 Private WithEvents MYAgent As AgentObjects.Agent Private MYChar As AgentObjects.IAgentCtlCharacter Private MYRequest As Object Sub LoadAgent() MYAgent = New AgentObjects.Agent With MYAgent .Connected = True ...Show All
SQL Server Remote connection to database on same PC?
I am running the SQL express advanced on the same PC that also hosts my Visual Basic Express application. I have user instances turned off and full-text enabled and working from within a SQL query window. However, I can not create a working connection to the database using the data source wizard from the server explorer within VB.NET. Since this is on the same PC, do I need to enable anything other than shared memory I get the error: Provider SQL Network Interfaces, error 26 Error locating server/instance. DeBug Visual Basic Express has a "Database Explorer" which contains a collection of Data Connections. I can right click the Database Explorer pane and choose Add Connection. This launches ...Show All
SQL Server FTP task - StopOnFailure not working as I expect?
Hi I'm using an FTP task in a loop to download files from a WAN based FTP server. I've got a script to generate the name of the file I require and place into a variable. Problem is sometimes some of the remote files haven't been published so the FTP component errors and the package fails. I tried setting StopOnFailure to False - all I get is the following errors [FTP Task] Error: File represented by "User::RemotePath" does not exist. [FTP Task] Error: Attempt to read message string for 0x80020918 failed with error 0xc02090f3. Make sure all message related files are registered. What I want to do is ignore the error and perform the next loop iteration Is this a bug, or am I missing something Dave ...Show All
Visual Studio 2008 (Pre-release) controls on top of each other
I got a scenario, where I have to have some controls pop up on top of some other controls, basically just like a popup. So in my first attempt i used a Popup, but this element has some behavior, which gave me headaches. The biggest problem was, that the popup won't follow the original pop-up location when i.e. the window is moved or the content of the panel is scrolled up or down. Then I thought about using an adorner. Everything worked fine, except that I cannot interact with any control in my adorner layer. Here's my adorner class: using System; using System.Collections.Generic; using System.Text; using System.Windows.Documents; using System.Windows.Controls.Primitives; using System.Window ...Show All
Visual C# how to convert text string to decimal numbers?
I developed a form. There is a textarea for user input. Let's assume the textarea' s name is TBFreq ( I need the user to input the frequency) It seems when I get what the user input by TBFreq.Text , I get the string . In the program, I need to check whether the number user input among the required range. How to convert the string to decimal numbers Is there any built-in function for this After check, I should convert the decimal number to hexdecimal format and then send through some COM port to the board. So it seems I should convert the number again. Is it possible for me to convert the string to Hexdecimal number directly and then compare the it with some Hexidecimal values However, when I try on my PC, I can not co ...Show All
Visual Studio Express Editions .tmp files
G'day: Since installing the latest service pack on c#, the project directory is being filled with .tmp files. Any suggestions G'day: " Are you referring to the VS 2005\Projects directory..." Yes. Prior to the instalation of the SP, I didn't see them either, and yes, it dosen't hurt to delete them, which I've been doing. Just a pain. Thanks Jack ...Show All
Visual Studio Tools for Office Setup Project Custom Action to set CasPol
Ok, final piece to my project. I need to be able to set the CasPol settings as part of a script run in my setup project. The wonderfully clear MS documentation sugggests that it should be easy to create a custom action to do so, yet all the wizard allows you to do is add files, not add a custom script to run the caspol settings. Can someone point me to a good resource for doing this I need to set caspol for a network share so I don't think the typical setsecurity or mad's security class will work. Thanks Denis, There are a couple ways to do this, I created an external DLL that essentially executes CasPol, passing it the necessary parameters (after all, CasPol is nothing more than a command-line utility) I then added tha ...Show All
Visual Studio Express Editions How can I get the current Browser URL?
I have the need to automatically get the current page's URL for the user, how can I do that in VC++ 2005 express please DOSrelic wrote: I know very well about the capabilities of the browsers to save .mht files but if you try to do that in IE7 and there are any spaces in the path it substitutes %20 for each space making that file inaccesible! Besides whith with the amount of ASP.NET infiltrating the web it is impossible to save the pages without IIS and probably the initiating server's input too! These 'poor' people you speak so disparagingly about have scrimped and saved to upgrade their operating system are not stupid but cannot afford broadband as well! I do not believe you have saved a .mht with IE7 because 50% of t ...Show All
.NET Development .NET 2.0 or 3.0 which one do I need?
Hi, is 64-Bit development possible with .NET Framework 2.0. If no which Visual Studio Version supports the 3.0 Framework Thanks, Hello, Yes, it is possible with .Net 2.0. (VS 2005 supports 2.0 AND 3.0). Basically, .net 3.0 is 2.0 on steroids. That is, .Net 3.0 = .Net 2.0 + WF(workflow framework) + WPF(presentation framework) + WCF(communications framework) Hope this helps ...Show All
Commerce Server Some problem importing 2002 catalog to 2007
I was able to import a catalog from 2002 to 2007 without any error message. But when I inspected the catalog in catalog manager, products with variants are not being imported properly. For example: <ProductVariant listprice="5" Item_x0020_Number="614" rank="8" Color_x0020_Image="614_sw.gif" Variant_x0020_On_x0020_Sale="No" Variant_x0020_On_x0020_Sale_x0020_Through_x0020_Date="2006-10-31T11:56:33" Variant_x0020_Regular_x0020_Price="5" Out_x0020_Of_x0020_Stock="No" Variant_x0020_Sort_x0020_Order="8" > <Variant_x0020_Name Value="Misty Brown" language="en-US" /> <Color Value="SC10" language="en-US" ...Show All
