עבור לתוכן

עזרה בעלאת אתר שכתוב ב ASP.net לרשת

Featured Replies

פורסם

אהלן,

בניתי אתרון בVS2008 פרוייקט WEBSITE בASP.NET עם קוד C# עם תאימות ל .net framework 2

דף הבית בשם Default.aspx

עשיתי PUBLISH בדרך הרגילה לתוך תיקיה. והעלאתי את הכל לחשבון תלמיד שלי בbrinkster.net ואני מקבל שגיאה:


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 25: ASP.NET to identify an incoming user.
Line 26: -->
Line 27: <authentication mode="Windows"/>
Line 28: <!--
Line 29: The <customErrors> section enables configuration

שאני לא יודע איך לפתור,אשמח אם תוכלו להאיר את עיני במהות השגיאה ואיך לטפלה

בתודה רבה,

רותם

פורסם

ערוך בבקשה את ההודעה ושים את מה שהעתקת בתוך טג קוד (הכפתור של ה-# ליד הכפתור של הציטוט).

פורסם

תפרסם בבקשה את הקוד של הweb.config

כי יש לך הגדרה לא נכונה, ואי אפשר להבין מה לא נכון.

דבר שני תשנה את הקוד הבא מ

<authentication mode="Windows"/>

ל

<authentication mode="Forms"/>

במידה ואתה רוצה הזדהות חובה לאתר

או

<authentication mode="None"/>

במידה ואתה לא מחייב הזדהות

פורסם
  • מחבר



<configuration>
<appSettings/>
<connectionStrings/>
<system.web>

<compilation debug="false">
</compilation>

<authentication mode="Windows"/>

<customErrors mode="Off"/>
</system.web>
<system.codedom>
</system.codedom>

<system.webServer>
</system.webServer>
<system.net>
<mailSettings>
<smtp>
<network host="smtp.gmail.com" port="587" userName="g@gmail.com" password="123465"/>
</smtp>
</mailSettings>
</system.net>
</configuration>
<?xml version="1.0"?>

פורסם

כנראה הבעיה היא ב<authentication mode="Windows"/> כמו שרשמתי בהודעה הקדומות

תעדכן אם זה עזר או שאם מופיע שגיאה חדשה

פורסם
  • מחבר

מתקבלת אותה שגיאה ששיניתי לNone:


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 25: ASP.NET to identify an incoming user.
Line 26: -->
Line 27: <authentication mode="None"/>
Line 28: <!--
Line 29: The <customErrors> section enables configuration

פורסם

אוקי תמחוק את השורה הזאות.

פורסם
  • מחבר

ניסיתי את זה, בגלל שזה האתר הראשון שאני מעלה לא ידעתי למה לצפות, קיבלתי את העמוד הבא:

http://klasastudio.brinkster.net/

פורסם

תראה את הקוד של העמוד ב aspx ובcs

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים