|
Does anyone know any good or decent testing tools for vs 2003 since they don't provide you with any.
My goal is to test methods (i already know about Nunit). in VS 2005, we can use the object test bench to create instances and test methods within the instance. im sort of looking for a tool that does the same. Nunit does no justice.
|
|
|
|
|
How to customize the pacakge and Deployment options of vb.net project so that I can provide an options to users for the installation of application. Same like Ms-Office, Ms-Visual studio.net and so on...
|
|
|
|
|
As far as I know, you can't. The default installer that Windows uses when you package your project is preset. I would suggest a standalone installer, NSIS would be best for what you are trying to do.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
If a client is expecting XML to be returned would I do that as a string or just pass a class back with the properties of the items that I need to return? Does the client receive an "XML" value when I do that or a collection of values that must be received into a similar class object and therefore is not read in as straight XML?
Thanks,
Cleako
|
|
|
|
|
From my experience you would just send an XML file which would essentially be a string in a file. Putting the items in a class might be harder to handle. Do you know how the client is parsing the XML? I would assume they would load the XML into an XML document object which just requires a stream reader. They would receive the file as a string and the XML object would handle it from there.
-------------------------------------
Do not do what has already been done.
Absolute power corrupts absolutely.. but it ROCKS absolutely, too.
|
|
|
|
|
When you say send an XML file do you mean create an XMLDocument and then send that back? Im pretty new to dealing with XML and am currently searching the web while I wait on replies.
Cleako
|
|
|
|
|
Depends on how they want it. If you're sending them a physical file or if it's a web service. Physical file would be printing the XML out to a file but you could probably send an XMLDocument to them over a web service. Several ways this could be handled. Have you searched the articles here on CP for suggestions?
-------------------------------------
Do not do what has already been done.
Absolute power corrupts absolutely.. but it ROCKS absolutely, too.
|
|
|
|
|
No, Ive been Googling it. This will not be a public web service in the sense that it will not be available to everyone but only to the sites that my company has created. The client, "site", will send what I understand to be an XML string. I am to return an XML string back. So my original question is, would I just return a string value that is filled with a formatted XML string that I create and also accept one string argument?
What I am seeing in this code that I have inherited from a previous developer is one method returns a string of XML like I understand the process to do, the rest return a response object such as "Person" or "Place" etc. that shows up in XML format on the screen but must be received by a similar object on the other end (or am I wrong about that?).
Cleako
|
|
|
|
|
Yes, you would return a string with the XML tags in it and they will parse that out much like your input procedure does on the string they send you. I would look there if possible to get an idea of what they're doing. If you're sending objects back then there must be something on their end to receive it. It's probably just an object that parses XML into properties and then uses XSLT or something like that to translate on their end. If all they're getting back is a string then that would be your answer. If you're sending the objects then just follow what's been written and bend it to your needs. Possibly see if you can get a client representative to clear up exactly what they are expecting.
-------------------------------------
Do not do what has already been done.
Absolute power corrupts absolutely.. but it ROCKS absolutely, too.
|
|
|
|
|
I will be doing that today I just wanted to make sure that my understanding of the returned format was correct.
According to the receiving end an XML string <> Serialized Object correct?
Cleako
|
|
|
|
|
If you're sending an XML string then yes. I believe you could take an object and parse it to XML with something like a toXML type command. Haven't worked with it for awhile but I think serializable object should be able to break down to a string for sending. Make sense?
-------------------------------------
Do not do what has already been done.
Absolute power corrupts absolutely.. but it ROCKS absolutely, too.
|
|
|
|
|
I didnt think of that, that might be the solution I use to better handle the XML without a lot of clunky code.
So other than pre-serialization if I were to return objResponse to the calling client can that be interpretted the same as a string or does it require a similar object on the other side to accept it? That is what I am really getting at here.
Thanks!
Cleako
|
|
|
|
|
Any of it will probably require SOME work on the other end to process it. You could also ask about this in the XML forum and see what you get there. That might help you more.
-------------------------------------
Do not do what has already been done.
Absolute power corrupts absolutely.. but it ROCKS absolutely, too.
|
|
|
|
|
Why not use SOAP for requests and responces? If you are using .NET on both ends SOAP will serailize/deserialize the object for you automatically.
Mike Lasseter
|
|
|
|
|
I dont believe that the client calling this service is using .NET. I actually do let the WS do the work for me currently. I believe the client is not that picky and will work with what they get so I may be able to build a class structure that holds all of the values and see how that works when I return it.
Cleako
|
|
|
|
|
Hi all,
Can anyone please tell me what is the difference between Setup.exe file and Setup.msi file which is created for deploying the exe on target machine.
|
|
|
|
|
A .exe (Executable file), is used to execute any program and can be used to install software. A .msi file (Microsoft Scriptable Installer) file, is usually used to install Microsoft components.
.Exe files are the most commonly used.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
I need to know how to add files to the Application Files List in publish section of a project in VB 2005 Express Edition, specifically a database file. The file is in the resource section but i need it to show up in the application files list.
i dont need to add it to the resource file i need to add it to the Application file list so that i can deem it a data file and the program will place the file in the correct place to be accessed by the program otherwise when i install the program it looks for the database and cannot find it, then errors out and shuts down the program. Unless anyone knows a different way to tell the installer to copy that database file to the correct path?
|
|
|
|
|
What installer are you using ? I can put any file I want, anywhere I want with every installer program I've ever used.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
windows installer 3.1 i guess, i mean i am using the options provided by the VB 2005 Express Edition
should i be using the a third party installer
-- modified at 15:21 Wednesday 10th January, 2007
|
|
|
|
|
You're going to have to modify your code so you can find the database if you're going to deploy your app using ClickOnce (or Publish) deployment. This is because your database file (.MDB) is going to end up in a different folder than your app's .EXE.
You'll have to modify the code so you can specify the FULLY QUALIFIED PATH to the .MDB file when you build your connection string to open the database. Details can be found here[^].
But, you just add your MDB file to your apps project to make it a part of the installation. ClickOnce will automatically put it in your apps Data folder when it's deployed on the client machines.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
what do you mean by add because it is in the resource file and the program runs off the database in the IDE.
|
|
|
|
|
Don't put it in the resource file. Use the .MDB file right off the drive. You can't use an Access database that's stored in resources anyway because you can't get write access to it. It MUST be accessed from a file on a Read/Write media.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
He's using ClickOnce Deployment. IMHO, a nasty little can of worms.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi
I am using a Data Grid control to retrieve data from the data base using a data table object. I need to add new records into the Data Base through this Data Grid while it is running, what should I do after I create a new record on the data grid.
Dim ds As New DataSet
Dim empdtbl As DataTable
empdtbl = dbLogic.GetLookUp("select USER_INDEX, USER_NAME, USER_PASSWORD, EMAIL_ADDRESS FROM DB_USERS", "USERS").Tables(0).Copy
ds.Tables.Add(empdtbl)
Me.DataGrid1.DataSource = ds.Tables(0)
note: dbLogic.GetLookUp is a method that is in dblogic object wheich contains the connection properties.
|
|
|
|