-
- Visual C#
by IMBack
- 7211 Replies
- IMBack Views
- Last post
-
accessing vss database
- Hi
;
I am trying to access VSS database , located on the server and I get an error message Database does not exits.
private IVSSDatabase vssDb = new VSSDatabaseClass();
private VSSItem objProject;
;
private void Page_Load(object sender, System.EventArgs e)
{
string path = @"\\dev01\VSS\General\srcsafe.ini";
string username = "admin";
try
{
Response.Write("<BR> " + path);
Response.Write("<BR> " + username);
vssDb.Open(path,username,"");
objProject = vssDb.get_VSSItem("$/Framework",false);
}
catch(Exception ex)
{
Response.Write("<BR>Exception error : " + ex.Message);
}
}
;
//exception error:
Exception error : The SourceSafe database path admin does not exist. Please select another database.
;
It works if I access the local vss database, but not on the server, am I doing something wrong
//=============
If I run this code in Windows application project, ;it works. But if I run it in WEb Application project, it fails.. ; :( Is there away to make it work in Web Application. I need to run it in web application because all my ;other code is there.
Thank you,
;
;
;
;
;
-
- IE Development
by DouglasJWoods
- 2881 Replies
- DouglasJWoods Views
- Last post
-
idownloadmanager
- I am using SHDocVw.InternetExplorer to automate IE. I want to replace the default IE Download handling and I believe this is done using IDownloadManager. Does any one have any sample code that shows how this is done (C# would be great)
Regards
Douglas
-
- Windows Forms
by Wirestone-Vos
- 12743 Replies
- Wirestone-Vos Views
- Last post
-
invalid certificate - certificate authority chaining with thawte
- We have a ClickOnce application signed with a certificate purchased from THAWTE. When the install button is clicked on our deployment page and the publisher name is clicked, the certificate shows as invalid because the issuer of the certificate could not be found. If the setup.exe file is accessed directly, the certificate shows as valid from the setup.exe file. When the setup.exe is run, it brings up the click once installer that links to the same certificate error as above.
My question is this. Can anyone provide an example ClickOnce url that has a valid certificate that will work on all windows machines with IE 6.0 or higher THAWTE was unable to help with this, is there another provider that has worked and can you provide an example using their certificate
-
- Visual Studio
by FinallyInSeattle
- 16716 Replies
- FinallyInSeattle Views
- Last post
-
measuring "rich text"
- I have textual information that is currently stored as RTF. I need to display this text in a drawing element for a diagramming product that I am working on. What I can not seem to find a solution for is how to determine the width and height of this text.
I have tried using a RichTextBox - the ExtentHeight seems to be accurate, but ExtentWidth is just what I sized the control width to. I have read up on the FormattedTextClass which would give me the sizing information that I need, but I don't know how to load RTF into it.
Can anyone assist
Thanks in advance!
-
- Game Technologies
by Henzrake
- 6072 Replies
- Henzrake Views
- Last post
-
volume control in runtime....
- I Want to control Volume of each Cue In My Code.
I use this code:
Index = pCue->GetVariableIndex( "Volume" );
pCue->SetVariable( Index, (XACTVARIABLEVALUE) fVolume );
but Index Value is 65535....
Of Cource, I Create and Link RPC In XACT Creation tool..
please teach me...
How can Control Volume in runtime
-
- SharePoint Products
by Mark Crouse
- 1888 Replies
- Mark Crouse Views
- Last post
-
sharepoint designer backup/restore problem
- I am trying to use Sharepoint Designer's backup and restore functionality to move a site from one server to another. The backup seems to complete successfully, but when I go to restore the site I get an error that looks like this:
Cannot find C:\Windows\Temp\.......\exportsettings.xml.
Does anyone know how to resolve this problem
-
- Audio and Video
by Xavier Arnau
- 1166 Replies
- Xavier Arnau Views
- Last post
-
what is the best way to show changeble text
- I need to show text that can be changed in script.
What's the best way I mean, what's the best element to use in markup that allow you to change the text via script
And document.element.state.value = "sometext"; is correct
edit: I got it using <input> with the mode="display", now my question is how to make the input "unfocusable", i mean avoiding the input to get the focus when i move throw the bottons on the screen.
edit2: style:navIndex="none" on the input was the solution
;
-
- Visual Basic
by Quisni
- 8556 Replies
- Quisni Views
- Last post
-
vb 2500 tcplistener accepting connections just from one ip address
- Hi guys!
I've been using TcpListener and TcpClient classes (I read examples from on line help of Visual Studio 2005). I succeeded in making a tcp server that works quite well.
Now I want that this server could accept connections from just one and only IP address (that I choose).
Does anybody know how to make it
I think it is a simple trick but I am not able...
Thanks for any kind of advise!
Zingaro.
-
- Microsoft ISV
by M. Nicholas
- 1294 Replies
- M. Nicholas Views
- Last post
-
vb in word 2000 / form built into a template
-
I need help with VB in a MS Word 2000 macro/form, hope I’m in the right place.
We have created templates (with help from a VB 6 programmer) that have a form to fill in information on the word doc. I need to make a major upgrade (the original programmer is not available).
I need to be able to fill a variable with a chosen file (or files) path. I created a txtBox on the form (for the template), and after some searching on the Internet, found some code to make a button launch a windows explorer window to a specific directory.
What I'd like to do now is be able to highlight one or more files in windows explorer and somehow have their paths fill a variable. I found some code that will fill a listbox with a file path if you drag it and drop it. The instructions said to “Set the Form OLEDropMode Property to 1 - manual”. I can’t find such a creature on this template’s VB form. So for now, I’m still looking around.
Any ideas on creating a variable from the path of a highlighted file in Windows Explorer on my VB form built into my word 2000 template
Thanks…
Mike
-
- Visual FoxPro
by Aleniko29139
- 793 Replies
- Aleniko29139 Views
- Last post
-
possibly a bug using report listener
- HI All;
When using a summary band with no other options (like "Include page header with summary"),
AND
The number of lines in the generated report is such that the summary band has to print all by istelf on a new page,
The generated HTML file when using a report listener is cut short and the last page (Summary all by itself) is not generated.
Anyone saw a bug report on this
Thx.
-
- Smart Devicet
by KaroK
- 7432 Replies
- KaroK Views
- Last post
-
shnotificationadd
- Hi
I want to have my notification bubbles appear on top of the screen in WM5.0. I have mannaged to make this happen when clicking on the icon, and using GUID
{0x99de7411, 0x772f, 0x43d0, { 0x81, 0xf0, 0x66, 0x83, 0x36, 0xca, 0x65, 0x1b }};
, but the bubble does not open automatically no matter what I do. The code works fine on PPC2003, and I found a posting saying this GUID should make WM5.0 behave in the same way. Is there another GUID I can use that also makes the bubbles appear automatically, and not only when clicking the icon (I do not want an icon, only the message).
Karo
-
- .NET Development
by Victor Nakoryakov
- 13098 Replies
- Victor Nakoryakov Views
- Last post
-
truncating stack trace for exceptions
- Hi all
I have got a little, but annoying problem. I spent quite many hours trying to find a solution but with no success. Hope someone can help me.
Well, the problem is that standard behavior of .NET exceptions is to gather stack trace from the place where they are thrown up to `catch` block. If exception was not caught debugger will point me to the line where exception was thrown. In most cases this is an optimal behavior. However in some cases I don't want to be pointed to `throw new Exception` line, but want to be pointed some calls upper:
// === client.cs ===
public void TestSomething()
{
// blah blah...
Assert.AreEqual(a, b); // HERE
}
// === utilities.cs ===
public static class Assert
{
public static void IsTrue(bool b)
{
if (!b)
throw new AssertException("la-la-la"); // ORIGINAL
}
public static void AreEqual(int a, int b)
{
IsTrue(a == b);
}
}
In provided snippet I want to be pointed at line marked `HERE` when exception will be thrown, not to the line marked `ORIGINAL` since it is much less informative and I will always have to unwind stack by mouse clicks.
I guess there is some attribute that I can apply to IsTrue and AreEqual methods, is there
Or maybe there are other methods to achieve this
-
- Windows Vista
by vijil
- 6718 Replies
- vijil Views
- Last post
-
is june ctp sdk work on xp pro os
- hello
Now I have setup for
MicrosoftR WindowsR Software Development Kit (SDK) for June CTP of Windows Vista and .NET Framework 3.0 Runtime Components. I down load from the follwoing URL http://www.microsoft.com/downloads/details.aspx FamilyID=9221A6AA-AC1C-4604-A326-B8CF2B12B6EB&displaylang=en
I want to know whether I install in Xp -pro this setup will work or not. Please guide me
Advance thanks
vijil
-
- Visual C++
by Fusion54
- 5780 Replies
- Fusion54 Views
- Last post
-
threads in .net forms application
- I have a .NET Forms Application that I am writing and I want to have a dedicated thread that I can use to run a piece of code that I need to pull a record from a database table and process it. I want to use one thread to make sure that the record can not get processed twice. Only one instance of this application will be ever running so I shouldn't need any more protection than this.
How should I go about setting something like this up in a .NET forms application. Where would be the best place to create the thread Or should I be using the ThreadPool somehow I am new to threads so any input would be helpful.
Thanks,
Michael
-
- VS Team System
by VisualCSharp
- 15574 Replies
- VisualCSharp Views
- Last post
-
comparing speed of "get latest" operations between vss and tfs
- I have been migrating a VSS database over to TFS recently. The VSS database contains years of history, tens of shares, branched files, etc. The TFS database contains only one version of every current version file (I didn't migrate the whole VSS DB, I just got latest and then imported the latest versions of all files into TFS). I'd think TFS would be smart and know which changesets I have not yet retrieved, but apparently that is not the case. In fact, in my tests VSS peformed twice as well as TFS, about 1 minute 6 seconds versus TFS' 2 minutes 30 seconds for the same solution.
Can anyone speak to why "Get latest" seems so slow in TFS One of the benefits I told my co-workers we'd get from TFS was higher performance but apparently VSS owns TFS in this regard.
In case you're wondering, it is not a server configuration issue. The server with TFS is actually better than the VSS server. 2 GB RAM, Xeon 3GHz, etc.