PeteJM01's Q&A profile
Visual Studio 2008 (Pre-release) SvcUtil excludeType option :: Is it broken?
Hi, How do I get the excludeType switch to work on SvcUtil.exe At the moment this is my call(below), but it still generates the proxy class for MembershipCreateStatus. I've tried it a couple ways, but it always generates the class and I must delete it by hand because it conflicts with the real class. svcutil.exe /nologo /excludeType:"System.Web.Security.MembershipCreateStatus" http://localhost/Path/MembershipService.svc wsdl Is this a bug or something I'm doing wrong on the arguments I'd like to know so that I cans top worrying about it. Thanks ...Show All
Visual Studio QuickStart Tutorials installation fails
Hi I have installed VS.NET 2005 VSTS Beta 2. I am now trying to install the QuickStart tutorials but it fails; the log is shown below. I have installed IIS and APS.NET 2.0 manually followed by IISRESET according to the Configuration Details document but the setup insists on attempting to reinstall ASP.NET 2.0 and failing. No instance of Visual Studio of any version has ever been installed prior to installing VS 2005. I am using Windows 2000 Pro SP4. Any suggestions Thanks Craig 11:02:00 26 May 2005: ------------------------------------------------------------------------------------------------- 11:04:39 26 May 2005: [Begin Samples Configuration] 11:04:39 26 May 2005: [Info] ConfigSamplesDll_DoTasks: Starting 11:04:39 26 May 2 ...Show All
SQL Server Null Values in Destination
Hi to all! I created a simple package – data flow task, containing OLE DB Source, with Data Access Mode – SQL command and OLE DB Destination. My SQL command is update support_incident set date_closed = rn_edit_date where status_text = 'Closed' and date_closed is null DECLARE @CMonth as datetime DECLARE @LMonth as datetime SET @CMonth = '10/1/2006' SET @LMonth = DateAdd (m, -1, @CMonth) select @LMonth as Reporting_Date, (select count(support_incident_id) from support_Incident where rn_create_date >= @LMonth and rn_create_date < @CMonth) as Opened, (select count(support_incident_id) from support_Incident where Date_Closed >= @LMonth and Date_Closed ...Show All
Visual C++ Linking an app in debug mode (with /MDd) against static lib built in release mode (with /MD)
I remember this sort of mixing used to work fine prior to VS2005. But now it doesn't seem to. This suggests that one has to have a debug and a release versions of each library to be able to compile a debug and a release version of the application. The following short example results in an access violation exception: Compile A.* into a.lib in release mode with /MD (it doesn't matter if compiled with or without optimization): File A.h: #include <vector> class A { public : std::vector< double > v; A( int x) {} ~A(); }; File A.cpp: #include "A.h" A::~A() { } Compile app.cpp in debug mode with /MDd: File app.cpp: #include "A.h" void main() { A a(4); } The ex ...Show All
Visual Studio Team System Project Output Directories in Team Build
Most of my VS projects have the output directory defined in the project settings as /bin, however when I run a Team Build, no bin directories are created, there are just obj directories. Why is this and can I change it because in some circumstances (like building a windows service) some of the output is not copied to the obj folder, it is copied to the Binaries folder. Quote: Removing the $(OutDir) property from C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets will cause the output for every project to go to its "normal" location. (e.g. ..\<MyProject>\bin\<Configuration>) However this hack prevents code ana ...Show All
SQL Server StreamNotFoundException in reports with drill and images
Hi, I always have this exception: w3wp!library!1!02/28/2007-13:50:11:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.StreamNotFoundException: The stream cannot be found. The stream identifier that is provided to an operation cannot be located in the report server database., ; Info: Microsoft.ReportingServices.Diagnostics.Utilities.StreamNotFoundException: The stream cannot be found. The stream identifier that is provided to an operation cannot be located in the report server database. When i try to drill in a report that have images. The weird is that i only have this error when i view this report in ReportViewer in a .aspx page. When i try to enter in this report directly by using the ReportServer ( http://s ...Show All
Visual Basic debugging
SendKeys.Send( "%{PRTSC}" ) '<alt + printscreen> Application.DoEvents() in my program i am using the above code but when debugging SendKeys.Send( "%{PRTSC}" ) command is taking one minutue to get execute i dont know why and ( "%{PRTSC}" ) is sending the '<alt + printscreen> alt+ prtscr but my requirement is to send onely printscreen button '<alt + printscreen> can any one help me please do you need to use SendKeys to take a screen shot A better way would be to use the Graphics/Image classes: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=883719&SiteID=1 if you still need to use SendKeys, try using SendKeys.SendWait( key ) ...Show All
.NET Development DataAdaptor Update() method
Hello, I am facing a problem regard updating data back from a dataset to my data store using SqlDataAdapter. first i wished to perform updates from multiple tables at one call for Update() method but it did not work. Then i made a simple application to Update data of one table. Still i am getting same problem. ( No row is being Updated/Deleted/Inserted ). Here is the code. public void DoUpdate () { DataSet ds; SqlDataAdapter da; this .da = new SqlDataAdapter ( "Select companyName, address from companies; Select sms from Inventories" , @"MyConnectionString" ); this . da . UpdateCommand = new SqlCommand ( "Update Companies set companyName='New Compnay'; Update Inventories set SMS='New ...Show All
Visual C++ newbie help: importing functions from a dll in a C++.net project
Hi, I am using Microsoft Visual Studio 2005. I am trying to create a C++ application (Win32 project/application) that imports functions from a DLL. The DLL, which I did not create, is a Win32 DLL (that uses MFC in a static library). The DLL .h and .cpp files do not contain any classes. Just functions with __declspec (dllexport). I think that my problem is that I am very new to .NET (I am not sure I should post this question in a different form). Here is what I have done: I tried creating a new solution and adding the DLL project to it and then building the project (to generate the .dll file). Then I added a new project to the solution and tried to: 1-Add the dll to this project as a reference: using Project -> References -&g ...Show All
SQL Server First Time Installing - Can't Find BIDS
Thank you to all that take the time to read this! All software is installed on a single development pc. I have a SQL Server 2000 Developer Edition Database that I am using to test a new Accounting System. SQL Server 2000 is the required format. I would like to start developing some SRSS reports against that database. It was suggested that I install the SQL Server 2005 Reporting Services, because I was told 2005 is less buggy and easier to use. I installed SRSS 2005, and only SRSS 2005, and used the Configuration Tool to get it configured properly, I think. I have green checks on everything except "Email Settings" and "Execution Account" Now, I want to write some reports. BIDS is not under the "Mi ...Show All
Visual Studio 2008 (Pre-release) "Trust not granted" message for Everything permission set
Hello, My WPF web browser application needs some additional permissions for execution (some of security and reflection permissions). I added them on the Security page of project in Visual Studio. I published my application on IIS web server on my computer. I had to modify Runtime Security Policy in order to execute my application. I created a custom permission set on basis of the LocalIntranet permission set and added required additional permissions there. I set my custom permission set for the LocalIntranet zone and my application began to work after that. But when I set the Everything permission set, "Trust not granted" message is shown. Could you explain me why it happens Everything permission set includes more p ...Show All
.NET Development Deserialize - unable to find an Assembly .....
Hi, I've got a really strange error. I'm using a fairly standard method to implement the IClonable interface, basically I serialize my object to a memory stream and then stream it back again. This all works fine in the .Net runtime environment and if I use a test application. However, I need to run as a COM control inside of an HTML page (long story, but I am embedding it in the home page pane of Outlook). Anyway everything works fine except this routine. It fails when trying to deserialize with "Assembly not found". I added some debug code to load the assembly dynamically and that all works fine. It can't be a version issue as I am serializing and deserializing the same object in the same method. I've traced where the framewor ...Show All
Visual C# How do I limit ticks is a checkListBox to one at a time?
Hi, I am trying to use a checkListBox to select one of three options. I only want any one option at a time. I have found the following 2 instructions, which, I would have thought, would have done what I want, but I can still check all three boxes. this .checkedListBox1.CheckOnClick = true ; this .checkedListBox1.SelectionMode = System.Windows.Forms. SelectionMode .One; Incidentally, I tried this .checkedListBox1.CheckOnClick = true ; this .checkedListBox1.SelectionMode = System.Windows.Forms. SelectionMode .None; and this did whatI expected, I could not check any of the boxes. So, any one know what I am doing wrong Many thanks for being there John. You can iterate ...Show All
Visual Studio 2008 (Pre-release) Generation of client proxy class for a service in VS 2005
Hi all, After installing the Visual Studio 2005 Extensions for WCF and WPF , I've noticed that you can conveniently add a service to your project. However, I couldn't find any way to generate the proxy client from inside VS. The only way I could do that was to use svcutil.exe in the command line. Am I missing something Thanks in advance. This was announced in our November CTP post here : This November CTP is the last planned release of Cider as an extension to Visual Studio 2005. Future CTPs of Cider will be available in the preview releases of the next full version of Visual Studio which is currently code named "Orcas". It seems like lots of people want to develop wcf/ ...Show All
SQL Server SQL Server Express: Configure concurrent multi-APPLICATION access?
Hi Everyone, I have a software solution that consists of two separate applications that share a SQL Server Express database on a single computer. Everything is working great, except when both of the applications want to access the database at the same time. All I can find is information on configuring multi-user access in a distributed system. I'd appreciate any information on configuring multi-application access on a single computer... Thanks, Mike A Lesson in User Instances Here is what I have learned after researching my situation. The following summary came from a great article at: http://msdn.microsoft.com/sql/express/default.aspx pull=/library/en-us/dnsse/html/sqlexpuserinst.asp I h ...Show All
