473,402 Members | 2,064 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,402 software developers and data experts.

Instantiation of object fails

I developed an ASP.NET application on a client machine.
After building and testing the appilcation on the client,
everything works fine. When I copy the files to the web
server using XCOPY, the files that reference a customized
component do not work. I installed the component on the
web server by double clicking the .msi and it seems to
have installed correctly. However, the page errors out
when it attempts to instantiate the object. Anything else
I need to do to setup the component on the web server?

The code throws an exception on the Dim of groupInfo. The
page prints the "Error: Not Created" message.

Try

Dim groupInfo As New GMISystem.GMIUtilities.GMIADGroupInfo
()

Try

Dim blnVar As Boolean
blnVar = groupInfo.IsUserInGroup("G3204GB", "LDA-EMPLOYEE-
SCHEDULER", False)
Response.Write(blnVar.ToString)

Catch ex As
GMISystem.GMIUtilities.GMIADGroupInfo.GMIGroupNotF oundExce
ption

Response.Write("Error: Not Found")

End Try

groupInfo = Nothing

Catch ex1 As Exception

Response.Write("Error: Not Created")

End Try
Nov 17 '05 #1
2 1277
Hi Greg,

First of all, try to output more information about the exception in the "Not
created" hander. This might give you an idea of what's going on.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Greg" <gg**********@yahoo.com> wrote in message
news:01****************************@phx.gbl...
I developed an ASP.NET application on a client machine.
After building and testing the appilcation on the client,
everything works fine. When I copy the files to the web
server using XCOPY, the files that reference a customized
component do not work. I installed the component on the
web server by double clicking the .msi and it seems to
have installed correctly. However, the page errors out
when it attempts to instantiate the object. Anything else
I need to do to setup the component on the web server?

The code throws an exception on the Dim of groupInfo. The
page prints the "Error: Not Created" message.

Try

Dim groupInfo As New GMISystem.GMIUtilities.GMIADGroupInfo
()

Try

Dim blnVar As Boolean
blnVar = groupInfo.IsUserInGroup("G3204GB", "LDA-EMPLOYEE-
SCHEDULER", False)
Response.Write(blnVar.ToString)

Catch ex As
GMISystem.GMIUtilities.GMIADGroupInfo.GMIGroupNotF oundExce
ption

Response.Write("Error: Not Found")

End Try

groupInfo = Nothing

Catch ex1 As Exception

Response.Write("Error: Not Created")

End Try


Nov 17 '05 #2
Hi Greg,

First of all, try to output more information about the exception in the "Not
created" hander. This might give you an idea of what's going on.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Greg" <gg**********@yahoo.com> wrote in message
news:01****************************@phx.gbl...
I developed an ASP.NET application on a client machine.
After building and testing the appilcation on the client,
everything works fine. When I copy the files to the web
server using XCOPY, the files that reference a customized
component do not work. I installed the component on the
web server by double clicking the .msi and it seems to
have installed correctly. However, the page errors out
when it attempts to instantiate the object. Anything else
I need to do to setup the component on the web server?

The code throws an exception on the Dim of groupInfo. The
page prints the "Error: Not Created" message.

Try

Dim groupInfo As New GMISystem.GMIUtilities.GMIADGroupInfo
()

Try

Dim blnVar As Boolean
blnVar = groupInfo.IsUserInGroup("G3204GB", "LDA-EMPLOYEE-
SCHEDULER", False)
Response.Write(blnVar.ToString)

Catch ex As
GMISystem.GMIUtilities.GMIADGroupInfo.GMIGroupNotF oundExce
ption

Response.Write("Error: Not Found")

End Try

groupInfo = Nothing

Catch ex1 As Exception

Response.Write("Error: Not Created")

End Try


Nov 17 '05 #3

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

Similar topics

7
by: zhou | last post by:
Hi there, We have a compiler specific issue which requires us to force template instantiation. This works fine. The problem comes when I try using std:find() on vector. Since vector has no member...
0
by: Nick | last post by:
I am getting the following error when creating a new CacheDependency object: Failed to start monitoring changes to '\\server\share\dir49' This error happens after 48 successful instantiations of...
4
by: Steve Long | last post by:
Hello, I hope this is the right group to post this to. I'm trying to serialize a class I've written and I'd like to be able to serialze to both binary and xml formats. Binary serialization is...
3
by: Steven T. Hatton | last post by:
Has anybody here used explicit instantiation of templates? Has it worked well? Are there any issues to be aware of? -- NOUN:1. Money or property bequeathed to another by will. 2. Something...
2
by: WittyGuy | last post by:
Hi My class looks something like this: class Base { public: Base () {} ~Base () {} // No virtual dtor in the base class private: };
2
by: Florian Loitsch | last post by:
hi, What should be the output of the following code-snippet? === var x = "global"; function f() { var x = 0; eval("function x() { return false; }"); delete x; alert(x); }
0
by: Jeff Tchang | last post by:
Odd issue I am having with class instantiation on Python 2.5.2 (Windows). I have a custom module with a few classes in it. The module is named SAML.py. There is a copy of it in...
0
by: Steve Holden | last post by:
Jeff Tchang wrote: Look for assignments to "SAML" in your code, or a class definition of something called SAML. That message should read "module object "SAML' has no attribute 'Subject'". If SAML...
0
by: John Krukoff | last post by:
On Tue, 2008-11-18 at 10:45 -0800, Jeff Tchang wrote: Random related question. If you're writing a SAML implementation have you found an XML Signature implementation that works reliably from...
0
by: greek_bill | last post by:
Hi, I have a template function for which I use SFINAE to restrict one of the parameters. Then I also have a partial specialization of this function.I would like to provide an explicit...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
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...
0
agi2029
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,...

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.