I have an exe that serializes one of it's classes to disk. I also have the
exact same .cs file that contains the class that was serialized, in a
Windows service application. I am trying to load that file every time the
service starts. When I try to load it I get this error
File or assembly name PXPJobSetup, or one of its dependencies was not found.
I am not sure what I need to do.
Thanks
Dan Reber 4 1718
Make sure that you're referencing the assembly where the class of the
serialized object is defined.
It is not enough to just have that class redefined in your deserializing
project.
"Daniel Reber" <no****@nospam. com> wrote in message
news:OA******** ******@TK2MSFTN GP10.phx.gbl... I have an exe that serializes one of it's classes to disk. I also have
the exact same .cs file that contains the class that was serialized, in a Windows service application. I am trying to load that file every time the service starts. When I try to load it I get this error
File or assembly name PXPJobSetup, or one of its dependencies was not
found. I am not sure what I need to do.
Thanks
Dan Reber
Thanks for your help. I changed the one project to a Class Library and it
works fine.
By the way, what do you mean by "referencin g the assembly"
Dan
"Val Savvateev" <vs********@mer idium.com_NO_SP AM> wrote in message
news:#o******** *****@TK2MSFTNG P12.phx.gbl... Make sure that you're referencing the assembly where the class of the serialized object is defined. It is not enough to just have that class redefined in your deserializing project.
"Daniel Reber" <no****@nospam. com> wrote in message news:OA******** ******@TK2MSFTN GP10.phx.gbl... I have an exe that serializes one of it's classes to disk. I also have the exact same .cs file that contains the class that was serialized, in a Windows service application. I am trying to load that file every time
the service starts. When I try to load it I get this error
File or assembly name PXPJobSetup, or one of its dependencies was not found. I am not sure what I need to do.
Thanks
Dan Reber
Just what you did - you moved your "serializea ble" class into a separate
assembly (class library) and now, I guess, both the exe app and the service
are referencing that class library...
"Daniel Reber" <no****@nospam. com> wrote in message
news:OP******** ******@TK2MSFTN GP12.phx.gbl... Thanks for your help. I changed the one project to a Class Library and it works fine. By the way, what do you mean by "referencin g the assembly"
Dan
"Val Savvateev" <vs********@mer idium.com_NO_SP AM> wrote in message news:#o******** *****@TK2MSFTNG P12.phx.gbl... Make sure that you're referencing the assembly where the class of the serialized object is defined. It is not enough to just have that class redefined in your deserializing project.
"Daniel Reber" <no****@nospam. com> wrote in message news:OA******** ******@TK2MSFTN GP10.phx.gbl... I have an exe that serializes one of it's classes to disk. I also
have the exact same .cs file that contains the class that was serialized, in a Windows service application. I am trying to load that file every time the service starts. When I try to load it I get this error
File or assembly name PXPJobSetup, or one of its dependencies was not
found. I am not sure what I need to do.
Thanks
Dan Reber
That's correct, thanks for your help.
Dan
"Val Savvateev" <vs********@mer idium.com_NO_SP AM> wrote in message
news:ei******** ******@tk2msftn gp13.phx.gbl... Just what you did - you moved your "serializea ble" class into a separate assembly (class library) and now, I guess, both the exe app and the
service are referencing that class library...
"Daniel Reber" <no****@nospam. com> wrote in message news:OP******** ******@TK2MSFTN GP12.phx.gbl... Thanks for your help. I changed the one project to a Class Library and
it works fine. By the way, what do you mean by "referencin g the assembly"
Dan
"Val Savvateev" <vs********@mer idium.com_NO_SP AM> wrote in message news:#o******** *****@TK2MSFTNG P12.phx.gbl... Make sure that you're referencing the assembly where the class of the serialized object is defined. It is not enough to just have that class redefined in your
deserializing project.
"Daniel Reber" <no****@nospam. com> wrote in message news:OA******** ******@TK2MSFTN GP10.phx.gbl... > I have an exe that serializes one of it's classes to disk. I also have the > exact same .cs file that contains the class that was serialized, in
a > Windows service application. I am trying to load that file every
time the > service starts. When I try to load it I get this error > > File or assembly name PXPJobSetup, or one of its dependencies was
not found. > > I am not sure what I need to do. > > Thanks > > Dan Reber > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Brent |
last post by:
I maintain a Sql Server database application whose forms are compiled
in a .dll and kept in a remote web folder. The main .exe looks to the
web folder to see if this .dll exists. If so, then it compares the
..dll with the cache copy. If the cache copy is older then it downloads
a new copy. If the .dll is not present, it throws an error.
In my main .exe, I need to early bind my "Main" form from my
FormsLibrary.dll to get data into it. If...
|
by: Carlos G Benevides |
last post by:
I have a ASP.Net web application that has two assemblies that run
under com+. Under Windows 2000 the two assemblies are added to com+
automatically when instantiated from the web site. For this to happen
we had to change the context in which asp.net runs from machine to
SYSTEM by modifying the machine.config file. Under Windows 2003 no
matter how asp.net is set to run as either machine or system. I get
the following error:
...
|
by: Nels P. Olsen |
last post by:
If you serialize an object graph to persist it somewhere (e.g. a database) between application sessions, then you run into trouble if the serialized objects' existing field order or datatypes change, or if the object is moved from one assembly or namespace to another. Even if we're careful about making such changes, we need to serialize object graphs which may contain objects defined by the user, and users are sure to make incompatible changes...
|
by: Luis Pinho |
last post by:
Hi There,
I've got a server that is waiting for requests, these request
correspond to calls to objects that are specified in assemblies stored
in the GAC.
To do this, I use reflection to call the methods.
Now, when I'm trying to optimize the code, I noticed that the
assemblies that are loaded during the reflection call, are never
|
by: Henrik Skak Pedersen |
last post by:
Hello,
I have a class which is beeing serialized/deserialized using the
BinaryFormatter class. That has been working with no problems until I signed
all my assemblies. Now I get a SerializationException when I try to
Deserialize the class which has been serialized before the signing. So what
is best practice in my situation?
Do I have to convert all my saved classes or do I write a
SerializationBinder to handle it runtime?
| |
by: Rainer Queck |
last post by:
Hello NG,
I realized, that my application won't start, if a referenced assembly is
missing.
Basically this is understandable, but since I destribute my applictaion
without a setup, it can happen that I forget one or the other .dll.
Since my app depends on a whole bunch of .dll it would be great, if the app
could tell me which assemblies are missing instead of not starting at all.
|
by: christopher.watford |
last post by:
I'm loading a plugin assembly using Activator.CreateInstanceFrom, and
inside this assembly is a settings class which gets serialized to XML.
The general code flow is as follows:
ObjectHandle pluginHandle = Activator.CreateInstanceFrom(assemblyName,
type);
object plugin = pluginHandle.Unwrap();
....
|
by: =?Utf-8?B?TWFydHluIEZld3RyZWxs?= |
last post by:
From the amount of articles about this one I’m sure this gets asked a lot,
but I haven’t yet found a succinct article which explains what is required in
its entirety.
I work using Visual Studio 2005 SP1 mainly in ASP.Net using VB.Net 2.0.
I have an application which runs without error on my development server so I
believe that the underlying code is correct.
Most of my applications including this one runs on a shared server (Win
|
by: Joe Withawk |
last post by:
I have a solution consisting of a c# project as win application and a c++
project as classlibrary. Both are .net 2.0
The classlibrary handles some loading of quicktime movies, but that should
not be relevant.
On my development machine I build the exe and dll and run the exe which has
a reference to the dll. At some point it uses featured in the dll.
This works fine.
Then I copy my exe and dll to the target system and when the featured...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 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...
| |