Showing posts with label computer. Show all posts
Showing posts with label computer. Show all posts

Saturday, March 31, 2012

web server is not running ASP.NET version 1.1

Hi,
i have remove IIS and add again to solve a problem. Visual Studio is running
on my computer. but now it give me this problem.

" Visual Studio .Net has detected that the sepicified Web server is not
running ASP.NET version 1.1. You will be unable to run ASP.Net Web
applications or services"

how can i solve this.
thankstry this
start - run
c:\windows\microsoft.net\framework\v1.1.4.322\aspn et_regiis.exe -i

"Hunsal" <huseyin_unsal@.yahoo.com> wrote in message
news:uJeRnRpLEHA.1484@.tk2msftngp13.phx.gbl...
> Hi,
> i have remove IIS and add again to solve a problem. Visual Studio is
running
> on my computer. but now it give me this problem.
> " Visual Studio .Net has detected that the sepicified Web server is not
> running ASP.NET version 1.1. You will be unable to run ASP.Net Web
> applications or services"
> how can i solve this.
> thanks
thanks, it works

"Meelis Lilbok" <meelis.lilbok@.deltmar.ee> wrote in message
news:%23vDR4UpLEHA.2976@.TK2MSFTNGP10.phx.gbl...
> try this
> start - run
> c:\windows\microsoft.net\framework\v1.1.4.322\aspn et_regiis.exe -i
>
>
> "Hunsal" <huseyin_unsal@.yahoo.com> wrote in message
> news:uJeRnRpLEHA.1484@.tk2msftngp13.phx.gbl...
>> Hi,
>> i have remove IIS and add again to solve a problem. Visual Studio is
> running
>> on my computer. but now it give me this problem.
>>
>> " Visual Studio .Net has detected that the sepicified Web server is not
>> running ASP.NET version 1.1. You will be unable to run ASP.Net Web
>> applications or services"
>>
>> how can i solve this.
>> thanks
>>
>>

Monday, March 26, 2012

Web service address is changed

Hi,
I had a web server contained a web service.
We had to change the web server computer; so all client proxies must point
to new web server. My understanding is we have to compile all client
applications again.
We will probably change the address of web server in future again.
Is there any way that client applications programatically change the address
of web service in the proxy? I am thinking to have the address in
app.config, so we don't have to compile all client application any time that
we change the address of web server.
Thanks,
AlanHi Alan:
In the Solution Explorer window, highlight the reference to the web
service under the Web References node, then view the properties.
Change the URL Behavior property from Static to Dynamic.
The web service proxy will now read the URL from web.config. Looking
in web.config you should see the IDE made an entry looking like:
<add key="WebApp.localhost.Service1"
value=http://server/WebService/Service1.asmx
/>
Now you can change the endpoint without a recompile.
HTH,
Scott
http://www.OdeToCode.com/blogs/scott/
On Mon, 8 Nov 2004 23:46:18 -0500, "A.M" <nospam1@.online.nospam>
wrote:

>Hi,
>
>I had a web server contained a web service.
>We had to change the web server computer; so all client proxies must point
>to new web server. My understanding is we have to compile all client
>applications again.
>We will probably change the address of web server in future again.
>
>Is there any way that client applications programatically change the addres
s
>of web service in the proxy? I am thinking to have the address in
>app.config, so we don't have to compile all client application any time tha
t
>we change the address of web server.
>
>Thanks,
>Alan
>
>
Thanks for Scott's suggestion.
Hi Alan,
As Scott has mentioned, we can dynamically change the webservice's client
proxy class's target url(asmx file's url). We can dig into the client proxy
class(WSDL.EXE generate for us)'s code, you'll find the class is something
like:
public class MyService :
System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public MyService() {
this.Url = "http://sha-schang-01/myservice/myservice.asmx";
}
.....
And the "Url" property is just the one we need to update when the
webservice's deployment server changed.
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Web service address is changed

Hi,

I had a web server contained a web service.

We had to change the web server computer; so all client proxies must point
to new web server. My understanding is we have to compile all client
applications again.

We will probably change the address of web server in future again.

Is there any way that client applications programatically change the address
of web service in the proxy? I am thinking to have the address in
app.config, so we don't have to compile all client application any time that
we change the address of web server.

Thanks,

AlanHi Alan:

In the Solution Explorer window, highlight the reference to the web
service under the Web References node, then view the properties.
Change the URL Behavior property from Static to Dynamic.

The web service proxy will now read the URL from web.config. Looking
in web.config you should see the IDE made an entry looking like:

<add key="WebApp.localhost.Service1"
value=http://server/WebService/Service1.asmx
/
Now you can change the endpoint without a recompile.

HTH,

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 8 Nov 2004 23:46:18 -0500, "A.M" <nospam1@.online.nospam>
wrote:

>Hi,
>
>I had a web server contained a web service.
>We had to change the web server computer; so all client proxies must point
>to new web server. My understanding is we have to compile all client
>applications again.
>We will probably change the address of web server in future again.
>
>Is there any way that client applications programatically change the address
>of web service in the proxy? I am thinking to have the address in
>app.config, so we don't have to compile all client application any time that
>we change the address of web server.
>
>Thanks,
>Alan
Thanks for Scott's suggestion.

Hi Alan,

As Scott has mentioned, we can dynamically change the webservice's client
proxy class's target url(asmx file's url). We can dig into the client proxy
class(WSDL.EXE generate for us)'s code, you'll find the class is something
like:

public class MyService :
System.Web.Services.Protocols.SoapHttpClientProtoc ol {

/// <remarks/>
public MyService() {
this.Url = "http://sha-schang-01/myservice/myservice.asmx";
}
......

And the "Url" property is just the one we need to update when the
webservice's deployment server changed.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Monday, March 12, 2012

Web Services Not Working

Dear Gurus:

On my local computer I am running IIS 5.0 and I have written a web service, and I have put all relevant files in my local inetpub/wwwroot folder and my web service works fine. I get the proper asmx interface.

But when I move the relevant web service files to a server running IIS 6.0 and open IE and put in the correct URL all I get is the following line of text at the top of my page in IE:

<%@dotnet.itags.org. WebService Language="c#" Codebehind="SalesReport.asmx.cs" Class="SalesReportWebService.SalesReport" %>

My web service was written and compiled with VisualStudio.net.

Yes, I have added my .dll as an allowed web service extension.

Do I have to register my web service somewhere? Any idea what might be going wrong?

Thank you in advance,

Kailin.

OK I have now fixed this problem.

The problem was somebody had modified the machine.config file on the computer where the web service was not working. The <httphandlers> section that setasmx as a recognized file type in themachine.config file was removed rendering the web service inoperable. I have now replaced the broken machine.config file with a default machine.config file and this fixed the problem.

Thank you to anyone who took some time to look into this issue.