I suggest that you deploy the application to IIS, and remote debug it.

From: [email protected] [mailto:[email protected]] On Behalf Of ken zheng
Sent: Thursday, 29 January 2009 2:42 PM
To: [email protected]
Subject: RE: Error Run ASP .NET web application in x64 server

As I run the applicaiton in vs, I set the DefaultAppPool has the same Identity 
as MossAppPool. Still same error. How could I tell which app pool is running if 
I debug from vs.
________________________________
Date: Thu, 29 Jan 2009 14:16:35 +1100
From: [email protected]
Subject: RE: Error Run ASP .NET web application in x64 server
To: [email protected]

The console application runs in a different context. For SharePoint object 
model to be able to connect to the database, your code must run under the 
context of the application pool of the site you are trying to connect to. Could 
it be that that is the issue?



From: [email protected] [mailto:[email protected]] On Behalf Of ken zheng
Sent: Thursday, 29 January 2009 12:28 PM
To: [email protected]
Subject: RE: Error Run ASP .NET web application in x64 server



Hi IShai:

   You are right, the search dll is not referenced correctly and the copy local 
is set to true. Once I changed to False, no error now.

   But when I use new SPSite(url) it throw exception said "The Web application 
could not be found", and it works fine in console applcation.

Thanks

________________________________

Date: Thu, 29 Jan 2009 11:51:50 +1100
From: [email protected]
Subject: RE: Error Run ASP .NET web application in x64 server
To: [email protected]

It looks like the references weren't added correctly, to include the dll's full 
identifier (include the public key token). When you add a reference to the 
publishing, visual studio adds a reference to the search dll. Maybe that 
reference didn't get added to get the dll from the GAC. I would focus on that.



From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Brown
Sent: Thursday, 29 January 2009 11:48 AM
To: [email protected]
Subject: RE: Error Run ASP .NET web application in x64 server



Oops, sorry for being unclear, is it x86 or x64?



From: [email protected] [mailto:[email protected]] On Behalf Of ken zheng
Sent: Thursday, 29 January 2009 11:16 AM
To: [email protected]
Subject: RE: Error Run ASP .NET web application in x64 server



It is Net 3.5 app

________________________________

Date: Thu, 29 Jan 2009 10:13:48 +1030
From: [email protected]
Subject: RE: Error Run ASP .NET web application in x64 server
To: [email protected]

I wouldn't jump into such a drastic solution just yet. Re-Installation may not 
help.



What version of .NET are you developing against?



I doubt it's an installation problem based that it works fine for console 
applications.



-DB



From: [email protected] [mailto:[email protected]] On Behalf Of ken zheng
Sent: Thursday, 29 January 2009 10:11 AM
To: [email protected]
Subject: RE: Error Run ASP .NET web application in x64 server



Thanks guys, I will reinstall it.

cheers

Ken

________________________________

Date: Thu, 29 Jan 2009 10:08:33 +1030
From: [email protected]
Subject: RE: Error Run ASP .NET web application in x64 server
To: [email protected]

Reinstalling may help, but I doubt it as it works fine with the console 
application.



It may have to do with the version of NET



-DB



From: [email protected] [mailto:[email protected]] On Behalf Of Tommy Segoro
Sent: Thursday, 29 January 2009 10:04 AM
To: [email protected]
Subject: RE: Error Run ASP .NET web application in x64 server



Hi ken i've never had that problem before. I'm currently developing in x64 win 
server 2003. Please check in GAC and see if search DLL is there if not then may 
be you will need to reinstall MOSS.

Sent from my Sony Ericsson XPERIA(tm) X1.

________________________________

From: ken zheng <[email protected]>
Sent: Thursday, 29 January 2009 7:34 AM
To: [email protected] <[email protected]>
Subject: Error Run ASP .NET web application in x64 server

Hi:

   I wonder if anyone developed ASP .NET applcation referenceing Sharepoint 
dlls in x64 windows 2003. I created a simple web project in visual studio and 
reference Microsoft.SharePoint.Publishing. But when I run the applicaiton I got 
"System.BadImageFormatException: Could not load file or assembly 
'Microsoft.Office.Server.Search, Version=12.0.0.0". I tried all different 
setting of the Platform Target but still gets error. The IIS is version 6, and 
works fine in console application.

  Anyone has same problem?

Cheers

Ken

________________________________

Support procedure: https://www.codify.com/lists/support
List address: [email protected]

Subscribe: [email protected]

Unsubscribe: [email protected]

List FAQ: http://www.codify.com/lists/ozmoss

Other lists you might want to join: http://www.codify.com/lists

________________________________

Support procedure: https://www.codify.com/lists/support
List address: [email protected]

Subscribe: [email protected]

Unsubscribe: [email protected]

List FAQ: http://www.codify.com/lists/ozmoss

Other lists you might want to join: http://www.codify.com/lists

________________________________

Support procedure: https://www.codify.com/lists/support
List address: [email protected]

Subscribe: [email protected]

Unsubscribe: [email protected]

List FAQ: http://www.codify.com/lists/ozmoss

Other lists you might want to join: http://www.codify.com/lists

________________________________

Support procedure: https://www.codify.com/lists/support
List address: [email protected]

Subscribe: [email protected]

Unsubscribe: [email protected]

List FAQ: http://www.codify.com/lists/ozmoss

Other lists you might want to join: http://www.codify.com/lists

________________________________

Support procedure: https://www.codify.com/lists/support
List address: [email protected]

Subscribe: [email protected]

Unsubscribe: [email protected]

List FAQ: http://www.codify.com/lists/ozmoss

Other lists you might want to join: http://www.codify.com/lists

________________________________

Support procedure: https://www.codify.com/lists/support
List address: [email protected]

Subscribe: [email protected]

Unsubscribe: [email protected]

List FAQ: http://www.codify.com/lists/ozmoss

Other lists you might want to join: http://www.codify.com/lists

________________________________

Support procedure: https://www.codify.com/lists/support
List address: [email protected]

Subscribe: [email protected]

Unsubscribe: [email protected]

List FAQ: http://www.codify.com/lists/ozmoss

Other lists you might want to join: http://www.codify.com/lists

________________________________

Support procedure: https://www.codify.com/lists/support
List address: [email protected]

Subscribe: [email protected]

Unsubscribe: [email protected]

List FAQ: http://www.codify.com/lists/ozmoss

Other lists you might want to join: http://www.codify.com/lists

________________________________

Support procedure: https://www.codify.com/lists/support
List address: [email protected]

Subscribe: [email protected]

Unsubscribe: [email protected]

List FAQ: http://www.codify.com/lists/ozmoss

Other lists you might want to join: http://www.codify.com/lists

________________________________
Support procedure: https://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists
________________________________
Support procedure: https://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists
--------------------------------------------------------------------------------
Support procedure: http://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists

Reply via email to