mamatham's Q&A profile
Internet Explorer Development running an hta from another hta
Hi, I have two HTAs. One that is run automatically and the other that should be opened by clicking a link in the first HTA. When I put it a regular link (<a href...) it notifies on a security issue. To workaround this issue I did the following: 1. Created a Wshell script that will run the hta. Sub OpenHTA(link) set wshell=createobject("Wscript.shell") wshell.run("mshta.exe " & link) End Sub 2. In the link i created an Onclick event handler that calls the subroutine I created above. Unforyunately, it creates an mshta.exe process but the hta itself does not display. Any idea how to resolve this By the way, I did the same thing to run a .chm file and it works fine. ...Show All
Visual Studio Team System Error using MSSCCI provider. <file>.sln not successfully written. ...
I down loaded the new MSSCI provider and insntalled it on a computer that has both VS2005 and VS2003. I opened our 19 project VS2003 solution and tried to add it to source control. I was prompted for the TFS server. Then after several messages in the output window, The following repeated several times. ---- Operation started at time 11:21:34 AM ---- ---- Operation completed successfully at time 11:21:35 AM ---- The system the then appears to be saving information into the solution, but I get the following message. The solution file 'c:\dge\Dev\Srver\Srver.sln' was not written successfully. Check that the location is available, the file is writable and there is enough room on the disk. I am not sure what is ment by the ...Show All
.NET Development & and $ symbols in xml causes validation to fail
Hi, i have a xml file with a number of elements in it. I am using xsd and XmlValidatingReader. I have fields that contain text data. These fileds all work fine except if the users enter & or dollar signs. To get around this i specified a regex pattern in the xsd but this makes no difference.The encoding is UTF-8. The validation fails. Any ideas would be really welcome this is the element <ethnicCopy> & ethnic </ethnicCopy> the datatype i specified in the xsd is <xs:simpleType name="EthnicDataType"> <xs:restriction base="xs:string"> <xs:maxLength value="2000" /> <xs:pattern value="^(.*)$" /> </xs:restriction> </xs:simpleType& ...Show All
SQL Server SQL Server Express Limits
I am trying to understand the limits that are placed on SQL Server 2005 Express Edition. I understand that 4GB is the limit of the data files. This includes tables, indecies, etc. I was wondering if I put tables in different Filegroups does the 4 GB limit still apply as a limit for all filegroups combined, or is it on a per file group limit Also, is the 1 CPU and 1 GB of memory a per instance or per machine limit. For example, can I have two instances on a dual processor machine and use both processors, one for each instance 4GB is the max database size accross all files/filegroups. You can install Express on any server, but it will only address 1 CPU and 1GB RAM regardless of how much the server has. ...Show All
SQL Server Anchoring textbox to a page.
Hi, In our project I have a matrix report. In that I need to anchor a textbox to the right end of the page, so that the textbox will always be at the right end of the report/page. I also need to place the textbox at the page header. (but I am also open to solution / workarounds which does not include page header!!) Thanks in advance Arun. thanks Andy. i would also like to see that in SSRS as a feature!!.. for now i will try to anchor the textbox using some expression.. mean while if anyone comeacross any other ideas please keep me posted!! thanks Arun ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Windows XNA default template will not run (any suggestions?)
Hey Everyone, I have installed all the required goodies on two computers; on the first, everything works as expected. On the second, I am running into an error when I attempt to run the compiled build of the default XNA game template. The error signature reads: EventType: clr20r3 P1: xnatest.exe P2: 1.0.0.0 P3: 44fa3432 P4: microsoft.xna.framework.game ... etc. The second machine had VC# Express on it since June, DX Aug 2006 SDK was installed prior to installing XNA GSE; the latest DX run-time is also installed. Also, I do have the .NET Framework 2.0 redistributable installed. The error appears to be related to the CLR, but any advice/suggestions would be super-appreciated. Thanks :) ...Show All
SQL Server Insert to a Linked Server possible via Service Broker?
I have configured a non-SQL linked server (via an OLE DB provider) and I wish to insert data into it via Service Broker but I am getting the following error in the SQL Server log: The activated proc [dbo].[sp_ mytableServiceProgram] running on queue TestDB.dbo.mytableQueue output the following: 'Cannot promote the transaction to a distributed transaction because there is an active save point in this transaction.' As you see below, my strored proc. is not issuing any 'save trans' statements, so why is it not allowing me to wrap my code in a transaction How else can I use a transaction (in order to not lose anything from the queue) and yet still be able to insert to the linked server CREATE PROC sp_mytableS ...Show All
Visual Studio 2008 (Pre-release) Cross Thread UI Control Access
Is there a way with WPF to update an Image control in a Window from a different thread from whence it was created I am trying to start a separate thread to constantly pull images from the Internet and update an Image control in my Window. I need to do this in a separate thread to keep the UI controls responsive. In a Forms application, I could use Invoke() with some delegates and accomplish this. WPF Forms does not have Invoke(). I have looked at BackgroundWorker class, but that only lets me report progress. As soon I try to update any control directly, I get an error stating that the control was created in another thread. Any ideas which direction I should follow Actually BackgroundWorker is much ...Show All
Visual Studio DSL Tools Labs for RTM?
Are there any labs available for the DSL Tools RTM I'd like to use this to teach a couple of students what the DSL Tools can bring. Thanks, Dennis Hi Dennis, The current release of the DSL Tools also includes a few sample DSL's. You can find them in ..\Program Files\Visual Studio 2005 SDK\2006.09\VisualStudioIntegration\Samples\DSLTools. TOne of them, the "End-End Wizard UIP" sample comes with quite an extensive document that explains this sample in detail. The sample project files, together with the document will certainly provide your students with a great overview of the possibities of the DSL Tools! Edward ...Show All
.NET Development Manipulate random number
Hi, Is it possible to manipulate a random number which is given from the method Random() I'm making a calculation and for the minus sums i have a little problem. This is how the code (partially) looks like: case 10: int number1 = rnd.Next(0, 6); int number2 = rnd.Next(0, 6); label.Text = rnd.Next(0, 6).ToString() + " - " + rnd.Next(0, 6) + " ="; answer = number1 - number2; break; The problem is, when number1 is smaller than number2. If this is going to be the case, i'll get negative numbers. How can i prevent that The 10 represents the number which is given by the user in a textbox. Thanks in advance! Hi Brendan, Thats a really smart solution! It worked, thanks! I have anoth ...Show All
Smart Device Development searching for a file
I am trying to figure out how to search for a particular file or folder that may or may not be on a smart device. I am needing to the get path to this folder or file. I know there is a way to do it, but i cant figure it out. Anyone got any ideas. You can easily write your own search function by useing Directory Class from System.IO, and its functions such as public static string[] GetFiles ( string path, string searchPattern ) For more info, see: http://msdn2.microsoft.com/en-us/library/system.io.directory.aspx http://msdn2.microsoft.com/en-us/library/wz42302f.aspx For accessing directories, use GetDirectories function. ...Show All
Visual Studio Team System rsLogonFailed
I get the following error on all my reports. I have added permissions to everything that moves, and still. Any idea which user needs permission to what http://myServer/Reports/Pages/Report.aspx ItemPath=..... Logon failed. (rsLogonFailed) Logon failure: unknown user name or bad password. (Exception from HRESULT: 0x8007052E) Can you post the details of your datasources (TfsOlapReportDs and TfsReportDs) Can you verify that the "Connect Using: Credentials stored securely in the Report Server" option is selected (and that you have provided the correct credentials). In addition, ensure that the "Use as Windows credentials when connecting to the data source" checkbox is checked ...Show All
SQL Server metadata services for analysis services
Hi, I was wondering if anyone can tell me what options do I have to browse metadata for a cube built on Analysis services 2005. We would not like to buy a new thrid aprty tool for this. Does sql server 2005/ analysis services 2005 have a inbuilt option to view the metadata Thanks in advance. nevermind, i found it here, http://msdn2.microsoft.com/en-us/library/ms160930.aspx thanks again. ...Show All
Visual Studio Team System ASP Unit Test with Forms Authentication
I have a page that I'm trying to run unit tests on, this page is on a web site that is protected by Forms Authentication. When I run the test the TestContext.RequestPage property is the Login page for the site. Is there any way to get past this either by calling FormsAuthentication.Authenticate somewhere, or by supplying the username and password to the test before it calls into the web app I think we only support Windows authentication through CredentialAttribute. I will see if there is any other workaround for forms authentication. I am not an expert in web authentication but I have tried several things and so far I haven't been able to find a solution for this. Thanks, Bata Chadraa VSTT ...Show All
SQL Server CTE Error: Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause,
I am having this error when using execute query for CTE Help will be appriciated I got the same error in Crystal Reports XI. I used Toad to write the SQL, then copied it into the command editor in Crystal. It worked fine, until I opened the same saved report on CRXI from a Citrix client. Still works fine using Toad, same datasource, credentials, etc. After reading this thread, I tried putting the semicolon in front of WITH and it worked. Strange to me, but it works, ...Show All
