I have a web service that has been working, but I recently changed it
so that the reference would be dynamic. Locally, within Visual Studio,
it works fine. However, once deployed, the dll I use to access it has
trouble. I get a null reference exception and figure it's because of
the change to dynamic url.
I noticed in the discovery file and the wsdl file that the old
reference (to localhost) is still there. What do they need to be in
order to get this null reference thing resolved and to work with a
dynamically set url? 2 1299
"HockeyFan" <le**********@g mail.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
>I have a web service that has been working, but I recently changed it
so that the reference would be dynamic. Locally, within Visual Studio,
it works fine. However, once deployed, the dll I use to access it has
trouble. I get a null reference exception and figure it's because of
the change to dynamic url.
I noticed in the discovery file and the wsdl file that the old
reference (to localhost) is still there. What do they need to be in
order to get this null reference thing resolved and to work with a
dynamically set url?
Your assumption about what's causing this may not be correct. A dynamic URL
is meant to be set from the application's config file. If the entry is not
found in the config file, it is meant to default to the URL from the WSDL
file. It should _not_ be throwing a NullReferenceEx ception due to dymanic
URL.
You should go use standard troubleshooting techniques to determine why
you're seeing the NullReferenceEx ception.
John
I have determined that inside the proxy, it is erroring when it does
Me.Invoke.
The specific exception is
"object reference not set to an instance of an object". It's not
making it to the webservice. However, running inside VIsual Studio. it
works fine.
ANd the config is set correctly.
What else should I be looking at? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andre Meyer |
last post by:
Hi all
I have been searching everywhere for this, but have not found a
solution, yet.
What I need is to create an object that is an instance of a class (NOT a
class instance!) of which I only know the name as a string. This what I
tried:
class A:
|
by: john |
last post by:
Hi,All Gurus:
It is kind of complicated, please bear with me and let me know if you have
any questions.
Thanks a lot in advance.
John
I have a csharp method, using emit to dynamically generate classes & method
depends on the meta table in the database,here is my problem
1) One method I generated works when it was called, but another set of
method does not work, it generate the following error
|
by: john |
last post by:
Hi,All MS Tech Gurus:
I need your help!!! It is the second time I post this message, I need get
some feedback ASAP, Please Help!!
Thanks a lot in advance.
John
I have a csharp method, using emit to dynamically generate classes & method
depends on the meta table in the database,here is my situation
1) In One method I generated the code Dynamic IL Code (Depends on the data
pass to it), The generated code works for one dataset but does...
|
by: Luis Arvayo |
last post by:
Hi,
In c#, I need to dynamically create types at runtime that will consist of
the following:
- inherits from a given interface
- will have a constructor with an int argument
|
by: andychambers2002 |
last post by:
I'm working on a "TempFile" class that stores the data in memory until
it gets larger than a specified threshold (as per PEP 42). Whilst
trying to implement it, I've come across some strange behaviour. Can
anyone explain this?
The test case at the bottom starts a TempFile at size 50 and prints its
type. It then increases the size to the threshold at which point
"self" is changed to being a TemporaryFile. It seems that the next
call...
| |
by: Nate |
last post by:
Good Morning All,
What we have is a dynamic business object that has varying numbers and types
of properties. What it models is a generic saleable product. Not all
products have the same properties. For instance, if you were selling
software you wouldn't have a color, if you were selling vases you wouldn't
have a file size. So, even though they are all generic products, they have
specialized properties. I know you're thinking...
|
by: cwertman |
last post by:
I have a question regarding dynamic properties.
I have an Object say
Account
--Id
--Prefix
--Fname
--Lname
--Suffix
|
by: Jo |
last post by:
Hi,
How can i differentiate between static and dynamic allocated objects?
For example:
void SomeFunction1() {
CObject *objectp = new CObject;
CObject object;
|
by: manatlan |
last post by:
I've got an instance of a class, ex :
b=gtk.Button()
I'd like to add methods and attributes to my instance "b".
I know it's possible by hacking "b" with setattr() methods. But i'd
like to do it with inheritance, a kind of "dynamic subclassing",
without subclassing the class, only this instance "b" !
In fact, i've got my instance "b", and another class "MoreMethods"
|
by: andrew cooke |
last post by:
Hi,
This is my first attempt at new classes and dynamic python, so I am
probably doing something very stupid... After reading the how-to for
descriptors at http://users.rcn.com/python/download/Descriptor.htm I
decided I would make an object that returns attributes on read, but on
setting calls an arbitrary function.
My code looks like:
class ActiveDAO(object):
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |