I have this VB ASP.NET Web Service Application project running VS 2005. I'm trying to add references. To do so I click on the "Properties" icon in the Solution Explorer window which presents me with a window to add/update/remove references. I click "Add", I select the reference I want and then "OK". Lo en behold, NOTHING! It simply won't add references (I tried adding several different ones). Specifically I'm trying to add the System.Configuration assembly.
I used the tool about 3 years ago to create the classes for a webservice client to send or recieve arrays as complex data. Now i have to update these classes, since there are additional informations, that have to be exchanged. When i use the tool now with the new wsdl-files, it does'nt create the classes for complex data (structur, IGCTMObjectFactory), but only one class for simple data. In addition i have to establish a new client, that sends an array of complex data and receives another array of complex data. I tried to build the classes manually combining the client that sends an array with the client, that receives an array, but I failed.
I have a vb.net dll MyAssembly.dll (framework 2.0)that is created dynamically using reflection for the first release. I had used Reference assemblies (like Reference Assembly1.dll and ReferenceAssembly2.dll) which were not signed for strong name during compilation. I am going to have a new set of referenced assemblies as a part of upgrade and these will be signed for Strong name. Is there any way to decompile the MyAssembly.dll, update its references to get the updated signed asssembly references into it and compile it back? Can it be done programatically instead of going thru tools like .Net Relector from RedGate.OR can I use app.config file with CodeBase or bindingRedirect or Probing to redirect the unsigned assembly reference to the signed assembly reference? I did not find anywhere redirecting unsigned assembly reference to the signed assembly. As the previous ReferenceAssembly1.dll was unsigned, I cannot put it into GAC. bindingRedirect works with assemblyIdentity which should match with publicKeyToken also. Codebase works better with signed references. it does not consider "version" attribute for unsinged assemblies. Probing I cannot use as I am going to have many upgrade patches which will have signed assemblies.
I have Crystal Reports 2008 installed on my win7 laptop but when i go to insert references from my application settings the CrystalDecisions references are missing and im not able to find them. Note: they do exist in my "c:windowsassembly" folder.
Any VB2008 code that would allow me to download files through my program (like an update service), without it freezing, while displaying the progress like that of IE7, etc... using a progress bar, and that displays the size and speed?
I am writing a vb.net client application that uses a web service to connect to the remote database.So far I am able to connect to the web service and read, add new and delete data from the database. I am having a hard time updating data.
I have a datagridview control that is bound to a dataset retrieved from the remote database using the web service.When a record is edited in the datagridview control, I need the dataset that is bound to that control to be updated and then that updated dataset to be sent to the webservice to update the remote database.
My client code in the btnUpdate_Click event
dim new_ds as new dataset = datagridview1.datasource Dim es As New testwebservice.equipmenttracker 'the web service reference dim msg as string = es.updateequipment(new_ds) messagebox.show(msg)
Im trying to logically figure out how to update a record in a database through a web service to the database I have created this web method function but im stuck on completing this
I am using UltraGrid for inserting data in table. The problem is that i need to do insert,update, delete with web service. I am getting dataSet from web service and display it into grid but when I do some changes on the grid for example insert or update data, I need also to send new dataSet to web service so that web service do update data.
I have created a service that updates dictionaries and outputs an xml file of the contents. It will do it fine first time round, but then I get the following exception when it tries to do it the second time system.argumentexception an item with the same key has already been added Is there anyway I can set it so that the dictionary contents are overwritten each time?
I am connecting to a web service that returns a dataset that I use as a datasource for a windows client datagridview.
Once a user has made changes to the datagridview record(s), how do I get those changes back to the connected dataset and back to the remote database.
I wrote the sql update function in the service:
Code Snippet from web service
<WebMethod()> _ Public Sub Update_equipment_repair(ByVal repair_id As Int64, ByVal date_entered As DateTime, ByVal date_sent_in As DateTime, ByVal date_returned As DateTime, ByVal damage_description As String, ByVal vendor_id As Int64, ByVal repair_description As String)
[Code]....
This displays the records perfectly and I figured out how to delete and insert records via web service.
writing updates from the datagridview back to the database.
I am writing a small windows client application that accesses data using a web service that returns datasets.When the dataset is returned, a datagridview's datasource is set to the dataset.
My question is, how do I write changes that were made in the datagridview back to the dataset and then back to the remote database.
[Code]...
Now the client snippet that connects to the service and lists the equipment
I am creating a windows service to save current username and logon time in a CSV file. But when I install the service, the file is just created, not details are written to it, and that file is set to read-only mode. what is the problem in my code?
i have a Windows service that is hosting a WCF service through net.tcp and this is working great. I have also created a WCF service application. I am trying to add the net.tcp service reference to the service application. Then I add it to the GAC that goes ok but if I try to RegAsm the WCF service application to allow it to be called from Server.CreateObject I get the error:
Warning: Type library exporter encountered a type that derives from a generic class and is not marked as [ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be exposed for such types. Consider marking the type with [ClassInterface(ClassInterfaceType.None)] and exposing an explicit interface as the default interface to COM using the ComDefaultInterface attribute.
It does not work. I have tried to call it through a class library but this does not work either as the end point is not set correctly.
I am a relatively new coder and have been learning quite a bit over the past year. I have a fully functional application that works fantastic, and I am now in the process of learning better coding habits.The original code is set up like this...I have a combobox where I place the collection items in manually.On the selectedIndexChanged event handler I used a case statement that looks something like this: [code]Ok, so as you can probably tell, the file name and the dropdown option have the same name, and when it's selected it loads the contents of the resource file into the listbox. It works great...but I was told that since the case statement is ever growing, I should use a dictionary instead. So my goal was to simplify my coding efforts (when I add a new item I have to code in three different areas...with the dictionary, I only have to add the new item and everything else will take care of itself).
So I created the dictionary in a sub, an used a for each loop to dynamically load the combobox with the key values.My values in the dictionary are set up as "My.Resources.filename" where filename matches the key value.I want to be able to call the value based on the selected key. After 5 days of researching I think the best option is the TryGetValue method, but I cannot get it to work...I have used so many different examples, that I actually had to get rid of them all and don't have any current code to post.
1) If I redeclare the dictionary, won't it be empty?
2) How do I "extract the value based on the selected key an set it to a variable (i.e. myvariable = My.Resources.selectedkeysvalue)
I would like to take a screen shot and save it in a sub folder in the main folder the application opened from for example C:/~/Application path/Screen shots/ I am using Visual basic 2005.
Having an issue with a Datagridview that I am trying to create. What I need is for not only column headers but row headers. If you are not sure what I mean, take a look at this image;
[Code]...
Notice how the screen shot has a column and row headers? Now I do not need the "view selector". To make matters worse I need to have two row headers. Kind of like this;
What i want to make is a 1 button screen shot recorder, i have a picture what what i optimally want that was created on vb6. Edit: Ok this is what i want, after thinking about it i realized how it should be done.
Form 1 - initial screen capture button and send to in form2 Form 2 - view picture with save button imagebox
so i know how so take and save a screen shot, what i need to know is how to get it the imagebox and have form2 automatically pop up. What i have so far. [Code]
I have this cod to take a picture of this location
[Code]...
but it uses the edge of my screen as 0,0 how could i make 0,0 the edge of the application. Edit: ALl i know to do was copyfromscreen butthat uses the screen
Basiclly i want a button that takes a screen capture of form1 then automaticly opens up a picture box in Form4 for example. Problem: The picture box in form 4 will not display the screen capture that got taken in form 1.
Dim bounds As Rectangle Dim screenshot As System.Drawing.Bitmap Dim graph As Graphics
i have made an application which will capture screen shot and frequently will saves in word doc autmatically. but it will take whole screen.now my req is to take snap particular area of the screen selected by mouse.
On my program I am making a web browser and I want it to take screen shots of a web browser every X seconds. (X = any amount of seconds that the user can type in into a text box.) Then can it be saved to any location on the computer that the user can pick?
how would i take a screenshot like 100,100 around the cursor like taking a screenshot and the cursor positon is in the middle of it and its 100,100 around it
I did a search on capturing screen shots in vb.net amd I was wondering if there is a straight forward way to capture the active window? Or do I need to first get the handle of the active window, get the position and size and then capture it? I do not want to use any type of sendkeys method or use the clipboard. I want to save it to jpg format.
im trying to create a screen shot manager that opens up whenever the user hits the print screen key i need it to be global so the event fires no matter what window has focus
I'm implementing an application using vb.net 2005 with oracle 10g and I came across a functionality that should Select/Insert/Update/Delete data from three different tables in oracle.So I`m wondering if there is a way to prepare all the 3 commands (SQL Statements) separately and then execute them in one shot to the oracle, so in this way I can guarantee that all of them are successfully executed or all are failed to execute, and also I could gain more performance which is critical in my case.Thus I`m looking for a syntax in vb.net that helps me execute more than one OracleCommand in one shot to the oracle.