asp.net 2.0 webservices deployment problem


L

linda.chen

This is the first project I worked in Visual Studio .NET 2005.

I created a webservices by asp.net 2.0. The webservice works correctly
in my
development environment. When I published the webservice to the
default
website, even to the same machine (my default website already has a
webservices but written in asp.net 1.1), I got the following error
messages
if I opened it from brower:

"File or assembly name ESRI.ArcGIS.Catalog, or one of its
dependencies, was
not found."

ESRI.ArcGIS.Catalog is an assembly added to web.config file
automatically by
visual studio.

This does not make sense to me. Since I have no problem to call the
webservice from visual studio(testing project is in the same solution
with
webservice project, the web URL is like
http://localhost:1267/MyService/MyService.asmx), and I am sure I have
install
all libraries I need.

When I check the Assembly Load Trace, I found a long log:

Log: Publisher policy file is not found.
LOG: No redirect Found in host configuration file from
(c:\Windows\Microsoft.NET\Framework\v1.1.4322\aspnet.config)
LOG: Using machine configuration file from "...
\v1.1.4322\machine.config"
.....

my webservices is written in asp.net2.0, why it tried to get the
configuration from asp.net 1.1?

How do I fix this? Again, My server machine needs to support both
asp.net
1.1 and asp.net 2.0 webservices.

Thanks a lot.

Linda
 
Ad

Advertisements

J

John Saunders [MVP]

This is the first project I worked in Visual Studio .NET 2005.

I created a webservices by asp.net 2.0. The webservice works correctly
in my
development environment. When I published the webservice to the
default
website, even to the same machine (my default website already has a
webservices but written in asp.net 1.1), I got the following error
messages
if I opened it from brower:

"File or assembly name ESRI.ArcGIS.Catalog, or one of its
dependencies, was
not found."

ESRI.ArcGIS.Catalog is an assembly added to web.config file
automatically by
visual studio.

This does not make sense to me. Since I have no problem to call the
webservice from visual studio(testing project is in the same solution
with
webservice project, the web URL is like
http://localhost:1267/MyService/MyService.asmx), and I am sure I have
install
all libraries I need.

When I check the Assembly Load Trace, I found a long log:

Log: Publisher policy file is not found.
LOG: No redirect Found in host configuration file from
(c:\Windows\Microsoft.NET\Framework\v1.1.4322\aspnet.config)
LOG: Using machine configuration file from "...
\v1.1.4322\machine.config"
....

my webservices is written in asp.net2.0, why it tried to get the
configuration from asp.net 1.1?

How do I fix this? Again, My server machine needs to support both
asp.net
1.1 and asp.net 2.0 webservices.

You need to make sure that the virtual directory into which you deploy your
web service has ASP.NET 2.0 configured. Use IIS Manager.Right-click the
virtual directory and choose Properties. Look at the ASP.NET tab. Change the
dropdown to 2.0.

Also, is this a Web Service Application, or the new kind? Did you create it
with Add New Web Site or with Add New Project?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top