Jawad Naeem's Q&A profile
Visual Studio Modifying Virtual Directory
Hi, As part of my deployment process I need to modify a IIS virtual directory that already exists. I've had a look at the Microsoft.SDC.Tasks project but that seems only to allow the creation of a virtual directory not its modification. Thanks Sanjay There is a WebDirectorySetting Task in the MSBuild Community Tasks in the current trunk, but it I don't think it is in a release version yet. ...Show All
Windows Forms How to play a video fullscreen?
Hi all, I'm using VB 2005 and want to play a video in fullscreen mode. I've read lots of articles about it and now i'm confused. I've read about DirectX and Windows Media Player 9 and 10 and 3rd party tools, and now I don't know which one to choose I did not find any comparison overview to see the (dis-)advantages of each solution. I still need to generate the videos so I don't care about the format supported as I could create avi, mpeg, divx or whatever is supported. Maybe someone could post a recommendation what to use Many thanks! Just use WMP, by referencing system32/wmp.dll. The player has a property for a FullScreen mode. If you need to render the video by yourself then you will need DirectShow ...Show All
Windows Forms Close form and update another?
Hi, This I'm sure is an easy question... I have a form that allows me to select some records from a Checked ListBox control. When I click on the OK button of the form I want to close it and place details of the selected records i.e. Description into a Text Box on the original (main) form. How is this done Regards, Andrew Andrew, the way you do it is as follows create an instance of the form you want to create. create a public property to hold the value that you want to show on your original form. Assign it. Close the form. eg Main form private void button2_Click_1(object sender, System.EventArgs e) { ChildForm cf = new ChildForm(); cf.ShowDialog(); string s = cf.Name; ...Show All
Visual Studio 2008 (Pre-release) July CTP: Incorrect soap fault messages
Hi, I am experimenting with using the FaultException and FaultException<T> to determine the best usage pattern in our applications. We need to support WCF as well as non-WCF service consumers/clients, including SOAP 1.1 and SOAP 1.2 clients. FYI: using FaultExceptions with wsHttpBinding results in SOAP 1.2 semantics whereas using FaultExceptions with basicHttpBinding results in SOAP 1.1 semantics. I am using the following code to throw a FaultException<FaultDetails>: throw new FaultException < FaultDetails >( new FaultDetails ( "Throwing FaultException<FaultDetails> ...Show All
SQL Server Looking for a good Data migration solution
Hi, I am trying to create a process that will take data source that has been output from a proprietary ISAM database to import into a SQL database. This particular ISAM system cannot be accessed via OleDB or ODBC. The thing is I want the process to be able to create the required tables based on data structure information that has been somehow encoded into the data source. Currently the solution I am going with is to spit out a CSV file that has a header with table and data format information followed by rows of actual data that gets parsed by a SQL script however I am sure that Microsoft must have some kind of preferred solution to this kind of problem but I have not been able to find it. I have looked at the the tools that are available ...Show All
SharePoint Products and Technologies Problem with create/submit a SSL certificate request
Hi experts, (assumption: ComputerName: Machine1; my website: www.abc.com ) I have follow the instructions as http://support.microsoft.com/kb/290625/en-us for create a certificate request. When I created the request, I typed Machine1 as Common Name . However when I try to submit such a request as suggested with e.g. http://abc.com/certsrv/ , it shows the 404 page not found error. I' m pretty sure my IIS works and other pages are working fine also. I was wondering, 1. Did I do anything wrong with that Common Name I 've also tried to make a new request and insert e.g. abc.com as Common Name , but when I try to submit the request, some thing happened with 404 error. 2. Is there any other way I can submit the request other than t ...Show All
Visual FoxPro Views
I am trying to write a VFP Remote View that selects data from a Microsoft Database, unfortunately some of the mssql fields are reserved word (IN FOXPRO) so the VFP will not allow me to inlude these fields in the view. For example this remote query pulling data from MSSQL by a foxpro view select table1.pers_name, table1.pers_address, table1.values from table1 returns an error because of the word Values is a reserved word in foxpro. Is there a way to get around this. This is tricky if you create the remote view in the designer because it cannot interpret the solution (which is to enclose the names in "[" "]"): You can do it in code like this: CRE ...Show All
Visual C# Error reading the HTTPListenerRequest InputStream
Hi Friends, When I try to read the incoming client request data using the HttpListenerRequest.InputStream property, I'm getting the following exception (not everytime) - System.Net.HttpListenerException: The I/O operation has been aborted because of either a thread exit or an application request Server stack trace: at System.Net.HttpRequestStream.Read(Byte[] buffer, Int32 offset, Int32 size) at HttpListenerLibrary.HttpListenerWrapper.ProcessRequest() in C:\AcsSim\HttpListenerLibrary\HttpListenerLibrary.cs:line 901 at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Mess ...Show All
.NET Development MS Visual C++ Runtime Library
Runtime Error appears in an 'MS Visual C++ Runtime Library' window. "Termination resulted in an unusual way'. Occurs when when attempting to install .NET1.1 SP 1, which was neded to install QuickBooks 2007.Any suggestions would help. Is this still an issue Can you provide the following information: OS Architecture Logs, error codes Marking post as answered due to inactivity. If this continues to be an issue please unmark answered and provide more information. ...Show All
.NET Development How can I automate "Update Web References"?
Where I work we have several teams that develop web services as well as several teams that develop web applications which consume these services. I have seen cases where changes within a service would cause web applications to break. And in all such cases, we were not able to detect such problems at compile time. As far as I can tell, the only way that exists for these applications to stay in sync with the web services is to manually select "Update Web References" (from the Solution Explorer) on each of the web services within a web application. According to Patterns & Practices: Team Development with Visual Studio .NET and Visual SourceSafe ( http://msdn.microsoft.com/library/default.asp url=/librar ...Show All
Visual Studio Run custom code on the startup
Hi all, I'd like to know how to run my custom code when I start my visual studio experimental hyve, because I'd like to be able to monitor a folder using a FileSystemWatcher and that has to be done from the start of Visual Studio till the user closes it down. I looked at the PackageBase, but not really sure how to use that. Any thoughts / tips for this Thanks! Clemens using VSShellInterop = global ::Microsoft.VisualStudio.Shell.Interop; using VSShell = global ::Microsoft.VisualStudio.Shell; using VSTextTemplatingHost = global ::Microsoft.VisualStudio.TextTemplating.VSHost; namespace MyNS.My { [VSShell:: ProvideLoadKey ( "Standard" , Constants .ProductVersi ...Show All
Windows Forms Custom Action runs from version being replaced
I have a VS2003.NET deployment project with a custom action written as a VB DLL. It works fine when I install on a clean machine, but fails when I install over a previous version. I've tracked the problem down to the custom action execution. When installed over a previous version the new DLL is installed onto the machine before the custom action is executed (as expected). However, the install action that executes is from the old DLL. It appears the assembly is being loaded by MSIEXEC during the uninstall phase, and the new assembly is not loaded during the install phase. Thus the logic from the old DLL runs. I've ensured that the version of the new assembly is newer than the old one. This has no effect. The RemovePreviousVersions ...Show All
Visual Studio Express Editions Automatically Resizing Data Grid View Control
Hi, is there a property I can set to automatically resize the data grid view control as rows are added The rows will be added programmatically. Thanks in advance. Peter Winson Thanks Thiru but I don't want scroll bars. What I would like to happen (automatically of course) is for the data grid view control to resize itself to just show 3 rows of data if I have three rows of data. And If I add another row, it will resize to only show four rows. I know you can do this by writing some code, but is there a property I can set Sort of like the AutoSizeMode property for forms. Pete ...Show All
Visual C++ Debugging release version in VS2005
I am debugging a complicated piece of software which takes quite a long time to run until it reaches the point which I have to investigate. Running debug version from debugger is too slow as it takes up to few hours to run until I get it to the point of the problem. I tried to compile the release version and run it from the debugger. Interestingly I can only see some variables (usually local function ones) in the watch window. The "this" variable for some reason is always shown as NULL. I also can not see values of variables of functions that are deeper in the stack. And finally my debug visualizers do not work. Project properties of debug and release versions seem to be almost the same (obviously _DEBUG directive is missing in r ...Show All
SQL Server sql 2005 Transaction log size
We have a database that is backed up every night (full backup). The database size is around 5GB and the transaciton log is about 3GB. And it's 3GB after the backup too. I thought the log size should shrink after each full backup. I can't imagine what data the log needs to maintain after a full backup is complete. What can be done about this large transaction log TIA, barkindog DBCC SQLPERF(logspace) will tell you how full your logs are. By doing a log backup you'll lower the 'Log space used %' from the above DBCC command, however, it won't affect the actual size of the physical file. Keep in mind that the 'correct' size for you is somewhere abouts the size needed to accomodate for ...Show All
