צפיות
תשובות
הוספת reference של json לפרויקט שרץ על שרת asp.net.
יש לי פרויקט שאחד השימושים שבו הוא json.
אני משתמשת בVisual Studio התקנתי json דרך pm מפה http://json.codeplex.com/
הרצתי על המחשב והכול טוב יפה.
עכשיו אני עושה שרת לLAN דרך iis express מריץ את הקובץ Default.aspx והוא עושה לי error CS0246.
בשורה using Newtonsoft.Json.
שגיאה מלאה:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 7: …………
Line 8:
Line 9: using Newtonsoft.Json;
Line 10:
Line 11:……………
על המחשב הכול עובד פיקס. השגיאה קורת אם כול reference שאני מוסיף בכך שאני מוסיף את קבצי הDLL לפרויקט.reference דרך GAC עובד בסדר אבל לא מצאתי GAC של json.
ישמח לכול עזרה לבעיה.מקווה שהבאתי מספיק פרטים ואם חסר משהו תגידו לי.
תודה לכול מי שיעזור.
0 תשובות