R_Vogel's Q&A profile
Windows Forms Click Once appliction name change
I am deploying an application 'MyApp' using click once. Now i need to change the name of the application as 'MyApp2' (ie from MYApp.exe.Deploy to MYApp2.Exe.Deploy) I have this as offilne deployment as well (ie available via Startmenu). Now when i change my deployment name , if the user opens the app from start menu , it would not pick up the update since the deployment name for the app is changed. How do i handle this situation I came across som what similar senario in that case the team wanted to change the name I changed the visual representation in (publish/update) rather than changing the name of the application. By default, if you change the application name I do not think clickonce ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotate and translate
It must be late or something because I can't get something pretty trivial to work. I'm getting input from the XBox controller...specifically the right joystick. Any Y movement is supposed to make my model move along the Z axis. Any X movement causes the model to rotate around the Y axis. Simple enough. When I move the joystick directly forward the model moves...if I move the joystick directly to the side the model rotates. When I move the joystick diagonally thus getting input from both the X and the Y axis the model does not both translate and rotate. It doesn't do much of anything. Heres my code.... if (state.ThumbSticks.Right.Y != 0) { Vector3 newPosition = new Vector3 (); newPosition.X = hm.Model.Bones[ " ...Show All
SQL Server Cannot create new or change existing subscriptions
We are having problems when creating new subscriptions or when trying to edit existing subscriptions. When editing an existing subscription, the report manager displays "An Internal error occured" message and when I look in the log the error says Only members of sysadmin role are allowed to update or delete jobs owned by a different login When trying to create a new subscription the report manager displays "An internal error occured" and the log says System.Data.SqlClient.SqlException: The schedule was not attached to the specified job. The schedule owner and the job owner must be the same or the operation must be performed by a sysadmin. We are running sql reporting services 2005 sp1. The report server database s ...Show All
SQL Server How to get sql server name with a vb-script?
Is there anyone who knows how to get sql server name using a vb-script I have tryed this: bKey = WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL") But it cant open it for read. Someone who knows a better way Regards SW-engineer What do you expect to happen if there is an instance of SQLExpress and an instance of SQL Server What do you expect to happen if there is more than one instance of SQL Server ...Show All
Visual C++ Static constructor in .lib not executed
I have a mixed .exe that uses a static native .lib, VS2005 SP1 I've found that in some cpp files that are part of the lib the constructors of global objects are not called. I've never before noticed the problem on the main .exe so perhaps is something connected to linking with the lib file. The only way I've managed to have the constructor of the global object be called is to add a global function (say "void DummyFunction() {}") in the cpp file that gets directly called by the exe. When doing this the cpp file global object constructor gets correctly called before any code starts to execute (and thus before the dummy call is executed). It seems like if no function in the cpp file is directly called by the exe the code in the cp ...Show All
Audio and Video Development validation
elem = document.createElement(tagName); I am not appending this 'elem' in markup document 1) The above document is a markup document. So, is it necessary to create an element with tagName(like div, p, timing....) mentioned in schema or can we use any user tagName 2) Will there be validation with schema for those elements and attributes created(not appended) at run time 3) If i append any element(that is not mentioned in schema) at run time, what will happen Thanks in advance The spec says that documents SHOULD be valid per their schemas, but that players MUST NOT try to validate against external schemas (see 6.2.1 in the spec). Players also aren't required to do any validation, but if the ...Show All
Microsoft ISV Community Center Forums VB for applications accessing data from web pages
I have an application in MS Access which needs to extract text data from a Web site. How can I use VB (in MS Access) to link to the URL and get access to the underlying HTTP (so I can parse for the data I want ) I've done the same thing in Excel, using the Microsoft HTML Object Library and Microsoft Internet Controls to parse HTML. In the VBA project (Tools>References) set references to these two libraries. I found the following thread useful also: extracting data from an html page ...Show All
SQL Server Update Statement
Table1 Table1ID ControlID (int) PermID 1 100 1251 2 101 NULL 3 102 NULL 4 103 2583 5 104 NULL Table2 Table2ID ControlID PermID LastChangedDate (datetime) 1 100 1251 08/02/2006 1:30 PM 2 100 1253 08/16/2006 3:30 PM 3 101 185 08/18/2006 8:15 AM 4 102 1908 08/14/2006 8:35 AM 5 102 2265 08/17/2006 11:14 AM 6 103 2583 08/18/2006 1:14 PM 7 104 2902 08/17/2006 4:32 PM How do I update Table1 PerMID with Table2 PermID with the latest lastchangedDate or the greatest table2ID for the same controlID Also update statement should ignore the the rows i ...Show All
Windows Forms Why won't the datagridview show all records in a dataset?
I have a datagridview control that works fine if there are less than four lines displayed, but gets strange when there are four or more. When a user changes the selected date, the dataset is purged and then refilled with data appropriate to that date. I use Me .Test_for_VBdotNetDataSet_Dynamic.Clear() to clear it and Me .Native_TimeTrackingTableAdapter.Fill( Me .Test_for_VBdotNetDataSet_Dynamic.Native_TimeTracking, Me .Label5.Text, Me .MonthCalendar1.SelectionStart) to refill it. The parameters are passed to the query that fills the dataset. After refilling, the dataset has five records. I can loop through those records and confirm that they are, in fact, what is in the database. The datagridview is bound to the dataset. When I check ...Show All
SQL Server Alternate the background color of rows
Hi! I 'm working whit a matrix. I want alternate the background color of rows. I did with table, but I don't Know how do I do with matrix. I desire something like this: column1 column2 row1 data1,1 data1,2 row2 data2,1 data2,2 row3 data3,1 data3,2 Please, if somebody can help me Thanks Specifically you want to read this blog article: http://blogs.msdn.com/chrishays/archive/2004/08/30/GreenBarMatrix.aspx -- Robert ...Show All
Visual Studio 2008 (Pre-release) IErrorHandler and FaultException<T>
I have a service using an IErrorHandler from which I'd like to return typed FaultExceptions. The ProvideFault implementation does something similar to the following: FaultException<GreetingFault> fe = new FaultException<GreetingFault>(new GreetingFault(error.Message)); MessageFault fault = fe.CreateMessageFault(); msg = Message.CreateMessage(version, fault, " http://microsoft.wcf.documentation/ISampleService/SampleMethodGreetingFaultFault "); The invoking operation contract is decorated with the fault contract attribute: [FaultContract(typeof(GreetingFault))] [OperationContract] void MyMethod(); The client application always receives an untyped FaultException, however, and not the FaultException ...Show All
Windows Forms Problem with ClickOnce and mandatory profile
Hi, I'm having problem running a ClickOnce application using mandatory user profile. I'm getting these error messages: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : http://192.168.0.2/ClickViewPlayerLite/ClickViewPlayerLite_1_0_0_2.application videoid=668 ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of http://192.168.0.2/ClickViewPlayerLite/ClickViewPlayerLite_1_0_0_2.application videoid= ...Show All
Visual Studio error MSB4018: The "GenerateResource" task failed unexpectedly
I have a Smart Device application that is generating the following errror when I attempt to build. I would appreciate any feedback in how to debug this error, or what might be a typical cause of this problem. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: The "GenerateResource" task failed unexpectedly. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e) C:\WINDO ...Show All
Software Development for Windows Vista Windows Vista other versions.
Hi, I downloaded windows vista RC2 build (v5744-16384) from microsoft connect site and installed in my PC. It is installed only Windows Vista Ultimate Version. Is there any option for installing other versions like Home Basic, Home Premium etc., Note: I downloaded Windows Vista (v5744-16384) FAQ document also from microsoft connect site. In that document, they have mentioned about all the versions of windows vista available in the v5744 build. But, i am not able to find any other versions. Thanks in Advance. Regards, dotnetsekar. I've been trying to install Vista Basic Home, but it seems it only can installing Ultimate. The install program don't ask for any product key. On Vista RC1 I was asked for product ke ...Show All
Visual Studio Express Editions how to trace/capture shutdown event of machine in vb.net
hi all friends.. i just want to know that how to i get or capture the shutdown event of machine in vb.net. Is there any way to get it....please help me.. thanks In your main form closing event you can use something like: If e.CloseReason = CloseReason.WindowsShutDown Then................ ...Show All
