Justin_H's Q&A profile
Windows Search Technologies Locked Network Files
Question: Other than excluding mapped network drives from indexing, is there a way to avoid WDS locking network files and preventing others from working with them (specifically, saving them) Details: When one or more workstations in our office are configured to index shared network resources, very often (larger) files in these locations become locked by the indexer, thus preventing the author from working with the files. In a specific example, we often run into problems updating PDFs or saving a Visio documents. The file server shows that the lock belongs to an unattended workstation running WDS. Also, it's odd that many of the files are fairly static... causing us to wonder why the indexer would be looking at the content again a ...Show All
.NET Development HttpWebRequest Post problem
I have a "The underlying connection was closed: The connection was closed unexpectedly" error when trying to POST using HttpWebRequest. There's a GET prior to this call that works fine. I have done quite a bit of web research and all of the following have been tried: request.KeepAlive = false; request.ProtocolVersion = HttpVersion.Version10; System.Net. ServicePointManager .Expect100Continue = false ; request.PreAuthenticate = true ; Install WindowsServer2003-KB898708-x86-enu.exe on IIS Server. Here's the part of the Trace with the HTTP POST, maybe something here will help: System.Net Verbose: 0 : [3628] WebRequest::Create( http://w2k3pdwads01/access/oblix/apps/webgate/bin/webga ...Show All
Visual Studio 2008 (Pre-release) Control the Child window dragging
Hi, I have a parent whindow on which a click of a button will pop-up a new window. The code i used for that is as follows: ***************************************************** Chart ch = new Chart (); ch.ShowDialog(); ***************************************************** When the user drags the child window it goes outside the boundry of its parent window. But i need to restrict it from being draggable or the user shld not be able to drag it outside a specified boundry which again needs to be derived from the parent window. Thanks, Ram Hi, Thanks a lot Hamid. This is the perfect solution which i am looking for. But some of my windows are not Dialog windows and hence I can move my parent window even ...Show All
SQL Server Whereis the AdventureWorks and MaxMinSales sample projects/.mdf files (server databases)?
I installed the samples (Start-->Sql Server 2005->Documentation-->Sample-->Build, however, I cannot locate any projects or .mdf files for these filenames. Doing a search on MSDN for "AdventureWorks" gives plenty: http://search.microsoft.com/results.aspx mkt=en-US&setlang=en-US&q=AdventureWorks ...Show All
Visual Studio 2008 (Pre-release) Receive timeout
Hi! I can create a simple WCF application. In service I write: [ ServiceContract ] public interface IPhotoGet { [ OperationContract ] Image GetPhoto( string name); } ServiceHost svcHost = new ServiceHost ( typeof ( PhotoImplement )); svcHost.AddServiceEndpoint( typeof ( IPhotoGet ), tcpBinding, @"net.tcp://localhost/photo" ); svcHost.Open(); And in client I write: IPhotoGet photoGet = ChannelFactory < IPhotoGet >.CreateChannel(tcpBinding, new EndpointAddress ( String .Format( @"net.tcp://{0}/photo" , tbAddress.Text))); Image result = photoGet.GetPhoto(tbPhotoName.Text); pbResult.Image = result; When I try to execute method GetPhoto, which m ...Show All
.NET Development dynamic assembly to access code in App_Code [asp.net]
I'm new to dynamic assemblies and need a bit of help. I have a asp.net webapp which loads dynamic assemblies via CSharpCodeProvider. I can create instances from these assemblies no problem and use them just fine. Now I need for these assemblies to be able to call back into the webapp. How do I do this Any help would be greatly appreciated... thanks! Stuart Well, I figured this out on my own, thought I would share incase anyone else needed to know this: To solve this, I added a function builtin to my dynamic libraries that did the following: public void SaveValue(string name, string val) { Assembly assem = Assembly.Load("App_Code"); Type tempType = assem.GetType("MyTypeName"); Metho ...Show All
Visual Studio Team System Build error in database solution
One view of my databse project depend on the object which is lying in some other database because of which i am not able to build the solution. Please tell me if there is any way out to resolve this issue. Thanks. Hi Alle, I have created a dummy database at local server which contains all the other required objects and linked that instance to database project instance now i am not getting any errors. Thanks. One more question can i linked my database project (on local server) with remote server so that my local database project can get the reference of remote server database. ...Show All
Visual Studio Howto programatically add references to active project?
Hi All, I'm relatively a newbie in dot.net development. But I've working experiences with VC/VB programming as well as Java. So, not finding too hard to adopt myself with the flexibility offered by dot.net framework. Recently I've been creating a web application development framework which will include a custom control library to be used in the web projects associated with the framework. To maximize the usability of the framework I've planned to create an Custom Web Project Item Template Wizard that will create a web form based on the framework when selected from the Add Item. As additional features in the wizard, I want the wizard to check active project references for my framework dll and add references to ...Show All
Visual Basic Windows service does work every 24 hours
How do I set up a Windows service to do work once every 24 hours. I have read that using a loop that checks the desired time to the current time is a good solution, but I am wondering if there is a better way. I want to accomplish something similar to Windows Update. you can place a timer on the service and implement the timeelapsed event and set the interval to 24 hours. The timer interval is measured in milliseconds so you want to convert 24 hours into milliseconds :-P http://msdn2.microsoft.com/en-us/library/393k7sb1.aspx does this work for you Have you tried it before Another thing you could do is on every hour, check if 24 hours has been elapsed either by adding 1 to a counter variable a ...Show All
Visual C++ .tgz files
I'm trying to use Visuall C++ Express to open a .tgz file, but it keeps giving me an error saying that there is no editor available for the file I'm trying to open, and to make sure the application for the file type (.tgz) is installed. I have searched on Microsoft's website for anything pertaining to the .tgz extension, and have come up with nothing. Is there anything I can do to make this work ...Show All
Visual C++ include XML file into a class at compile time
Hi All, I have an XML file that must be included (or linked) into a class object at compile/link time. Basically, we cannot send this file along with the product and read the data from the file into memory at runtime. My question is, is there a way to tell the compiler to read the content of the file into a CString, or a string buffer at compile time My project file is a VC++ ATL project and does not use .NET framework. Thanks You should add the resources to a dll or exe project, as they will not be linked with a static library. Alternatively, you can take the compiled resources from the lib and add it manually to the linker options of your exe-proj. I'd go with the first alternative, if possible. ...Show All
SQL Server Anyone know a self extracting tool for a zip file?
I have a zip file that requires a password to extract the file inside of it. Is there away to do this automatically Can't find any software that does this. Mike expression: " e " + @[User::ZipFileName] + " -y" + " -ptestpassword" evaluates to: "C:\Program Files\7-Zip\7z.exe" e "D:\Test\Dropoff\update2.zip" -y -ptestpassword you might want to try getting your command to run from a dos prompt. once you verify it does what you want, create the expression to duplicate it. Frank ...Show All
SQL Server Current Time
Hi. I have a critical design issue. Not a regular time dimension case. i work for a set of schools where each school academic has a different academic calendar. say some schools start in august, others in september.. i generated the date keys per school to populate the time dimension. so my time dimension looks like this: DATE_KEY , DATE_SCHOOL , DATE_DATE , DATE_YEAR , DATE_MONTH , DATE_WEEK , DATE_DAY_NUMBER , DATE_FISCAL_ACAD_YEAR , DATE_FISCAL_TERM , DATE_FISCAL_WEEK , DATE_FISCAL_WEEKDAY_NUMBER , DATE_FISCAL_ACAD_YEAR_DAY_NUMBER , DATE_HOLIDAY , (y/n) DATE_WEEKEND , (y/n) DATE_DAY_NAME , DATE_FISCAL_TERM_FIRST_DAY , DATE_FISCAL_TERM_LAST_DAY , DATE_FISCAL_WEEK_FIRS ...Show All
SQL Server Table join problem
Hi CREATE TABLE [dbo].[Users]( [Id] [int] IDENTITY(1,1) NOT NULL, [UserName] [nvarchar](50) NULL ) ON [PRIMARY] INSERT INTO [dbo].[Users] VALUES('Unal') INSERT INTO [dbo].[Users] VALUES('Volkan') INSERT INTO [dbo].[Users] VALUES('Duygu') INSERT INTO [dbo].[Users] VALUES('Elif') INSERT INTO [dbo].[Users] VALUES('Mehmet') INSERT INTO [dbo].[Users] VALUES('Demir') CREATE TABLE [dbo].[Agenda]( [Id] [int] IDENTITY(1,1) NOT NULL, [ActivityName] [nvarchar](50) NULL, [UserId] [nvarchar](50) NULL ) ON [PRIMARY] INSERT INTO [dbo].[Agenda] VALUES('school excursion','1,3,4') INSERT INTO [dbo].[Agenda] VALUES('party','6,2,3,1') Table Name : Users Id UserName 1 Unal 2 Volkan 3 Duygu ...Show All
Visual C# Stopping action when user clicks tabPage/tabControl
Hi, Can't quite find the answer to what I want so... I have designed a Web Form with a number of tabs. Each tab has buttons etc... that do various actions. However on occasions I need to ensure that actions on one tab have been completed before the user can go to a different tab. Until such an action is complete the button used to start it remains enabled - once complete the button becomes disabled. I can check to see if one of these buttons is enabled and show a warning message using tabControl.Click. However that does not stop the new tab being shown. I need to show the warning message and keep displayed the original tab with the button that needs actioning. Hope that makes sense. Thanks for any help Andrew ...Show All
