Showing posts with label aspx. Show all posts
Showing posts with label aspx. Show all posts

Wednesday, March 28, 2012

Web server problems

Hi,

I am using web matrix to develop my web pages. Each time that I made any change on my aspx pages I need to restart the server (Web matrix server), if not it does not display the changes.

Does any one know how to avoid this problem?

Thanks for your help in advance

EnekoHavnt used web matrix server before. Have you tried IIS5, this is what I use and its a very effective server. Simply build your pages and then put them on there and view them. IIS5 ships with win2000 and i think some versions of XP.
At the moment we still in testing face. I am thinking to use IIS soon but I am quite scare about the compatibility with asp pages.

We are using IIS to run asp based projects. Do you know what do I need to do to become IIS compatible with aspx pages? Do you know any incompatibility problem?

Thanks for your help, as you can see I am new with asp.net.

Eneko
There are no incompatability issues with IIS and the use of .net. I am running Win2k with IIS5 and .net 1.1

All you have to do is install the .net framework on your pc and you are up and running. I made the transition from ASP3.0 to asp.net quite easliy.

Make sure you have IIS & the .net framwork onyour. Thats all

Web Service

Hi,

I'm new in aspx an new in web services. i made a few web services as test and works fine. I have the following situation :

I have a process that needs 30 min to run. I launch the process using asp.net in a web page. This process consist in charge a table in a SQL database from a TXT file, and make some actions.

My question is : can i use a web service as batch procesing to do that charge and let the browser free so the usr can do other task?

Thk's

:thumb:not sure but one suggestion, a poor one, would be to use frames in the browser.
you could do threading but do not think ASP.NET has that, unless im mistaken :)
Do you mean you need an Asynchronous Web Service? Does the web service need to return a result to the user?

Web Service - get remote machine/network parameters

I know that writing ASPX app we easily can get all required information
about remote machine and network right from the user's browser using this
request:

NameValueCollection coll = Request.ServerVariables;

But what if we write a Web Service? What can we do in this case? How can we
get the remote machine IP and the HostName for example? Do we have any way
that can be used from the Web Service for that? I know that I probably can
get the same info at the remote machine and send it to the Web Service for
logging, but actually it's always easy, because some of the clients are
working from their LANs and the real IP exposed by their Internet Providers
is hard to be received.

The question - how can we get a reliable information about remote network,
user, machine, etc?

Just D.What if you try:

HttpContext.Current.Request.ServerVariables.ToStri ng();

Does that work?

Kind regards,
Nikander & Margriet Bruggeman

"Just D." wrote:

> I know that writing ASPX app we easily can get all required information
> about remote machine and network right from the user's browser using this
> request:
> NameValueCollection coll = Request.ServerVariables;
> But what if we write a Web Service? What can we do in this case? How can we
> get the remote machine IP and the HostName for example? Do we have any way
> that can be used from the Web Service for that? I know that I probably can
> get the same info at the remote machine and send it to the Web Service for
> logging, but actually it's always easy, because some of the clients are
> working from their LANs and the real IP exposed by their Internet Providers
> is hard to be received.
> The question - how can we get a reliable information about remote network,
> user, machine, etc?
> Just D.
>
>
yeah it will work definately...

From http://www.google.co.in/search?hl=en&q="HttpContext.Current.Request.ServerVariables().tost ring"&btnG=Search&meta=

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
yeah it will work definately...

From http://www.google.co.in/search?hl=en&q="HttpContext.Current.Request.ServerVariables().tost ring"&btnG=Search&meta=

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com

Web Service - get remote machine/network parameters

I know that writing ASPX app we easily can get all required information
about remote machine and network right from the user's browser using this
request:
NameValueCollection coll = Request.ServerVariables;
But what if we write a Web Service? What can we do in this case? How can we
get the remote machine IP and the HostName for example? Do we have any way
that can be used from the Web Service for that? I know that I probably can
get the same info at the remote machine and send it to the Web Service for
logging, but actually it's always easy, because some of the clients are
working from their LANs and the real IP exposed by their Internet Providers
is hard to be received.
The question - how can we get a reliable information about remote network,
user, machine, etc?
Just D.What if you try:
HttpContext.Current.Request.ServerVariables.ToString();
Does that work?
Kind regards,
Nikander & Margriet Bruggeman
"Just D." wrote:

> I know that writing ASPX app we easily can get all required information
> about remote machine and network right from the user's browser using this
> request:
> NameValueCollection coll = Request.ServerVariables;
> But what if we write a Web Service? What can we do in this case? How can w
e
> get the remote machine IP and the HostName for example? Do we have any way
> that can be used from the Web Service for that? I know that I probably can
> get the same info at the remote machine and send it to the Web Service for
> logging, but actually it's always easy, because some of the clients are
> working from their LANs and the real IP exposed by their Internet Provider
s
> is hard to be received.
> The question - how can we get a reliable information about remote network,
> user, machine, etc?
> Just D.
>
>
>

Saturday, March 24, 2012

Web Service from aspx

Hi
is it possible to call a web service from inside SQL Server in any way? If yes, how

Basically I am trying to fire a insert trigger, which will select some data from a table and instantiate .Net dll and populate its properties with the table data. I know there are other ways to do it but i would like to know if there is a way to achieve the above as well

Any help would be appreciated

Thanks
- Monideeany module which can address a url can call into the webservice. otherwise
it can't. i'd hesitate to advise you to tie a trigger to a webservice as
that, to me, is tight coupling. A change in the webservice interface or
address will break the trigger which is not necessarily a good thing IMHO.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"RR" <anonymous@.discussions.microsoft.com> wrote in message
news:E382049A-4197-43D6-8AE1-9F7AB7870ED3@.microsoft.com...
> Hi,
> is it possible to call a web service from inside SQL Server in any way? If
yes, how?
> Basically I am trying to fire a insert trigger, which will select some
data from a table and instantiate .Net dll and populate its properties with
the table data. I know there are other ways to do it but i would like to
know if there is a way to achieve the above as well.
> Any help would be appreciated.
> Thanks,
> - Monideep
"RR" <anonymous@.discussions.microsoft.com> wrote in message
news:E382049A-4197-43D6-8AE1-9F7AB7870ED3@.microsoft.com...
> Hi,
> is it possible to call a web service from inside SQL Server in any way? If
yes, how?
> Basically I am trying to fire a insert trigger, which will select some
data from a table and instantiate .Net dll and populate its properties with
the table data. I know there are other ways to do it but i would like to
know if there is a way to achieve the above as well.
> Any help would be appreciated.

There was a similar question in the C# newsgroup just recently (search for
"c# and ms sql triggers").

In theory, you could e.g., write a C# class that calls the web service and
expose it as a COM component. You could then call the COM component from the
SQL trigger.

However I do not think this is a realistic approach for any serious use. For
starters, calling a COM component from a trigger is relatively slow already,
and the inevitable overhead of the web service call would make this approach
impractical. You want your trigger to execute as quickly as possible to
avoid bogging down the database.

Not knowing your exact requirements its hard to say, but one way of doing
this would be to write an extended stored procedure in unmanaged C++ and
call it from the trigger. This extended stored procedure would just place a
message in an MSMQ queue. Another application would then read the message
from the queue and call the web service. This way the trigger would be
decoupled from the web service call.

Sami
www.capehill.net

Web Service Problem

Dear All,

I have written a Web Service which is called from ASPX file(Web Form). It
works fine on the local machine. On the local machine I am using the
following command

wsdl.exe /l:cs http://localhost/ReturnEvents/Service1.asmx?wsdl

Now I want to use the same service on the Remote Server. What I think is
that the
above path should be changed as it is localhost. So I try to do something
like this

wsdl.exe /l:cs http://www.hop.man.ac.uk/ReturnEven...vice1.asmx?wsdl

where www.hop.man.ac.uk is the server where I am trying to host my web service

But it does not compile and throws the following error:

There was an error downloading:

http://www.hop.man.ac.uk/ReturnEven...vice1.asmx?wsdl

The request failed with HTTP status 404: Not Found

I dont know whether I going in a right direction. It works fine on the
client machine
But on the server when I change the path to my server name it throws this
error.I mean we cant use localhost in the wsdl when using Web service on the
REMOTE server. Dont know what to do. Any help would be greatly appreciated.

Cheers,

Sunil SabirCheck your spelling. The 404 error indicates that the requested resource
(URL) was not found.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Sunil Sabir" <SunilSabir@.discussions.microsoft.com> wrote in message
news:AC4B5CFD-DFFB-4990-A131-B71795B5ABB5@.microsoft.com...
> Dear All,
> I have written a Web Service which is called from ASPX file(Web Form). It
> works fine on the local machine. On the local machine I am using the
> following command
> wsdl.exe /l:cs http://localhost/ReturnEvents/Service1.asmx?wsdl
> Now I want to use the same service on the Remote Server. What I think is
> that the
> above path should be changed as it is localhost. So I try to do something
> like this
> wsdl.exe /l:cs http://www.hop.man.ac.uk/ReturnEven...vice1.asmx?wsdl
> where www.hop.man.ac.uk is the server where I am trying to host my web
service
> But it does not compile and throws the following error:
> There was an error downloading:
> http://www.hop.man.ac.uk/ReturnEven...vice1.asmx?wsdl
> The request failed with HTTP status 404: Not Found
> I dont know whether I going in a right direction. It works fine on the
> client machine
> But on the server when I change the path to my server name it throws
this
> error.I mean we cant use localhost in the wsdl when using Web service on
the
> REMOTE server. Dont know what to do. Any help would be greatly
appreciated.
> Cheers,
> Sunil Sabir
>
>

Web Service Problem

Dear All,
I have written a Web Service which is called from ASPX file(Web Form). It
works fine on the local machine. On the local machine I am using the
following command
wsdl.exe /l:cs http://localhost/ReturnEvents/Service1.asmx?wsdl
Now I want to use the same service on the Remote Server. What I think is
that the
above path should be changed as it is localhost. So I try to do something
like this
wsdl.exe /l:cs http://www.hop.man.ac.uk/ReturnEven...vice1.asmx?wsdl
where www.hop.man.ac.uk is the server where I am trying to host my web servi
ce
But it does not compile and throws the following error:
There was an error downloading:
http://www.hop.man.ac.uk/ReturnEven...vice1.asmx?wsdl
The request failed with HTTP status 404: Not Found
I dont know whether I going in a right direction. It works fine on the
client machine
But on the server when I change the path to my server name it throws this
error.I mean we cant use localhost in the wsdl when using Web service on the
REMOTE server. Dont know what to do. Any help would be greatly appreciated.
Cheers,
Sunil SabirCheck your spelling. The 404 error indicates that the requested resource
(URL) was not found.
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
"Sunil Sabir" <SunilSabir@.discussions.microsoft.com> wrote in message
news:AC4B5CFD-DFFB-4990-A131-B71795B5ABB5@.microsoft.com...
> Dear All,
> I have written a Web Service which is called from ASPX file(Web Form). It
> works fine on the local machine. On the local machine I am using the
> following command
> wsdl.exe /l:cs http://localhost/ReturnEvents/Service1.asmx?wsdl
> Now I want to use the same service on the Remote Server. What I think is
> that the
> above path should be changed as it is localhost. So I try to do something
> like this
> wsdl.exe /l:cs http://www.hop.man.ac.uk/ReturnEven...vice1.asmx?wsdl
> where www.hop.man.ac.uk is the server where I am trying to host my web
service
> But it does not compile and throws the following error:
> There was an error downloading:
> http://www.hop.man.ac.uk/ReturnEven...vice1.asmx?wsdl
> The request failed with HTTP status 404: Not Found
> I dont know whether I going in a right direction. It works fine on the
> client machine
> But on the server when I change the path to my server name it throws
this
> error.I mean we cant use localhost in the wsdl when using Web service on
the
> REMOTE server. Dont know what to do. Any help would be greatly
appreciated.
> Cheers,
> Sunil Sabir
>
>
>
>

Thursday, March 22, 2012

web service runs after calling ASPX page is closed

I have been racking my brain trying to figure this one out, so any ideas would be appreciated!!

I have been working on a web service. From the web service call, queries are executed and update sql's are executed. The test aspx page that calls the web service is just looping through a ton of records and calling the web service in a loop over and over. When I close the web page, the web service is obviously still running because I can open up Sql Profiler for Sql Server 2000 and see queries still getting launced. I can use Query Analyzer to see the number of non null values for a field in the table that gets updated and it keeps going down (and since the update sql from the web service is setting this field to a non null value, it must still be running).

Is this normal or am I missing something? Is there a way to control this? I'm worried about our application going into production and many users abandoning their browser session yet the web service and sql server keep on working eating up valuable resources.

Thanks for any thoughts and I can post code if that would help.This is normal behavior.

Inside the ASPX page, you can check to see if the client is still connected with Response.IsClientConnected.

Be very careful, however, because on IIS 5.0 this check needs to make an out of process call, which could end up hurting performance. You'll need to do some measurements of your application.

Web Service/Page Methods , ASPX page and GridView

We have a Grid View in a page that displays nicely formatted data (a
Status Report).
In another application we are sending out Alert emails {windows app}.

Now I want to attach the content of the Grid View Control (HTML) to
the email.

Is this possible to achieve this with Web Service/Page Method?In article <1187899772.288218.245240@.z24g2000prh.googlegroups. com>,
probashi@.hotmail.com says...

Quote:

Originally Posted by

>
We have a Grid View in a page that displays nicely formatted data (a
Status Report).
In another application we are sending out Alert emails {windows app}.
>
Now I want to attach the content of the Grid View Control (HTML) to
the email.
>
Is this possible to achieve this with Web Service/Page Method?


In a windows app, if you add all of the proper references to the
System.Web DLL's, you can create an instance of the GridView,
programatically set properties/call methods and then call
"RenderControl" to generate the HTML for the control.

--
Patrick Steele (patrick@.mvps.org)
http://weblogs.asp.net/psteele