473,387 Members | 1,771 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,387 software developers and data experts.

asmx file visibility

On my machine I developed a WebService on localhost and if I browse the asmx
file I get the usual page that defines the webmethods exposed by the
webservice and the opportunity to get the wsdl file using the Service
Description link.

This is saved into SourceSafe and then another person in the team gets
latest from sourceSafe onto his system to try to run the webService on his
localhost, all of the solution builds properly, but any attempt to browse the
same asmx file results in the development environment being opened instead
with a file downloaded that contains the <%@ WebService Language="c#"
Codebehind="blah.cs" Class="BPL.yadee.blah" %> type tag that one would
normally associate with a designer page. Why? After all a WebService does
not have a user interface. The downloaded file contains nothing but the
above tag.

I have checked that IIS is correctly setup on his machine and I cannot see
anything amiss. The anonymous user is being used. I have run aspnet_regiis
/i to ensure asp.net uses 1.1 of the Framework.

What am I missing.
--
PeterW
Nov 23 '05 #1
1 3239
If one opens the asmx file with a text editor, all it contains is the
WebService directive. If one attempts to open it in VS.NET you get a
Designer page with a couple of links and of course a WebService does not have
a user interface. If using either IIS or VS.NET you view an asmx file in
browser you get an HTML representation of the interface of the cs code file
with links.

I can see this HTML file on my system.

The others cannot. The project copiles fine but they cannot browse the asmx
file either locally or across systems on mine.

Thus would appear to me to be a VS.NET configuration issue, but where and how?

I am trying to hand this stuff over to a tester but cannot get his system to
replicate what happens on mine. In both cases we are using localhost and not
a dedicated web server.

Any ideas.

"PeterW" wrote:
On my machine I developed a WebService on localhost and if I browse the asmx
file I get the usual page that defines the webmethods exposed by the
webservice and the opportunity to get the wsdl file using the Service
Description link.

This is saved into SourceSafe and then another person in the team gets
latest from sourceSafe onto his system to try to run the webService on his
localhost, all of the solution builds properly, but any attempt to browse the
same asmx file results in the development environment being opened instead
with a file downloaded that contains the <%@ WebService Language="c#"
Codebehind="blah.cs" Class="BPL.yadee.blah" %> type tag that one would
normally associate with a designer page. Why? After all a WebService does
not have a user interface. The downloaded file contains nothing but the
above tag.

I have checked that IIS is correctly setup on his machine and I cannot see
anything amiss. The anonymous user is being used. I have run aspnet_regiis
/i to ensure asp.net uses 1.1 of the Framework.

What am I missing.
--
PeterW

Nov 23 '05 #2

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

Similar topics

1
by: jjouett | last post by:
I'm setting up a manually created WSDL file that defines the specifics of the required elements, default values, etc. instead of using the generated WSDL from the asmx?wsdl mechanism. Everything...
3
by: Ganesh Muthuvelu | last post by:
Hello, I have web service written in .NET and if I go the browser and type in the ..asmx file I get to see all the methods/routines. Now, is there a way I can get a XSD of every web...
0
by: wc_chan | last post by:
I wrote a web service projects having 2 asmx and 1 dataset, says dsTest1. The amsx will have a parameter of the dataset as follows: in 1st asmx: <Wethod()HelloWorld1 (byval a1 as dsTest1) as...
2
by: Steve B. | last post by:
Hi, We have build an ASP.Net 2.0 framework for our corporate sites. This framework add some asmx files that are used by all application. The asmx files only contains the directive <%@...
5
by: =?Utf-8?B?a3Jpcw==?= | last post by:
I created a simple webservice .asmx on Visual Studio 2005. As I plan to deploy it to Sharepoint Portal 2003, I copied asmx to \web server extensions\60\ISAPI directory of the server, where all...
6
by: =?Utf-8?B?a3Jpcw==?= | last post by:
Hi, I created a web service application using ASP. My question is : When i try to create an extra class in the same asmx file,At the time of consuming the web service,its showing me only the...
0
by: dankyy1 | last post by:
hi ,i have an asp.net project runs on local intranet ,i use global.asax's onerror section to catch errors.so i got a simpleauth service does not exists error from some network clients .Error details...
2
by: jparulan | last post by:
Hi All, I am developing web service that does not use IIS, I was successful on deploying a normal web service with System.Data and System.Web namespaces. BUT when I added the...
13
by: asmx126453 | last post by:
hey peaple i whas looking on the internet for a solution but i cudent find any so i try it here its about my ASMX file wich contains this rule <%@ WebService Language="c#"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.