يونيو 12th, 2009 at 09:05
(منوعات)
I will start dircetly witout any introduction for this time.
To install or unstall Windows Services your platform must contain at least on version of .Net Framework where that install with SDK Command Prompt that found under DOnt Frame work folder.
to install web service we have to run SDK Command Prompt and from it head to folder where our targeted win services located
after that we write in command prompt: installutil.exe <name of our win services assymbly>
then it show lot bla bla bla and inform you that service install successfully.
to uninstall win services we use same steps except we /u after intallutil.exe to uninstall our win services
installutil.exe u/ <name of our win services assymbly>
تعليقات
يونيو 10th, 2009 at 11:25
(منوعات)
Many times when you develop you web applications you may need for kind of related drop down controls commonly with stuff related with Locations that could divided into Region - Governorate - Locality- and so on, in windows application it’s more easy tom implement but when it comes to web application it requires lot of coding or follow on options below:
Option 1: Update Panel
You may hold all of you controls inside on update panel and make all parent drop down list cause post back (Enable AutoPostBack) to trigger update panel and call code behind page methods that populate each list with it’s content. But this technique useful for lazy people and can cause lot of load on server because each time update panel not just request specific area of page that triggered it requests whole page. So skip this option
Option 2: jQuery Ajax
This option very easy allow you to create you custom effects and features but requires lot of coding where you have to write a Handler to handle jQuery Ajax requests from server that have problems with Role base Authentication(I didn’t dig to solve it yet L ) another coding issue writing code to manage controls view state. That’s mean lot coding.
Option 3: Asp .Net Ajax Cascading Drop Down Extender Control
This a very useful control where you may find lot of tutorials and examples on like this two video and tutorial but most of this articles and tutorials never mention how to solve common problems that may face people who use it like error 500,400, method error12030 or method error 12031, to solve this issues you need to do following:
1. First make sure that your web services work properly alone (Test web services)
2. In Services path user this (~/) as path indicator.
In case you still have problems try to use debugger tool such as Fiddler ,Web Developer Helper
and finally the choice remain for you and your development team
تعليقات
يونيو 3rd, 2009 at 11:03
(منوعات)
Wow it’s a long time from last post.
Some times while we develop applications we found some tasks require from us to use Windows Services. But unfortunately for us Windows Services does not run as other applications because it requires to run from Services Tool that not linked to our development environment so we need for small tweak in our code to enable us to debug our code inside Windows Services that explained in steps below:
Step #1:
inside our Windows Services add flowing code into OnStart method:
protected override void OnStart(string[] args)
{
#if DEBUG
Debugger.Launch();
#endif
//your code
{
Step #2:
Build your Windows services in debug mode and install it using .Net Framework tool (installutil.exe)
then go to you windows services and start your windows services the window will showup telling you where you want to debug you application from that window select VS instance of your current application. and now you can debug your code .
Finally after you complete your work and ready to distribute it rebuild project with Release option.
Hope this will be helpful
تعليقات