MaggieChan's Q&A profile
Windows Forms Error connecting to server when passing data to web page from windows app
The following simple code works on my dev box but generates an error (shown below the source code) when run on the web server where it needs to live. Does anyone have any ideas Imports System.IO Public Class Form1 Inherits System.Windows.Forms.Form Dim w As StreamWriter = File.AppendText("TesterError.log") Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim xmlhttp As Object Try w.Write("started" & ControlChars.CrLf) xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") w.Write("Created XML object" & ControlChars.CrLf) xmlhttp.Open("POST", " https://www.bogu ...Show All
Visual C# Best practice in multilingual applications (Resource Files)...
What is the best practice structuring resource files when developing multilingual applications... The options that I have so far: Few resource files containing a lot of texts. Customers only have to translate texts once. Resource file may become large, may have to load more than one file to be able to get the text we are after. Many resource files, e.g. one per form. Customers have to translate texts multiple times. Resource file remain small, only load one per form. Are there any performace issues when loading resource files Does anyone have any comments or thoughts. Maybe you have done it completly different Appreciate any comments. Anders... In my past experiences we always ended up with few resourc ...Show All
SQL Server An error occurred while performing this operation.
Hullo Team, I kindly request for your help so that I could be able to start reporting services. The main services are running but reporting services is not running. It actually gives me the following error TITLE: Microsoft SQL Server Management Studio ------------------------------ Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: The Report Server Windows service 'ReportServer' is not running. The service must be running to use Report Server. (rsReportServerServiceUnavailable) (Report Services SOAP Proxy Source) For help, click: http://go. ...Show All
Smart Device Development How to add a self register dll in a solution and cab file
My project needs a dll to be registered in gac of device.[it is System.SR.dll resource dll] How Can Add a simple folder in my solution and then add this file in the project. ThenHow can I add this file in the cab file so that it will be self register 1. This file is not self registering DLL but managed assembly. 2. You create a folder and add some managed DLL to the CAB project the same way as any other file. 3. You can not redistribute this file, you need to redistribute entire CAB file which would GAC it for you. Please see this for list of files you can redistribute: "%ProgramFiles%\Microsoft Visual Studio 8\redist.txt" 4. Please see this on how to GAC assembly: http://msdn.microsoft.com/library/default.a ...Show All
.NET Development problem with converting PDF to Xml
Joe thanks a lot for your early replay im trying to do this simply open the PDF document and I make it saved into as a .xml format. If the word like “first“ in pdf document ,its displaying like ” rst “. Where ever the fi,ff,ff,<,>, is their that symboles replaced with "box" symbol . here are the some of the examples what i am getting in xml: different -> "di erent" (a) changed into " a " changed into " " hid; 1i h=i hid; 2i h+i hid; 3i h_i h60i so please give me an idea to solve the problem Thanks, Ram krishna The relationship between a PDF document and the XML file it was created from is the same as the relationship between shredde ...Show All
SQL Server Create an array in a result field
I am between the "newbie" and "intermediate" stages of writing SQL code and I am wondering if there is a way to capture multiple results into one field so I can basically create a "set" for a unique identifier. Here is few result samples I receive from this code I am using now. ReqNo ProcID 7102005 1409 7102005 1796 7139003 1411 7139003 6097 7261030 1409 ...Show All
.NET Development c#3 and linq installation
Hello, I would like to know if it is possible to use c# 3.0 and linq. I've downloaded and installed : .NET Framework3.0 Runtime Components and Windows SDK for Vista and the .NET Framework3.0 but nothing is new in visual studio... I've seen in a webcast presenting the linq project that the assembly to use is called : System.Data.dLink. but it is not available. Is there anything I've forgotten during installation Thank you in advance. mathmax You would have to install the Linq preview , you may also want to read Restoring Smart Tags in the C# IDE after installing the C# Language Service (LINQ Preview May 2006) . ...Show All
Visual C# Dynamic Property Value Retrieving
Is there a way to dynamically retrieve all the property values from any given object without specifying the property names Yes,via reflection: Dictionary< string , object > GetProperties( object obj) { Dictionary< string , object > map= new Dictionary< string , object > (); foreach (PropertyInfo pi in obj.GetType().GetProperties()) { map.Add(pi.Name, pi.GetValue(obj, null )); } return map; } ...Show All
.NET Development Writeable IList<T> Poperties in Linq to XSD
The Linq to XSD Overview document states: The object model for the running example looks as follows: class Batch : XTypedElement { constructor Batch(); explicit coercion Batch( XElement ); property IList < PurchaseOrder > PurchaseOrder { get ; set ; } } Why is PurchaseOrder not readonly, as is custom with collection properties Apologies for my late reply. And yes, good questions. Basically, it's write-enabled so that you can using the cu ...Show All
Visual Studio EXECUTE permission denied on object 'sp_sdidebug', database 'master', owner 'dbo'.
Debugging asp.net application gives a strange error Hello - When i try to debug asp.net application (Framework 2.0) a strange error is logged in the eventviewer. EXECUTE permission denied on object 'sp_sdidebug', database 'master', owner 'dbo'. And I ensured that the Enable Sql Debugging flag is unchecked in the project properties Can anyone please help how to get rid of this error. Thanks- Shyam Moved to the Visual Studio Debugger forum. Take a look at the following article to see if this helps: Troubleshooting tips for T-SQL Debugger in Visual Studio .NET ID: 817178 http://support.microsoft.com/kb/817178/en-us This ...Show All
Windows Forms Setting the DataGridView columns
Hi friends, I have many datagrids in my application. So wat i want to do is to have a common grid which takes care of setting all the styles and the required columns and their widths,dynamically. I have taken a separate class which takes care of the styles,but i want to have a generic method in that class that sets the column names and their widths respetively.How do i approach this problem . Any links would be of great help. Thanx in advance, subhanet Its not clear to me what you are aiming for. I suppose that you can create your own class of data grid inheriting from the DataGrid class (unless the class is sealed), and then set the properties you want in the class's contructor. But that wi ...Show All
Visual Studio Problem in OAProject.Properties
Hi I'm using the MPF with my specific VS projects but I got an error while acessing their properties (i'm using September SDK). In the OAProject property, public virtual EnvDTE. Properties Properties { get { object outputProperties = null ; IVsExtensibility3 vsExtensibility3 = this .project.GetService( typeof ( IVsExtensibility )) as IVsExtensibility3 ; vsExtensibility3.GetProperties( this , this .project.NodeProperties, out outputProperties); return (EnvDTE. Properties )outputProperties; } } I always get an error 'Attempted to read or write protected memory' in the GetProperties call. However, if I change the code to an implementation similar to OAProjectItem ... ...Show All
Visual Studio 2008 (Pre-release) ITypedList not supported in data binding?
I have custom IBindingList implementation which also implements ITypedList so that I can add my own calculated list item properties on the fly. It works well in Windows.Forms data binding and now I have realized that ITypedList is ignored in WPF data binding. Why Did you forget it Our list controls (ListBox, ListView, etc) are not limited to homogenous types. So although each item does make it into the list we still need to bind to the individual items in order to generate visuals for them. One way to do this is to implement ICustomTypeDescriptor on your IBindingLists items. Here is a quick and dirty sample public class MyListItem : ICustomTypeDescriptor { ITypedList _owner; interna ...Show All
Visual Basic End if markers
For a for next loop it is possible to add the variable after the word NEXT. If it is the wrong variable then there is an error message. Is there something similiar for If EndIf statements that helps to flag with EndIf goes with which IF. no....the for next loop lets you specify the next parameter such as: For x as integer = 0 to 10 step 1 ..... Next x Which is exactly the same as For x as integer = 0 to 10 ..... Next The "IF" statement has the following syntax in Visual Basic: If condition [ Then ] [ statements ] [ ElseIf elseifcondition [ Then ] [ elseifstatements ] ] [ Else [ elsestatements ] ] End If -or- If condition Then [ statements ] [ Else [ elsestatement ...Show All
Visual Studio Must the MSDN libraries be installed to use Visual Studio.NET 2003 (and his components)
Hy, I'm new here, and I think this is the place to ask my question, so... I've just got Visual Studio .NET 2003 installed and my question is if the MSDN libraries are needed to use Visual Studio .NET 2003 I want to use all of its components like C# specificely. So would it work without the libraries Thx very much. Tom MSDN is just the SDK documentation, you can uninstall it if you like however you would then have no local help. if you are referring to the .NET Framework then yes you DO need that, otherwise you cannot develop in Visual Studio ...Show All
