Steven J. Reed's Q&A profile
Visual Studio 2008 (Pre-release) Struggling with svcutil
hi I have several services in my solution. There is multiple data classes that get shared across these services. When I try to use svcutil against several of my services at the same time, the proxy that's spit out, in addition to many parsing errors, does not handle the namespaces well, and there just seems to be an abundance of problems getting the different service proxies to play nice. I tried using the namespace switch, but it didn't like the following: svcutil [service1] [service2] /out: myproxy.cs /namespace: Value.Value.Val The svcutil chokes on the namespace. I've resorted to using WSDL to build the proxies, and that seems to work fine. But the problem there is that the /sharetypes switch doesn't seem to work wit ...Show All
Smart Device Development hDeviceWindow = 0xcccccccc
All my calls to d3d9->CreateDevice fail and return the error code D3DERR_INVALIDCALL. I used the de bugger and it think I have traced to problem to the D3DPRESENT_PARAMETERS structure. whenever I instanciate it, it's variable hDeviceWindow is set to 0xcccccccc, the value that the compiler assigns to variables that are not explicitly instanciated. I am fairly certain this is the cause of the problem, but I have no idea how to fix it. Here is my source code: /* still need to do: 1. initilize sound system 2. initilize input system 3. add particle structure and .x file functions */ #define DIRECTINPUT_VERSION 0x0800 #include "d3d9.h" #include "d3dx9.h" #include "dinput.h" ...Show All
SQL Server Interlektual property
Hello all, How do I protect my Interlektual property for a BI solution ( analysis services) I do not want others to be able to view and change my coding Thanks heaps for any advise. To deny others to see definition of your database, you should only grant Read rights to your users. Others can copy your design if given Admin rights to your database or ReadDefinition rights. Create a role in your database and grant Read permissions to your users. Edward Melomed. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Visual C++ msvcrtd.dll not found
Hi!!!!I'm not sure if this is a .NET problem and I'm not even sure that this thread belongs here.But when I try to run a compiled debug config of a C++ program on VS.NET 2003, I get the message: msvcrtd.dll not found I searched the internet and found that is a common problem,but I can't find where to download the .dll file from.Do you know Or at least do you know how to overcome the problem The msvcrtd.dll belongs to a executable that is in a debug state. The msvcrtd.dll is not redistributable. So you can not find this file in any download package. When you run this program on the machine were it is developed it should run. If not your installation of VS is defect. Try to repair it. ...Show All
Visual C# Using a class as a parameter
Hi there! I have to pass a class (not an instance) as a parameter to a method, and I have no idea if I can do that -- tried various things and it doesn't work. It should behave like this: I have a BaseClass. Another ChildClass inherits it. The ChildClass has a method (or Property), static or not, that returns a class. The BaseClass has quite a few methods where this class is needed (to invoke static methods on it), so the BaseClass invokes the "GetClassINeed", which returns the static class and then uses it. The reason I need it is that I have about 30 of those ChildClasses, and they all need those methods defined in BaseClass. I don't want to add them in all of them if not needed. Also, to create instances of that Cla ...Show All
Visual Studio Team System E-mail Alerts Problem
Hi, I'm having a problem receiving e-mail alerts from TFS. I know the problem is with connecting to the e-mail server due to the page: http://blogs.msdn.com/psheill/archive/2005/11/22/495863.aspx but I don't know exactly how to solve it. To quote the page it says: "Sometimes the mail server will refuse to accept email if the sending account doesn't itself have a mailbox, or if the "from" address doesn't match the account that is connecting to the server. " When it talks about the sending account itself not having a mailbox does this mean the server must have outlook installed on it or something else Could anyone give a clearer explanation of this quote please Thanks, SMudie ...Show All
SharePoint Products and Technologies possible bug in SPFolder? -getting InvalidOperationException when accessing list
Hi, Setup: System.Web.UI.WebControls.WebParts.WebPart WSS v3 In CreateChildControls i add a Microsoft.SharePoint.WebControls.NewItemButton with SPControlMode.New The button is assigned the ID from a list that is situated in the root of the Site Collection The web part is always using this root list also if it is called from other sites. Everything works fine in the root, including the "new list item" button. In sub sites, everything works except when i add the NewItemButton to the control tree, i get an InvalidOperationException (Operation is not valid due to the current state of the object). The stack trace shows that the exception occurs in SPFolders [7544] Exception StackTrace: at Microsoft.SharePoint. ...Show All
Visual Studio Express Editions How do I test for nulls in a date column?
Visual Basic 2005 Express: When a patient record is added to the SQL database table, the default date is being entered, but, if the user deletes it, the program aborts with a: System.Data.SqlClient.SqlException was unhandled Message="Cannot insert the value NULL into column 'BirthDate' column does not allow nulls. UPDATE fails. BirthDate is part of the primary key, so, I cannot specify "Allow DbNulls". I added 2 different "If" statements, but neither one of them is catching the condition: If IsDBNull(PatientBindingSource.Current( "BirthDate" )) Then PatientBindingSource.Current( "BirthDate" ) = DefaultDate End If If PatientBindingSource.Current( "BirthDate" ).ToString = "" T ...Show All
Visual Studio HELP!!! error 25007 while i install visual studio 2005,how can i fix it?
i corruptted a critical problem while installing visual studio 2005 pro. in my en_xp with sp2 and all updates. while i tried to install that visual studio 2005 sp1(beta), the install wizard told me i got a not enough space in my C:/ drive, so i rolled back it. however, someone cancel it while it rollbacking, while i tried to open the existed visual studio 2005 to write some code, a error happened, so i decided to reinstall the visual studio 2005. Before that, i uninstall the Document Explorer and XML 6 parser ,also .net framework 2.0 and all components of visual studio 2005. even more, i deleted the C:\assembly folder. i cannot bear that just. However, while i reinstall the visual studio 2005 pro. it runs into a critical error ...Show All
Visual Studio 2008 (Pre-release) WCF bug in message deserialization?
Hello We have an interop scenario where a WCF webservice is called by Oracle. Thus we don't have the comfort of using Svcutil.exe to generate a client - instead the SOAP messages have to be built manually . In the present case we are passing an array of items (item is of type "complex type" which has many properties) to a webservice operation. If the XML of such an item array does not completely conform to the schema in the WSDL, WCF seems not to be able to deserialize it into an array of .NET objects. That sounds feasible so far. But it's unexplainable for me that WCF does not throw an exception and/or emit this deserialization fault in one of its logs, instead we just get an empty array in the .NET world. Or is it just us ...Show All
SQL Server Printing differences between RTM and SP2
Using SQL Server 2000 SP4 and SQL Server 2000 Reporting Services I'm using the code from http://blogs.msdn.com/bryanke/articles/71491.aspx and have discovered a problem with the printed report between the RTM version of Reporting Services and SP2. Our development server had not been upgraded to SP2 and using Bryan's code the reports were printing without any issues at all. Now the server has had SP2 applied the report footer is missing and data on the right-hand margin is truncated. Anyone got any ideas why this would be the case What can I check to see why this would be happening Thanks I'm not sure what would have changed to cause this behavior. The only other thing I can think to try is ...Show All
Windows Forms Change cursor from Cursors.WaitCursor
I've created a simple form that has some labels, text boxes, and two buttons. Currently there is no code except Application.Exit on the Exit button. When I compile and run this project, it launches the form and shows a WaitCursor. The WaitCursor never changes to an Arrow. I am able to click in the text boxes and enter text as well as click on my two buttons even though the cursor is a WaitCursor. I tried changing the Cursor property of the form, but after I make the change it reverts back to WaitCursor. I also tried changing the Cursor property for each of the controls but it immediately reverts back to WaitCursor. I've also tried changing it in code: Private Sub frmMain_Load( ByVal sende ...Show All
Visual Studio Dynamic data source at runtime?
I've created some reports and deployed on Report Server 2005, and I created a winform application using ReportViewer control to display the reports. Can I assign data source to report during runtime like logon database in Crystal Reports, because I've several database with the same structure, I want to use one report file for all database by switching the data source in my winform application. Does anyone know how can I do this Thank you very much!!! Hi, You can also have a privte datasource in the report. Private datasources can be dynamic like: ="Initial Catalog=......." + Parameters!..... ...Show All
Visual Studio 2008 (Pre-release) Custom binding and wsHttpBinding
Hi, there. I need help from you guys again. If I want to make the default setting of wsHttpBinding in custom binding. How can I do that The reason for doing this is because I want to change only a part of the default setting which you can not do with system-defined setting. For example, wsHttpBinding is perfect for me to connect with Java except that the soap message version is different. However, I have no way of knowing how to have the same setting in custom bindings. So if you can help me out or guide me to a page where it tells me all that. That would be wonderful. Thank you for your time in advance!!! You answer helped me great deal, Madhu. However, is there any way we can do the same thing in config file ...Show All
SQL Server Threat due to SQL Injection
I have gone through a terrible situation a week ago. One website was working fine since couple of years and suddenly it was hacked. I checked the entire code in all the pages and it was not at all modified. When I checked the database, I found that javascript was inserted in it. As soon as a recordset was displaying it, javascript redirected that page to the hacker's site.. This was the mechanism was used by hacker. Which database can be more secure in such situations Nishith Shah it is better to have some client validation than no validation at all, and helps in terms of fixing out any possible attacks on the client side than on the server side, as there will be some perf issues trying to deal with validation on the server ...Show All
