CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_web_deployment_projects Tags:
Item Type: NewsGroup Date Entered: 2/9/2007 3:29:54 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 26 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
Frinavale
Asp.Net User
Problems Deploying Web Application2/9/2007 3:29:54 PM

0/0

Hi there!

I've recently created an ASP.NET web application (using Visual Studio 2005) that uses a COM DLL to do some vital processing.
I have been trying to deploy this project onto a server that is running Windows Server 2003 64bit.
When I try to run the web application on this new server I get the following error when the application tries to use the COM DLL:

Exception: Retrieving the COM class factory for component with CLSID {...} failed due to the following error: 80040154. 

The COM DLL has been developed using VB6 and is meant to be run on a 32bit operating system.
It was only after using the Depends.exe that comes with Visual Studio 2005 that I realized that there are CPU conflicts concerning this DLL.
I've tried registering the DLL on the server but the web-application ignores the registered DLL and uses the one in the project's "bin" folder.

I'm wondering anyone could share with me how to compile my web-application in Visual Studio 2005 so to target the 64bit platform.
I'm not even sure if this will solve my problem.

Any ideas on how to fix this issue are welcome.
Thanks alot

-Frinny 

Steffff
Asp.Net User
Re: Problems Deploying Web Application2/10/2007 2:41:43 PM

0/0

Your component is not registered on your server.

Check it first. It must be functionnal before you can use it from your Web App.

That's not a Web Deployment Project problem.

Frinavale
Asp.Net User
Re: Problems Deploying Web Application2/12/2007 7:31:52 PM

0/0

Thanks for your advice Steff,

I had installed registered the DLL.
I used the DLL in a Windows Application to test to make sure that it worked, and it worked perfectly.
The DLL was only causing the error when the Web Application tried to use it.


I think the problem might have been that the Interop in the web project was trying to point to a DLL registered in the system32 folder, but because I was trying to run the DLL on a 64bit Operating System the DLL was actually registered in the SysWoW64.

 

I'm not sure how the Interop works and I'm not sure how it refers to the DLLs or how the registry works on a 64bit OS.
I had the IIS set up to run 32bit applications so I don't know why this wasn't working.


Try as I did I never solved this problem and I don't think that I will ever understand why it wouldn't work.

I have formatted the server and installed a 32bit Operating System because I could not solve this problem.
The Web Application works fine on the other two 32bit development servers and I am not expecting to find any more crazy errors.


Thanks again for your help

-Frinny
 

Steffff
Asp.Net User
Re: Problems Deploying Web Application2/12/2007 7:50:30 PM

0/0

Strange...

I have a Web Application running on Server 2003 x64 using Log Parser (COM interface) with no problem.

There is only one binary, one path, the same with a x86 or x64 client.

The interop try to instantiate your component using its classid.

Perhaps your component is badly registered.

You said it was working with a "Windows Application". Do you mean a .NET Windows Application ? Your application may instantiate the COM component with it's ProgID, not it's ClassID.

You can check also the registry and look to progid and classid entries....

That's juste an idea...

 

Frinavale
Asp.Net User
Re: Problems Deploying Web Application2/13/2007 3:44:15 PM

0/0

Hi Steff,

It may well have been that the component was registered badly...but I don't remember seeing an error in when running regsrv32.
The Windows Application I used to test the DLL wasn't a .NET application.  It could have been using the ProgID instead of the ClassID.

I've only just touched on GUID's and have no idea what the difference between a ProgID and ClassID is.

The web-application is working perfectly on the 32-bit operating system now.
I hate taking such extremes to solve problems and would have loved to gotten to the bottom of why it wasn't working on the 64-bit OS, but I have to meet a deadline that is quickly approaching.

 

Thanks for your help!

-Frinny 

Steffff
Asp.Net User
Re: Problems Deploying Web Application2/13/2007 5:16:11 PM

0/0

Frinavale:
It was only after using the Depends.exe that comes with Visual Studio 2005 that I realized that there are CPU conflicts concerning this DLL.

What's the problem ?

Frinavale:
I've tried registering the DLL on the server but the web-application ignores the registered DLL and uses the one in the project's "bin" folder.

You should only have the interop in bin folder. Anyhow if you regsvr32 another physical dll this one should be used, not any other ones.

Frinavale:
but I don't remember seeing an error in when running regsrv32

regsvr32 won't tell you that registry entries are bad.

Frinavale:
I've only just touched on GUID's and have no idea what the difference between a ProgID and ClassID is.

ProgID is the human readable form, IndependentVersionProgID is the versionless ProgID and ClassID is the GUID form.

For example :

ADODB.Command.2.80 is the ProgID for the object Command version 2.8

ADODB.Command is its IndependentVersionProgID

and {00000507-0000-0010-8000-00AA006D2EA4} its ClassID.

The object can be instantiate using one of the three. If the IndependentVersionProgID is used it shall instantiate the latest registered version.

 

 

 

It looks like one entry is missing in the registry. One of your component but as you are using VB6, it may come from one of VB runtime.

I'll try to uninstall and reinstall the component but also all VB runtime. I'll try to deploy on another x64 machine but you may not have one more...

There may be a confusion/setup problem between "Program Files" and "Program Files (x86)".

I've juste grab the ADODB.Command entries to show how it should looks like for your component. But it's painful to check VB runtime... I'm afraid I cannot help you any longer...

...But logically if it works using a ProgID it should work using a CLSID

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ADODB.Command]
@="ADODB.Command"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ADODB.Command\CLSID]
@="{00000507-0000-0010-8000-00AA006D2EA4}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ADODB.Command\CurVer]
@="ADODB.Command.2.8"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ADODB.Command.2.80]
@="ADODB.Command"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ADODB.Command.2.80\CLSID]
@="{00000507-0000-0010-8000-00AA006D2EA4}"


[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000507-0000-0010-8000-00AA006D2EA4}]
@="ADODB.Command"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000507-0000-0010-8000-00AA006D2EA4}\InprocServer32]
@="C:\\Program Files\\Common Files\\System\\ado\\msado15.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000507-0000-0010-8000-00AA006D2EA4}\ProgID]
@="ADODB.Command.2.8"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000507-0000-0010-8000-00AA006D2EA4}\VersionIndependentProgID]
@="ADODB.Command"

Frinavale
Asp.Net User
Re: Problems Deploying Web Application2/14/2007 5:04:20 PM

0/0

Hi Steff,

 

Thanks for all your help.  It is very much appreciated. 

I am no longer experiencing any problems with my web-application ever since I re-installed the server to be a 32-bit version Server 2003.
Since I destroyed the state of the server I cannot call up the errors that were happening on the 64-version of Server 2003.

 
Thank you for clearifying the difference between a ProjID and CLSID.

Smile 

-Frinny
 

7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Java Servlet and JSP Cookbook: Practical Solutions to Real-world Problems Authors: Bruce W. Perry, Pages: 723, Published: 2004
Beginning Java EE 5 Authors: Kevin Mukhar, Chris Zelenak, James L. Weaver, Jim Crume, Pages: 641, Published: 2005
Expert F# Authors: Don Syme, Adam Granicz, Antonio Cisternino, Pages: 609, Published: 2007
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Internet Applications in Product Design and Manufacturing: Electronic Commerce Engineering Authors: George Q. Huang, K. L. Mak, Pages: 272, Published: 2003
Professional Apache Tomcat 5 Authors: Vivek Chopra, Chanoch Wiggers, Inc NetLibrary, Pages: 598, Published: 2004
Tomcat: The Definitive Guide Authors: Jason Brittain, Ian F. Darwin, Pages: 476, Published: 2007
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
NetBeans: The Definitive Guide Authors: Tim Boudreau, Jesse Glick, Simeon Greene, Vaughn Spurlin, Jack Woehr, Pages: 646, Published: 2003

Web:
Re: Problems deploying a web application: msg#00118 Previous by Thread: Re: Problems deploying a web application, Ivanoff, Alex. Next by Thread: Re: Problems deploying a web application, Brock Allen ...
Mailing list archives Subject, Re: Problems Deploying web application. Date, Mon, 01 Dec 2003 22:19:40 GMT. Late (but better late than never) acknowledge of my problem solution: ...
Deploying Web Applications to Tomcat | O'Reilly Media This article is about deploying Java Web applications to the Tomcat Web server.
How to Deploy ASP.NET Web Application Explains techniques for ASP.NET Web Application deployment.
15 Seconds : Deploying ASP.NET Applications - Part 1 NET Framework for packaging and deploying ASP.NET Web applications onto target ... This infamous problem is referred to as Dll Hell. Visual Studio . ...
Deploying Web Applications Deploying a Web application enables WebLogic Server to serve the components of a Web .... Deploying Web Applications as Part of an Enterprise Application ...
Sun Java System Web Server - Problem deploying web-application at ... Re: Problem deploying web-application at a context-root other than root con Oct 26, 2008 7:48 PM (reply 1 of 1) (In reply to original post ) ...
Web Application Packaging and Deployment | pdc2008 | Channel 9 In this session, you will learn how to use powerful new UI and command line tools for Web application packaging and deployment, and you'll dive under the ...
Sun Java System Web Server - Problem deploying web-application at ... Problem deploying web-application at a context-root other than root context Oct 24, 2008 5:21 AM. Click to email this message ...
Re: Problems deploying a : msg#00120 Previous by Date: Re: Problems deploying a web application, Brock Allen. Next by Date: Re: It is safe to use Abort in HttpWebRequest?, Ian Griffiths ...

Videos:
Desktop Mashups: Combining Web Applications to Make Desktop Productivity Tools Google Tech Talks March 12, 2007 ABSTRACT Web applications use HTTP to communicate with relevant services and manifest their user interface via HTM...
Deploying Rapid for SharePoint to another web application This video is a screencast which shows you how to deploy Rapid for SharePoint to another web application.
Desktop Mashups: Combining Web Applications to Make... Google Tech Talks March 12, 2007 ABSTRACT Web applications use HTTP to communicate with relevant services and manifest their user interface via HTM...
Web Applications and the Ubiquitous Web Google TechTalks February 1, 2006 Dave Raggett Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal Interaction....
Morph Duel: Deploying Rails Apps in 4 min... If you thought this http://www.youtube.com/watch?v=krKaT97Nd_A was fast... This is even better ... Any takers? The Morph Application Platform, Ru...
Deploying Rails Apps in 6 Minutes The Morph Application Platform takes apps deployment up to speed! "A Morph AppSpace is similar to a serviced office for your application," says Davi...
DotNetNuke Development - Lesson 1 DotNetNuke is an open source web application framework ideal for creating, deploying and managing interactive web, intranet and extranet sites.
Tutorial N°1 Eclipse 3.3 Create Web Application WTP and Tomcat 6 In this first tutorial you will learn how: 1°) To create a Server project in Eclipse for Tomcat 2°) To create a web application with one basic JSP pa...
DotNetNuke Overview DotNetNuke is an open source web application framework ideal for creating, deploying and managing interactive web, intranet and extranet sites.
DotNetNuke Development - Lesson 2 DotNetNuke is an open source web application framework ideal for creating, deploying and managing interactive web, intranet and extranet sites.




Search This Site:










uploading files

file upload processing page for flash upload?

problem debugging asp.net forms

payment syetem

how to access website on a local network?

installation

changing aspnet password

timer control for messagebox or alertbox

passing ampersand(&) in querystring

databinding wipes data from member variables

help with asp.net survey

how to read filename arguments

drop down list

experience with imaging controls?

decimal to currency

sharepoint setcontextsite and setcontextweb

how read data from excel sheet

when do you implement the idisposable interface?

please i really need some help. changing html code for a component

how to pass a public var to a control?

registering same dll with different name

how to embed a flash mx movieclip (.swf file) in an asp.net page

javascript does not work

exporting xml from several sql queries

another date question

checking against folder content. . .

having trouble converting this code from vb to c#

printing uncreated pages or spooling

application cannot be displayed in others computer!!!!

in configure select statement on form view...

  Privacy | Contact Us
All Times Are GMT