Not in the case of COM components. They MUST exist on the server that you
are executing your application from.
COM components must be registered on the server that they are used from,
i.e. in the registry. The Interop DLL is copied into the bin directory, but
it is just a proxy class. It is a translation layer between .NET and COM.
It needs to be able to access the actual COM server.
Hope this helps,
John
"Tee" <> wrote in
news::
> Isn't we just upload all the needed dll to the bin folder ?
>
> I have set those COM copy local = true ...
>
> Any Idea ?
>
> Thanks,
> Tee
>
>
>
> "John Sturgeon" <> wrote in message
> news:...
>> Several possibilities come to mind:
>>
>> 1. You may be missing a .NET reference on the server. Are all your
>> references (non-GAC) included in your bin directory?
>> 2. You may be using COM Interop and the COM server you are
>> referencing
> does
>> not exist on the IIS server.
>> 3. You may be expecting a value to be set and the value is
>> non-existant outside your environment, leaving the variable
>> uninitialized. 4. Any number of other possibilities.
>>
>> If you are in control of the server, try Remote Debugging the
>> application
> on
>> the IIS server and step through the code. Otherwise, try adding Trace
>> objects and listeners to write out application state periodically to
>> an event log or text file.
>>
>> John Sturgeon, MCP, MCSD
>> BizTech Solutions, Inc.
>>
>> "Tee" <> wrote in message
>> news:#...
>> > Hi,
>> >
>> > I having a problem with my asp.net project.
>> > The project work fine on my own PC, but when I upload it to the
>> > server,
> I
>> > got the following error :
>> >
>> > Object reference not set to an instance of an object
>> >
>> > I have try to search for the solution using this error message, and
>> > I
>> found
>> > that a lot of other people have the same problem as the project
>> > only
> work
>> in
>> > their own PC. But so far I haven't get any answer that could solve
>> > this question. Anyone know why is this happen and how to fix it ?
>> >
>> > Thanks,
>> > Tee
>> >
>> >
>>
>>
>
>
>
|