|
Look in the Project Properties, Compile options, Build Events. You can execute your batch file from there.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi
I am using static binding i.e the use of dll of MS OUTLOOK 2003 in my Windows application to extract FROM,TO,CC,BCC,MESSAGE email addresses and their names etc. and store it into an MS ACCESS database. The module is working fine in my machine and also in client machines, but some of the clients are complaining that they are getting the error at the time of running the module. They are also using MS Office Outlook 2003. They are getting the error when try to run the application.
The error is like this:
System.IO.FileNotFoundException: The specified module could not be found.
I think sometimes CLR fails to load unmanaged dll of OUTLOOK. I have tried by using most of things but till now there is no success. All the dlls are present in applications root folder.
Is there any idea?
regards
|
|
|
|
|
You could try using the fusion log generated by fuslogvw[^]. You can track which assembly is missing and then figure out if any of its (managed or unmanaged) dependencies are missing.
|
|
|
|
|
Thanks for your reply.
I had used FUSLOGVW.exe and got the log below but still it is unsolved. Please give some suggestions.
*** Assembly Binder Log Entry (10/5/2006 @ 5:20:22 PM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
Running under executable D:\Projects\TestApp\bin\Debug\TestApp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = TestApp.resources, Version=1.0.2470.31203, Culture=en-US, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = D:\Projects\TestApp\bin\Debug\
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : TestApp, Version=1.0.2470.31203, Culture=neutral, PublicKeyToken=null.
===
LOG: Processing DEVPATH.
LOG: DEVPATH is not set. Falling through to regular bind.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: TestApp.resources, Version=1.0.2470.31203, Culture=en-US, PublicKeyToken=null
LOG: Attempting download of new URL file:///D:/Projects/TestApp/bin/Debug/en-US/TestApp.resources.DLL.
LOG: Attempting download of new URL file:///D:/Projects/TestApp/bin/Debug/en-US/TestApp.resources/TestApp.resources.DLL.
LOG: Attempting download of new URL file:///D:/Projects/TestApp/bin/Debug/en-US/TestApp.resources.EXE.
LOG: Attempting download of new URL file:///D:/Projects/TestApp/bin/Debug/en-US/TestApp.resources/TestApp.resources.EXE.
LOG: All probing URLs attempted and failed.
Regards
|
|
|
|
|
The log shows that TestApp.resources assembly is not present in the assembly probing paths. You need to make sure that assembly is present in one of the paths from which fusion is attempting to download the file.
|
|
|
|
|
Thanks for your reply.
From where will I get TestApp.resources assembly? There is no resource files are required for my project.
regards
|
|
|
|
|
How can add a new item in popup of a browser ?
or How can change it's items ?
computer
|
|
|
|
|
By items you mean what?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
I'm working on a program that takes some files from one VSS database, does something with them and puts them into another VSS database.
Everything was working until I triedy my program on a VSS project that had labels defined.
My code searches for the latest version of a file. And if a file has some versions and a label which is the newest, I get the version number of that label. And I can't get a file based on the label. I need the latest version of a file even if the latest thing is a label.
I would like to know if there is a way to exclude labels from the collection that get_Versions returns or how can I find out if the current version object (inside a foreach loop) is a label.
My code looks something like that (relevant part that is):
System.Collections.IEnumerator versions = vssFile.get_Versions ( 0 ).GetEnumerator ();
versions.MoveNext ();
int latestVersion = ((IVSSVersion)versions.Current).VersionNumber;
latestVersionFile = vssFile.get_Version ( latestVersion );
string saveFileName = savePath + "\\" + latestVersionFile.Name;
latestVersionFile.Get ( ref saveFileName, 0 );
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Dose anybody know how its possible to get a traffic used by specified process pid or name ?
|
|
|
|
|
No, it's not. Those statistics don't exist anywhere, unless the application itself is keeping track of them.
You could, on the other hand, attach performance counters to the process and start monitoring them yourself, but those stat's don't exist "automatically" when you start a new process.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks for reply.
Well this is exactly what i want . Is there any guide on how to implement this ?
ell
|
|
|
|
|
|
Sorry but i dont see any possible way to do that .
Well i cant simply count how many trafic send/recieved per ammount of time
Even if i made costum perf counter how could i get the above data related to a process.
|
|
|
|
|
Whoops! My bad!
You can't look at network traffic by process. It's the entire TCP/IP stack of the Network Interface itself or nothing... Sorry!
You can't make a custom counter to expose network operations in another application. Creating custom counters only works if your code is supplying all the data to the counter.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
No porb.
But still there must be way.
Anyone else has any idea ?
|
|
|
|
|
|
Hi everyone,
Wnating to experiment with .net 3.0 here. Cant understand what/where/how will it work. I have vs2005 installed on an XP dev box, but dont know whether .net 3.0 will work on that. Do I need a Vista machine(can set that up inside a VM)?
I understand theres manuals online, but I just dont understand.
Thanks,
Anton.
|
|
|
|
|
Yes you will need Vista. You can do it on a Virtual Machine, but you will need a Gig of Ram on the Virtual Machine to install.
Mike Lasseter
|
|
|
|
|
My coworker was working with .NET 3.0 beta on XP with VS2005.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
You should be able to get everything working on XP. But you may need CTP's etc. Never tried it myself. Probably best to wor inside a VM. And I guess a Vista beta will be required unless you have another copy of XP to run inside the VM.
Kevin
|
|
|
|
|
I have a program that need to call a function in another application. How can I do it?
Thanks,
Leo
|
|
|
|
|
Please do not crosspost.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi,
I was asked this question in an interview and would like to know the correct answer for this.
I have a .Net remoting component. (By remoting concept, the calls to the remote obect will be basically made on the proxy.)If we create a tlb for this remote component and use it from a COM component, in this case, will the remote calls be made on the proxy or on the server object.
Please help me to get more insight in to this.
Thanks,
Mani
|
|
|
|
|
Hello to all,
Anybody who knows how to perform bitwise operation on DataTable.Select
Thanks
|
|
|
|