Why does this code stop? VB ASP.NET

Hey I am coding with Visual Studio 2003. My program was working fine until I presented a dll created with CreateObject. Code:

Set docs2 = server.CreateObject("DocGetter.Form1")
docs2.GetDocument oXMLDom,numID

      

It seems to be stuck with this code. I've already used regasm to register the dll. What else could be wrong?

+1


source to share


3 answers


Add a DLL reference to your project and instantiate the object like this:

Dim docs2 As New DocGetter.Form1()

      



If it doesn't make sense then fix it the way it is. There is no reason to use CreateObject in .Net code. (Okay, this hyperbole, but the main sound).

+1


source


Can you elaborate - is it a web app or client (winform) app? Form1 sounds like winform. ASP.NET runs on the server, so the display of the form will be inappropriate — this will happen on the server, not the client. In short, don't do it!

I also don't see where the "stored procedures" appear, so I removed the tag.



What are you trying to do? Options for displaying something more complex on the client include:

  • DHTML
  • outbreaks
  • Silverlight
  • clickonce [requires Windows client]
  • ocx [not recommended]
0


source


I would bet money that this function is not defined by this name and / or parameters.

docs2.GetDocument oXMLDom,numID

      

But because of the way you create the object, the compiler doesn't know about it ... I guess.

0


source







All Articles