473,324 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Changing the Webservice reference dynamically

Hi All,

Got an error while changing the url behaviour property from static to dynamic.
The error was following

Writing the dynamic URL properties to the config file failed because an
error occurred while trying to open and parse the file.

Can anyone help me on this?

Thanks & Regards
Vidds
Jan 3 '06 #1
2 1424
You can set the Url property on the webservice proxy class dynamically at
runtime just prior to making any method calls.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Vidds" wrote:
Hi All,

Got an error while changing the url behaviour property from static to dynamic.
The error was following

Writing the dynamic URL properties to the config file failed because an
error occurred while trying to open and parse the file.

Can anyone help me on this?

Thanks & Regards
Vidds

Jan 3 '06 #2
Hi ,
Thanks for the help but I just want to change the property once so that can
be applied through out the site other wise i need to make changes at many
places and thats not feasible looking at the anormity of the project.

Do suggest on the error i am getting and what might be the possible reason.

"Peter Bromberg [C# MVP]" wrote:
You can set the Url property on the webservice proxy class dynamically at
runtime just prior to making any method calls.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Vidds" wrote:
Hi All,

Got an error while changing the url behaviour property from static to dynamic.
The error was following

Writing the dynamic URL properties to the config file failed because an
error occurred while trying to open and parse the file.

Can anyone help me on this?

Thanks & Regards
Vidds

Jan 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Norm Dotti | last post by:
I'm using the AppDomain.CurrentDomain.GetAssemblies() method to obtain a list of currently loaded assemblies. This returns the expected assembly name and version values. However, if I make a...
7
by: Richard Myers | last post by:
Hello. I am getting an InvalidCastException which has revealed yet more of my ignorance. I cant believe i dont already know this and haven't encountered it before until now. I am consuming a...
1
by: Suresh | last post by:
Hi, Iam trying to develop a client in C# on .NET, that would acess a webservice written in Java.I dont know anything about what kind of WSDL would be required, how to set the web references...
5
by: Carlos Hernandez | last post by:
We have created a webservice, and in out test server everyting works fine, but when we want to move it to our production server, we have ti change IP in the webreference properties, and rebuild...
1
by: Nick via .NET 247 | last post by:
I have a similar problem trying to use web services with awindows form application. I currently use a static web referencein my project. What I am trying to do is to programaticallychange the url...
5
by: lavu | last post by:
I have a C# client application that uses a COM DLL(written in C++) or a webservice (the webservice is the same COM DLL wrapped up as a webservice). The client can dynamically (based on form...
2
by: Big George | last post by:
Hello Experts ! I'm using: VS.NET 2003 I have a webservice1.Service1. I have installed it on IIS. No problem. I can access it through: http://localhost/WebService1/Service1.asmx or...
5
by: VictorG | last post by:
Hello, I am trying to secure a webservice using WSE 3.0 and the turnkey usernameForCertificateSecurity profile. I am passing a valid username token, and on the server I have overridden the...
0
by: bharadwajrv | last post by:
i created the C Console project in .Net framework (VS 2003) and added the web reference to .Net webservice. This has created a "Service" namespace, and using which i'm able to invoke the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.