PDA

View Full Version : سوال: مشکل من در کانفیگ و بالا اوردن asp بر روی iis



hd2010hd
یک شنبه 09 تیر 1392, 15:57 عصر
با سلام

من موقعی که میخوام صفحه پروژه خودمو رو iisلود کنم این ارور رو میده خواهشا راهنمایی کنین!

تو این ضمینه خیلی نوپا هستم!


Line 23: </controls>
Line 24: </pages>
Line 25: <authentication mode="Forms">
Line 26: <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
Line 27: </authentication>

روی لاین 25 گیر میده نمیدونم دلیل چیه ؟؟

مهدی کرامتی
دوشنبه 10 تیر 1392, 12:35 عصر
متن Error اش چیه؟

hd2010hd
دوشنبه 10 تیر 1392, 13:20 عصر
همین که بهتون دادمه :(

مهدی کرامتی
دوشنبه 10 تیر 1392, 19:49 عصر
روی لاین 25 گیر میده نمیدونم دلیل چیه ؟؟
وقتی برنامه را اجرا می کنید خطایی نشان میدهد. متنی که نوشته اید فقط بخشی از Web.Config است. از صفحه خطای اجرا عکس بگیرید و اینجا ضمیمه کنید.

hd2010hd
سه شنبه 11 تیر 1392, 13:52 عصر
اقا این کله متن هست


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 23: </controls>
Line 24: </pages>
Line 25: <authentication mode="Forms">
Line 26: <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
Line 27: </authentication>


Source File: E:\wwwroot\01\web.config Line: 25


Show Additional Configuration Errors:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18045

mo.esmp
سه شنبه 11 تیر 1392, 15:01 عصر
تا جایی که من میدونم این خطا زمانی به وجود میاد که ٢تا فایل web.config وجود داشته باشه که در هر ٢تا تنظیمات authentication ست شده باشه. به عنوان مثال ممکنه شما ٢تا Web Application داشته باشی که یکی داخل پوشه اون یکی دیگی هست یعنی توی Sub folder هست که باید در web.config که توی Sub Folder هست تنظیمات مربوط به authentication پاک بشه. البته اگ این حالت وجود نداره سری به این لینک بزنError message when you try run a Web application that is built on the .NET Framework: "Server Error in '/' Application" (http://support.microsoft.com/kb/917413)

hd2010hd
سه شنبه 11 تیر 1392, 15:26 عصر
کاری که گفتینو انجام دادم اینطوری شد


Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The file '/Site.Master' does not exist.

Source Error:

Line 1: <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
Line 2:
Line 3: <asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">


Source File: /01/default.aspx Line: 1

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18045

مهدی کرامتی
سه شنبه 11 تیر 1392, 17:17 عصر
میگه مستر پیج site.master وجود ندارد (حذفش کرده اید)، این چه ربطی به web.cofig دارد؟

hd2010hd
سه شنبه 11 تیر 1392, 17:21 عصر
اقاجان همون کاری که گفتنو انجام دادم نشد شما اگه دقیق میدونین بگین راهنمایی غلط نکنین مشکل از کجاس اگه پروژه بدون نقص دارین ضمیمه کنین !

hd2010hd
چهارشنبه 12 تیر 1392, 15:34 عصر
هییییییییییییییشکی اینجا asp حالیش نیست عایا ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ ؟؟؟؟؟؟

بابا مهندسا کجان درست جواب ادمو بدین دیگه :عصبانی: