|
Why you are so specific to call server side function from hyperlink. Try using linkbutton instead of that. Or use AJAX to call server side function from hyperlink button
|
|
|
|
|
Better to go with Ajax or Link Button.Hyperlink is not the good method to follow on the OnServerClick event.
Regards,
Satips.
|
|
|
|
|
the IP- 127.0.0.1 is mean using localhost, right?
but im so wondering how come tht i need to set the SMTP mail server to 127.0.0.1 on my web application which is already in my hosting site instead of setting the name or IP address of my host SMTP Mail server.
before this, actually the email is work which is using the host SMTP mail server. but just after the hosting site having some problem & change our IP, our sending email having problem. can anybody tell me that is it really can be set to 127.0.0.1? will it having any problems??
|
|
|
|
|
shufun wrote: the IP- 127.0.0.1 is mean using localhost, right?
YES
shufun wrote: can anybody tell me that is it really can be set to 127.0.0.1? will it having any problems??
I think you can set it. Then your application will be using the mail server on the same machine. Even my website also using the same localhost.
|
|
|
|
|
Navaneeth.K.N, thanks for ur reply.
it is so weird that last time it is work when i set using the name or IP address of my hosting SMTP Mail server. but now, it's just work when i set it to localhost. is it there are something setting or changes on my hosting site, then make me having this kind of problems? coz i asked to the support team of my hosting site, they just dump all the problems cause by my coding!! i just scared that the same problem will happened again.
|
|
|
|
|
Did you check your Gateway is it is blocked by ur Anti virus or not
Regards,
Satips.
|
|
|
|
|
no. im sure it is not cause by the blocking thingy...any others possibility tht make me face this problem?
|
|
|
|
|
Ok try it in another System and check it out.
Regards,
Satips.
|
|
|
|
|
Better consult with the hosting provider support. Hope they will give you clear picture
|
|
|
|
|
i think quite difficult. i called them. they really just dump all problems cause by coding. i ask whether any changes or setting different with last time. coz they change all(my own company site and our client site) our IP add. i really do give up. thanks a lot.
|
|
|
|
|
Hi All, i want to know how to make Windows Application communicate with Web Application.
Assume that i want to send string from MyWindows Application to My ASP.Net Web Application To invoke some code.
what is the solution for this?? thanks
|
|
|
|
|
|
I've tried to use it, but what i really don't know is when i got a message from MyWindows Application what to do to send it to My Web Site, i can't access it, i tried to add it as ref. (result = impossible) loool, so what to do in the web service in order to send a message from it to the web application?
Or i'm understand it wrong ??
|
|
|
|
|
Have you created the webservice and added the reference ? While adding the reference do you got the methods you wrote inside the webservice ?
|
|
|
|
|
Look, what i did, i make a class library project (To send messages over network to LAN Client) this class also responsible for messages coming from LAN Client and i had to send this message to the Web Site (Like MSN Messenger and MSN Web Messenger) so the message come from the LAN Client to my class, then i pass it to the web service by calling the webservice Web Method.
The Web Service is within the same solution, at the web service what should i do to send this incoming message to the web site application.
The ASP.Net web site can be within the same solution or out side it does matter for me till now.
|
|
|
|
|
That looks pretty simple. I assume that you have already got the messages in the webservice. I also assume that this webservice and your website uses same DB. Then you can update the DB from webservice and this will bring the message in ASP.NET webpage
Darkman_nofear wrote: The ASP.Net web site can be within the same solution or out side it does matter for me till now.
It can be anywhere.
|
|
|
|
|
The solution is by using common agent between the Web Site and the Web Service, umm what's your opinion about MSMQ rather than DB connection ?? or for simplicity i can use DB?
|
|
|
|
|
I don't know much about MSMQ. So I prefer DBConnection
|
|
|
|
|
Thank You Very Much For your support
|
|
|
|
|
Hi
I'm calling a web service through my aspx file, the web service is doing some huge operations [takes min 10 to 15 min to complete]. In the mean while the UI page [aspx] returns error "The Page cannot be displayed".
How can I resolve this issue??? Please state your comments...Thanks in advance.
Cheers,
Chandru.
|
|
|
|
|
From your description, one of your ASP.NET webservice can work well (can
view error info when turn off customErrors...), but always return "page can
not be displayed..... error when move to a deployment server, yes?
As for the <customerrors mode="Off" ...="">, it only ensure that when there
is unhandled exception occurs in ASP.NET runtime, it'll be displayed on the
web page with detaield error info... However, since the ASP.NET web
application will recieve request from client browser , then IIS server and
finally the asp.net pipeline ... , there could have some exception or
error occur before the ASP.NET runtime handle the request, in such cases,
the error info can not be captured by customErros page.....
So for general troubleshooting, I would suggest first try putting a normal
HTML page in your asp.net app's virtual dir and visit it to see whether we
can view it correctly(see IIS works well or not...). Also, the IIS log
under %windows% \system32\logfiles is another thing we can check , please
also have a look to see whether there is error entry mapped to your request
to the webservice...
Regards,
Satips.
|
|
|
|
|
Hi Satips,
The error has been captured in HttpErr1.log file. Error is "Timer_EntityBody". Can you briefly describe how can I resolve this???
Thanks,
Chandru.
|
|
|
|
|
The connection expired before the request entity body arrived. When it is clear that a request has an entity body, the HTTP API turns on the Timer_EntityBody timer. Initially, the limit of this timer is set to the ConnectionTimeout value (typically 2 minutes). Each time another data indication is received on this request, the HTTP API resets the timer to give the connection two more minutes (or whatever is specified in ConnectionTimeout).
Becouse in the web.config file you could have set the time as 20 min if i m rite. Please check it out and change the timeout time.
Regards,
Satips.
|
|
|
|
|
May be some unhandled exception occured in the webservice ? I am not sure abt it
|
|
|
|
|
Think about calling your Web Service asynchronously and having it return status when it completes. It is EXTREMELY bad practice to tie up your application waiting on a 10~15 minute process to complete.
Think of it this way; You have 100 users that hit your application and run this Web Service method. For every user, a thread is used to the worker process AND another thread is used by another worker process for the Web Service (if the web app and Web Service are using separate Application pools... so, you are using roughly 200+ threads and blocking tons of calls for this long method. Now, if you have other web applications in the same application pool, they are also going to be blocked because the worker process is going to be waiting and waiting on all these calls to complete, meanwhile it is queuing up more calls. See the pattern here?
Call your Web Service method asynchronously and then move on to other things. when it has completed, then you can update your page in some manner.
hth,
~dnc
|
|
|
|