|
|||||||
| Développements Tout ce qui touche au développement d'applications ou du Web |
![]() |
|
|
LinkBack | Outils de la discussion | Modes d'affichage |
|
|
#1 (permalink) |
|
Novice
![]() Date d'inscription: mars 2006
Messages: 2
|
Bonjour,
Voilà j'ai développé un site web qui me permet de crééer et configurer en ligne l'excécution sur le server d'une tâche planifiée au moyen d'une dll (lien) cette dernière fonctionne très bien lorsque je l'utilise en la lançant avec visual web developer, mais une fois que je l'ai exportée sur le serveur et que j'ai fait les modifications de chemins j'obtiens cette erreur : Code:
Server Error in '/' Application. -------------------------------------------------------------------------------- Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 246: Line 247: Line 248: tStart.ApplicationName = filePath; Line 249: string myParametersStart = "add " + replaceSpaces(ddlUsers.SelectedItem.ToString()) + Line 250: " " + ddlCallForwardingType.SelectedValue.ToString() + Source File: c:\Share\Web\pbxadmin.edifice-com.ch\divert.aspx.cs Line: 248 Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] divert.btnValidate_Click(Object sender, EventArgs e) in c:\Share\Web\pbxadmin.edifice-com.ch\divert.aspx.cs:248 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102 filePath étant le chemin du fichier que je lance avec ma tâche planifiée. |
|
|
|
|
|
#2 (permalink) |
|
Informaticien du dimanche
![]() Date d'inscription: mars 2003
Localisation: Autrefois, on appelait cela Europe
Âge: 41
Messages: 7 039
|
Salut,
Je ne connais pas ce language (asp.net). Toutefois l'erreur semble indiquer que tStart est nul. Il faudrait revoir de quelle façon un objet est attribué à tStart. |
|
|
|
![]() |
|
|
|||
|
||||
| Outils de la discussion | |
| Modes d'affichage | |