IDE :: XML Documentation And Intellisense File Locking?

May 20, 2009

I'm currently having issues with the following scenario:

1. I will build several DLLs with "Generate XML Documentation" set.

2. The DLL and XML files are copied onto another server (the build drop).

3. The copy will fail as the XML files are being locked by other users referencing these DLLs from their open Visual Studio projects.

Note that this also occurs on a local computer; open up two Visual Studios and use reference paths to reference the Binary folders. You'll find that the refrencing instance of Visual Studio will lock up the XML files causing the first Visual Studio to have problems compiling.

1. Is this a bug in Visual Studio 2008? Why is it holding exclusive locks on these files from the other computers? Is there a fix for this?

2. Is there a way to "package" the XML file into the DLL? I've noticed a lot of other .NET DLLs in the world that include all of their comments INSIDE of the DLL. No XML files necessary. (unless they're not .NET dll's).We're doing a lot of framework development here and it's imperative to include the XML documentation... unfortunately we've had to disable it to allow new builds to trickle through.

View 1 Replies


ADVERTISEMENT

.net 2.0 Threading File Locking

Oct 3, 2010

I'm using vb.net 2005, I've got the following code running a thread to download a file. However, the process fails sometimes when trying to read the local copy of the file. I think I may need to unlock the local file somehow but I'm not sure how to do this.[code]

View 1 Replies

Locking Any File In PC From Others Access

Jun 22, 2010

How could I lock any file in my PC from others access? I am trying to lock some my video, picture, Excel and Word file in my PC by using Visual Basic. I am using Visual Studio 2008 to develop this application but I am unable to do this job. It'll be something like security utility application. Actually without me, some other people also using my computer and I am trying to lock their access in my personal file. And I wish to know the tools which I can use for this job. I am just a Beginner on this development field.

View 4 Replies

Writing To XML Log - File Locking?

Oct 15, 2009

Simple question. I have a log of actions that is in XML. When some action occures, the XML log is updated. I am using:Dim xmlData as XElement = XElement.Load( "DataLog.xml" )

to load the existing data. I then create a new XElement (NewData) and use:xmlData.AddFirst( NewData )Which puts the latest item at the beginning of the log. And finally, I write it out using:xmlData.Save( "DataLog.xml" )Ok, that all works fine. But there is no testing to see if anyone has (or is) updating the file ("DataLog.xml") during the process. This may result in lost data. Is there an accepted way to implement some sort of file locking structure that can be used to prevent this potential loss?

View 8 Replies

Writing To XML With File Locking

Nov 2, 2009

I have some code based on some previous posts that just won't work right.The code all runs without error.

-' strErrorLog holds a valid file name with full path
-' xmlNewError holds a valid xElement value

Using holdFile As New IO.FileStream(strErrorLog, IO.FileMode.OpenOrCreate, IO.FileAccess.ReadWrite, IO.FileShare.None)[code]When I step through the code, everything works.There is no error on the xmlError.Save call.However, the actual file is NOT updated.If I remove the "Using" commands and change the save to "xmlError. Save(strErrorLog)", then it writes just fine..It's got to be something really simple, but it's frustrating that I don't get an error message.But it does unlock the file..

View 1 Replies

VS 2008 Read The Log File Without Locking It?

Feb 5, 2010

I'm writing a log parser which is reading a log created by a game. This log can be written to many times a second. My problem is that my program is preventing the writing of the log at times. Is there anyway I can read the log file without locking it?

Sub readLog()
If readyToRead Then
If FileInUse(fileName) Then Return
readyToRead = False

[code]....

View 4 Replies

Reference Xml File Documentation?

Sep 22, 2009

how to call or reference an item from an xml document. I hava a java app that i'm converting over to vb.net. The java application uses the digester class to to parse the information. The app uses 2 classes and the xml file. one class is the Vb.net Parameter class (fully converted from Java to vb.net) that pulls the information out of the xml document and then places it when called into the 2nd class file.

I'm pretty sure that i need to use the system.xml class to do this however i'm having or just not reading the examples properly.

I have partially converted the code over to vb.net, it still has some java references.

[Code].....

View 9 Replies

VS 2005 How To Prevent An Excel File From Locking

Jun 25, 2009

I have developed an application which requires reading data from Excel file and performing some calculation. However for some reason the Excel file is always locked at the end of the computation after I close the application.

View 3 Replies

Load List Method Locking Text File

Jun 14, 2010

[code]I load a text file to a list box and if I try to modify or save over that same text file I get an access violation error. How can I load a text file and release all permissions/holds on that file?

View 4 Replies

Creating XML Documentation File For All Code Comments

Sep 26, 2011

I have xml summary comments for each and every function and class of my windows project. Now I want to generating the XML Documentation File. I gone through the following link, but the Option was not there in my Solution explorer.

[URL]

View 2 Replies

VS 2008 Unable To Create XML Documentation File

Oct 28, 2009

I have used Visual Basic 2008 for a while now and i have never came across this problem, when i try to build my application i get the following two errors...

Quote:

Unable to copy file "objReleaseParent Pro.xml" to "binReleaseParent Pro.xml". The file or directory is corrupted and unreadable.

AND

Quote:

Unable to create XML documentation file 'E:Parent Pro - TRIALParent ProobjReleaseParent Pro.xml': System Error &H80070570&

I can run in Debug no problem, but i need to publish to a web server and i get the same problem...

View 3 Replies

Using FreeFile And OpenFile Functions To Find File-locking User Name Over Network?

Mar 16, 2012

using FreeFile and OpenFile functions to find file-locking user name over network

View 12 Replies

Can IntelliSense Be Exported To Text File?

Jan 14, 2009

I'm trying to write some documentation for a webservice that has been provided by one of our vendors for an application we're integrating. A bunch of the interface is custom objects defined in the web service itself. The vendor has put up significant resistance to providing any documentation for this application and so I've taken it upon myself to do their job for them [against my better judgement]. The documentation they have provided frankly is embarrassing and I'm trying to make as short work of this as I possibly can to put some good quality docs together.

I know that as I don't have access to their source, I can't just run it through nDoc/Sandcastle to spit out an API doc, but I was wondering if (as a half way house) there was an easy way to export the intellisense to a text file without me having to write a utility to specifically iterate through each of the object types defined and reflect the members out to text? If I could do this, it would at least make sure that I have a good quality document structure where I can just fill in the blanks. Having to skip back and forth to Visual Studio to check the intellisense for every class member is a very laborious way of doing this.

View 7 Replies

VS 2008 - Creating Comments Tags Without Generating XML Documentation File

Jul 6, 2009

When in VS 2008 if a developer hits the ''' it generates the XML comment tags for you, but this only works when the project setting for "Generate XML documentation file" is checked. Is there a way to tell VS to generate the XML Comment tags, regardless of the project setting? I think it is possible that someone may want comments but not create a XML documentation file. In this case I am exceeding the current Team Settings, yet other developers don't want me to change this project setting. This forces me to flip this back before checking in the project. I have the same problem with other Project settings like "code Analysis". This is only a problem for VB.NET projects.

View 4 Replies

Mircosoft Office Document Imagaing File Locking Visual Basic 2005?

Feb 16, 2007

My program splits a mulitpage tiff file (batch of purchase orders from Sage MMS)into separate files by doing OCR and using the MODI functions.My code has three main loops. 1st loop goes through each of the pages and splits the tiff into separate tiff files based on order number and stores them in a directory. for each order i also create an array of information by doing OCR from the tiff ie. order number, customer etc etc. 2nd loop goes through the array. for each order number in the array checks to see if there is another tiff file existing in another directory. This could be a separate sheet which needs to be attached to the main purchase order and comes from a document scanner in another office.If there is an additional file i merge that tiff file with the current tiff file. 3rd loop goes through the array once more and uses the microsoft faxcomexlib to faxed the files using my server 2003 fax serverthe 3 loops work perfect and very fast and i can send the faxes no problem.

I also add all the array information into an access database so historical purposes.My problem:In the first loop i need to check that the fax has not already been sent. (users can reprint orders so need to be careful that fax isnt sent more than once) I do this by getting the order number and querying the database. If the order does not exist then i can proceed else i prompt the user to refax yes or no.i have put the database connection and sql in a function which returns true or false. however when i add the function to my main loops i get a file lock on the current order. If i remove the function my code works perfect.

Dim conn As New OdbcConnection(constr)
Dim cmdselect As New OdbcCommand
' Get status from current job

[code].....

View 12 Replies

Register The Class File - Not Recognizing My Class.Even The Intellisense Is Not Picking Up Te Class

Jul 22, 2011

I have a class (see below)

Imports Microsoft.VisualBasic
Imports System.Data.SqlClient

Public Class ClientProfile

#Region "Variables"

[CODE]...

It is in the file ClientProfile I have placed in both App_Code and also App_Code/Models

In my code behind I have the following

[CODE]...

The last word, "ClientProfile" has the scary squiggly red line below it. It is not recognizing my class.Even the Intellisense is not picking up te class. Do I have to register the class file in any way?

View 4 Replies

ADO.NET And SQL Locking?

Sep 23, 2010

I am in the process of writing an application that requires a single transaction updating several tables. The front end has a header record and several detail records. I do not maintain any type of lock on the original read. The read is performed by calling a stored procedure in an existing database to pass back the data.

When I update the data each detail record is updated individually. Is there away I can update all of the records within a single transaction? The update will be performed via a stored procedure that is stored on the server. I cannot store the code in the application as other applications will need to use the same server side code. I can handle updating a single record my issue come about when I've updated 5 records and the 6th fails, how do I rollback the 1st 5 records.

View 2 Replies

.net - Locking A Control From Another Thread In VB

Mar 18, 2011

I am developing a parser application to build a call tree from DDL files that have been extracted from a database. The idea is to take a large number of these DDL files and determine exactly what calls what. To do this I am using a .NET TreeView. The final output I am working toward is something like this:

-Proc1
-Proc2
-Proc3

[Code].....

View 2 Replies

C# - Application Suddenly Locking Up

Jan 10, 2012

i have this application, that creates various custom AppDomains, each app domain executes a assembly and its dependencies, like a plugin, a separated assembly, that manipulates database, own resources, etc.

the application runs fine for a while, but suddenly, it locks up... the process does NOT die, it just freezes, i ran a remote debugger on top of it, on the thread window i can see EVERY thread, they are with the status "running" (not "thaw") but, in the same place, not executing. i can pause and run the debug, and it remains in the same place. there are NO locks, synlocks, monitors, on the code and the code for loading the appdomains is very simple, no big deal on it. like i said, its working, but after a while, it locks up. Any ideas on this environment?

View 1 Replies

Locking - Block .exe To Launch?

Feb 17, 2012

does someone have an example code for how to prevent .exe files to be started?

Something like this might work:

For Each OSKInstance As Process In Process.GetProcessesByName("OSK").ToArray
OSKInstance.Kill()
Next

But that might be resource intense as a while loop is running all the time. Is there a smarter way to lock an .exe?

View 1 Replies

Locking Out Keyboard In Textbox

Dec 8, 2009

I am in the process of writing a pos for the first time for a friend for his new restaurant. I am need to allow users to input floating numbers only. How do lock out the keyboard?

[Code]...

View 9 Replies

SQL Transaction Locking Whole Tables?

Mar 7, 2012

I am trying to use a transaction for the duration that the dialog is open and then commit the changes once the dialog has been ok�d or rollback'd if canceled by the user.My problem is when I use the transaction it is locking the whole of the tables that I�m using to update and insert new records too.I update the record in the first (current) table and insert a new record into the second (history) table. Obviously this is causing me problems as I only want the transaction to lock the specific records i'm updating and not allow a new insert record with my PK associated to my that I�m updating, not lock the whole of the 2 tables.This is my code[code]....

View 3 Replies

Threading And Object Locking

Mar 22, 2011

I have a problem in a multi-threaded application where I'm getting deadlocked waiting for an object to beocme available.

[Code]...

View 1 Replies

VS 2010 Locking A Control?

Mar 12, 2011

In Visual Basic 6, locking a control would prevent the user from selecting a control without greying it out like disabling it would. Is there a way of doing this in Visual Basic 2010?

View 9 Replies

Documentation Or Training On How To Use WMI

May 16, 2011

where can i find some good documentation or training on how to use WMI?

View 3 Replies

IDE :: XML Documentation With ParamArray?

Mar 7, 2012

I am trying to use xml documentation tool in my application. one of my methods receives 'ParamArray' as an argument. i want to document this argument elements.

here is my code
Public Sub LoadSearch_ByEmployee(ByVal EmployeeID As Integer _
, ByVal FromDate As Date _

[code].....

View 4 Replies

Providing Help Documentation In .NET?

Apr 26, 2010

I have written up troubleshooting documents for my project and would like them included in my program. I remember in VB6 there was a very easy way to do this with a control, where it already has the help document tree set up on the left and you just set it to point to certain files.

Does something like this exist for .NET? I am aware of the HelpProvider control but as far as I know this just puts in tooltips and opens documents on a button press?

View 1 Replies

Use The MSDN Documentation?

Feb 28, 2010

The regularity and frequency of that extolling is an indication of how many people, for whatever reason, don't use the documentation. Some say that I've forgotten what it's like to be a beginner, but I remember using the MSDN documentation as a beginner. I remember that I couldn't always find what I needed and I also remember that I didn't always understand what I found. More importantly, I remember that that didn't stop me using it first every time I had an issue and I also remember getting better at using it over time. So, I'm genuinely interested to know, if you don't use the MSDN documentation?

View 39 Replies

.net - Locking - Extent And Modes Of Failure

Jan 9, 2012

I've stress tested the code below and it seems to work fine - what are the dangers of not locking in the simple case where there is a single thread writing and a separate thread reading a simple variable? Have a class that has a public property...

[Code]...

View 3 Replies

.net - Selecting Only The Filled Controls And Locking Them?

Jan 13, 2012

This is the situation when there is a shift change and one record is started by one person and finished by another. What one has written another can't change but must finished a record. So u must lock only the combo boxes and text boxes that are filled. This code lockes all the combo boxes and text boxes and 2 check boxes (NEZAVRSENE_INTERVENCIJE and IZMENA_RASKRSNICE) by clicking on a NEZAVRSENE_INTERVENCIJE check box. Lets say I have combo boxes 1 2 and 3 and text boxes 1 2 and 3 and I have to lock only the ones that are filled. How do I code that another check box lockes just the filled controls?

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved