WEB SERVICE לא עובד על השרת

האזרחק

New member
WEB SERVICE לא עובד על השרת

כתבתי SERVICE שעובד על המחשב שלי בלי תקלות, אבל כשאני מעתיק את הקבצים אל השרת אני מקבל הודעת שגיאה:
Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. Source Error: Line 37: by Microsoft that offers a single logon and core profile services for member sites. Line 38: --> Line 39: <authentication mode="Windows" /> Line 40: Line 41: Source File: D:\Wesites\www\ValidateCard\web.config Line: 39 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.947​
ניסיתי לשנות את הערך שמופיע בשגיאה אבל זה לא משנה כלום...
 

האזרחק

New member
השגיאה בגישה מרחוק:

Server Error in '/' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration> Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>​
השגיאה הראשונה היא השגיאה שמופיעה כשאני מנסה את השירות מהשרת עצמו
 

yuval k

New member
כתוב לך שם: זה לא מוגדר כאפליקציה

של IIS. צריך להגדיר את זה דרך ה-management console שלו (מאפיינים - צור אפליקציה). לא כל שירותי האיכסון מאפשרים את זה... אם תוריד את השורה הזו הבעיה תיפתר ג"כ, כמדומני.
 

האזרחק

New member
השרת הוא שלי

כך שאני יכול לעשות הכל. אין בעיה עם הורדת השורה? (אבטחה וכו'...)
 

האזרחק

New member
איפה אני מגדיר?

מאפיינים של מה? מה צריך לעשות מלבד העתקת הקבצים אל השרת? (חשבתי שזה אמור לעבוד בלי הרשמה ושינויים מיוחדים....)
 

yuval k

New member
ב-Management console של ה-IIS

Control Panel - Administrative Tools - Internet Information Services שם הגע לתיקייה שמאכסנת את הפרוייקט, לחיצה ימנית, מאפיינים ושם יש Application Settings. לחץ על לחצן Create שם, כדי שהתיקייה תוגדר כאפליקציה.
 

האזרחק

New member
תודה רבה! ושאלה נוספת...

עכשיו זה עובד - אבל אני מקבל הודעה שהטופס זמין רק לבקשות מהמכונה המקומית (כשאני ניגש ישירות אל השירות, כדי לראות את הפונקציות ולבדוק אותן) האם זה אומר שהוא לא נגיש למשתמשים מבחוץ או שרק הטופס המובנה לא נגיש? (בקיצור, צריך לעשות עוד משהו כדי שגם מבחוץ יוכלו להשתמש בו?)
 

האזרחק

New member
גישה בין הפקדים השונים?

האם ניתן לשנות ערך של פקד שהוא RUNAT=SERVER מתוך JAVASCRIPT בצד הלקוח? אם כן, כיצד ניתן לשלוח אובייקט כזה ע"י לחיצה על פתור אל פונקציית JS?
 

gilad g

New member
../images/Emo18.gif שרשר שאלותיך../images/Emo70.gif

1. אפשר, פשוט תשנה את ה-value שלו:
var myTxtBox = document.getElementById("myTextBox"); myTxtBox.value = "Hello world";​
2. פשוט תעשה submit לטופס:
myForm.submit();​
 

האזרחק

New member
שימוש בפקדי משתמש

יצרתי פקד משתמש, אבל אחרי שאני שם אותו בטופס אני לא מצליח להגיע אליו מתוך פונקציית ה SUBMIT. (האובייקט "לא קיים") אני כן מגיע לאובייקטים "רגילים" שאני שם באותו טופס. למרות שאני לא מגיע אל הפקד דרך ה SUBMIT, רואים את הפקד והוא עובד...
 

האזרחק

New member
הקפצצצצצצצצצצצצצצצצצצצצצצצצצצהההה

מתי אפשר להפסיק "לשרשר שאלותיי"?
 
למעלה