473,835 Members | 2,286 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="bla h.cs" Class="BPL.yade e.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 3316
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="bla h.cs" Class="BPL.yade e.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
2390
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 works with my web service, but I would like to have some mechanism that forwards any asmx?wsdl request to the manually created WSDL, to help guarantee that a client is using the WSDL with the restrictions. I can't turn off all documentation in the...
3
6117
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 method/routine?. The consumer of my web service (third party) requires me to give a XSD file of every request and response contained in the web service. Is there a tool that can produce the XSD with the ASMX as input?. Thanks, Ganesh
0
1132
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 string in 2nd asmx: <Wethod()HelloWorld2 (byval a2 as dsTest1) as string When I ran wsdl for the dynamic discovery file, vsdisco, I got the following
2
1677
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 <%@ WebService Language="C#" Class="OurFrameworkServiceClass" %> The class is defined in a dll (then w/o source code) that is place in the BIN directory.
5
70518
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 other general webservices reside. Everything is just fine - i can access the service with the browser, method list is displayed as well as help texts for them. my question is - how do I generate .wsdl and .disco files for the service? I read...
6
2241
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 default class only. here is my code: namespace WebService1
0
4375
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 are below.on my iis i have no virtual file such like this and nothing is installed like that. so what this error means? thanks. Error in: /SimpleAuthWebService/SimpleAuth.asmx Url: /SimpleAuthWebService/SimpleAuth.asmx Error Message: The...
2
2030
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 System.Messaging and deploy my windows service - I am getting this error while accessing the ASMX test form * I have tried the following already. 1. Remove and Add the System.Messaging from "Reference" 2. System.Messaging does exist from the GAC.
13
3773
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#" Codebehind="DataConnection.asmx.cs" Class="DotNet.dbConnection" %> the error is : Could not create type 'DataConnection the file dataconnection.asmx.cs is located at the root in the folder wsdataconnection. I tryd a lot my self and i know that my asp is...
0
10811
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10523
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10560
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7766
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6966
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5804
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4434
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3088
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.