Click here to Skip to main content
15,889,992 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionNeed a quick answer on Wcf Configuration Editor.... Pin
Michael Eber14-Aug-10 6:50
Michael Eber14-Aug-10 6:50 
Question.net (Pass data from web application to static IP) Pin
ShafiqA13-Aug-10 0:37
ShafiqA13-Aug-10 0:37 
AnswerRe: .net (Pass data from web application to static IP) Pin
Pete O'Hanlon13-Aug-10 23:59
mvePete O'Hanlon13-Aug-10 23:59 
GeneralRe: .net (Pass data from web application to static IP) Pin
ShafiqA15-Aug-10 18:42
ShafiqA15-Aug-10 18:42 
GeneralRe: .net (Pass data from web application to static IP) Pin
Dave Kreskowiak15-Aug-10 18:51
mveDave Kreskowiak15-Aug-10 18:51 
GeneralRe: .net (Pass data from web application to static IP) Pin
ShafiqA15-Aug-10 22:44
ShafiqA15-Aug-10 22:44 
GeneralRe: .net (Pass data from web application to static IP) Pin
Dave Kreskowiak16-Aug-10 1:46
mveDave Kreskowiak16-Aug-10 1:46 
Questionhow to build the dynamic webreference via NANT build script Pin
mukkil12-Aug-10 7:20
mukkil12-Aug-10 7:20 
Dear all,

I have inherited a web app project that makes use of a number of WCF Web Services hosted on a remote server. We have two environments that I need to deploy this project to, with different URLs for the different remote servers.

i.e. In the Staging environment, I need to point the services at xx.xx.xx.101
In the Live environment, I need to point them at xx.xx.xx.102, or whatever.

Currently, we've got all of the URLs stored in keys in the web.config file, so that we can change them dynamically... Unfortunately this isn't working!

If I change the URL in the web.config to something other than what the project was compiled with, I get an error when calling the web service:
Server did not recognize the value of HTTP Header SOAPAction: xx.xx.xx.101\ServiceName\MethodName.

During the .NET conversion process from 1.1 to 3.5, there is a Auto Generated web reference source file (Reference.cs under web reference) that contained the logic to get the correct Production URL for configuration file (web.config).

The problem is this logic seem to be replaced with a manual hard code referencing test webservice URL. Regarding how this happened still seems to be a puzzle which is hard to find as this file was supposed to be auto-generated and no manual edits should have taken place. This was not encountered in TEST environment as the unit test scenarios covered Common test accts.

It's driving me mad! I've written a pre-build NAnt script to go through and replace all instances of the URL found anywhere in the project directory, and even that isn't making any difference.

There must be something else being pulled down from the service when I click the "update reference", but I'm new to working with web services, and so I'm not sure what.

Does anyone have any ideas? Is there a way to do this programatically?
Reply With Quote
QuestionHow to force printer "Microsoft XPS Document Writer" to print in a file without inquiry for the user of a filename Pin
Degun12-Aug-10 5:00
Degun12-Aug-10 5:00 
AnswerRe: How to force printer "Microsoft XPS Document Writer" to print in a file without inquiry for the user of a filename Pin
Degun19-Aug-10 3:27
Degun19-Aug-10 3:27 
AnswerRe: How to force printer "Microsoft XPS Document Writer" to print in a file without inquiry for the user of a filename Pin
BMW74018-Nov-10 2:43
BMW74018-Nov-10 2:43 
QuestionHow to confim _TransparentProxy object is OK? Pin
liuqian503612-Aug-10 3:26
liuqian503612-Aug-10 3:26 
Questiondevelop popup message that should get data from user when i am clicking update button in the gridview Pin
sarala.s10-Aug-10 19:49
sarala.s10-Aug-10 19:49 
AnswerRe: develop popup message that should get data from user when i am clicking update button in the gridview Pin
Scubapro11-Aug-10 1:32
Scubapro11-Aug-10 1:32 
QuestionHow receive video stream in code ? [modified] Pin
Yanshof10-Aug-10 2:44
Yanshof10-Aug-10 2:44 
AnswerRe: How receive video stream in code ? Pin
Abhinav S10-Aug-10 19:52
Abhinav S10-Aug-10 19:52 
QuestionFileWatcher class and WMI Pin
NetQuestions9-Aug-10 20:08
NetQuestions9-Aug-10 20:08 
AnswerRe: FileWatcher class and WMI Pin
dan!sh 10-Aug-10 5:08
professional dan!sh 10-Aug-10 5:08 
GeneralRe: FileWatcher class and WMI Pin
NetQuestions10-Aug-10 19:46
NetQuestions10-Aug-10 19:46 
GeneralRe: FileWatcher class and WMI Pin
dan!sh 10-Aug-10 23:23
professional dan!sh 10-Aug-10 23:23 
QuestionSQL Reporting Services - Print Button not shown in Mozilla Pin
Prosanta Kundu online9-Aug-10 18:02
Prosanta Kundu online9-Aug-10 18:02 
QuestionP/Invoke "why" question Pin
Gordon Kushner9-Aug-10 8:07
Gordon Kushner9-Aug-10 8:07 
AnswerRe: P/Invoke "why" question Pin
Luc Pattyn9-Aug-10 8:22
sitebuilderLuc Pattyn9-Aug-10 8:22 
GeneralRe: P/Invoke "why" question Pin
Gordon Kushner9-Aug-10 8:54
Gordon Kushner9-Aug-10 8:54 
GeneralRe: P/Invoke "why" question Pin
Luc Pattyn9-Aug-10 9:06
sitebuilderLuc Pattyn9-Aug-10 9:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.