hi friends, i am making an asp.net website and i made a page and tried to upload it on my domain, but its not working. Let me know if i need to configure some settings. TIA
I made some changes in the web.config file and now i am able to see the error. It goes something like this : 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: [COLOR="Red"]Line 1: <%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="trail.aspx.cs" Inherits="trail" Title="Untitled Page" %>[/COLOR]Line 2: <asp:Content ID="Content2" ContentPlaceHolderID="titleholder" Runat="Server"> Code (markup): I don't know why it is showing this error even when i have site.master in the same directory. Please help me solve this problem. TIA
master pages are a feature of asp.net 2.0. did you ensure that you have configured your site to use asp.net 2.0 and not asp.net 1.1?
First of all .... thanks a lot for replying. Rep Added how do i check if my site is configured to use asp.net 2.0 or not ?? TIA
is it is a shared server - generally there is a option in the hosting panel which tell you whether your site is running under asp.net 2.0 or 1.1 if it your own server - go to iis manager and right click on the site - properties and check the ASP.NET tab
It is a shared server, it says : Framework Version 2.0.50727.0 You may see the errors here... Uses site.master http://www.womenslabel.com/electron/trail.aspx Does not use site.master http://www.womenslabel.com/electron/default.aspx Please suggest a solution. Thanks again
I did as you said, now its giving some other error : you may view it at : http://womenslabel.com/electron/trail.aspx TIA
On my coputer the bin folder contains : App_Web_g2t_4gfc.dll(3.5kb) & App_Web_wislfc4z.dll(4 kb) On the server the bin folder contains : App_Web_rkv5rvhx.dll(3.5kb) & App_Web_dyyl9edk.dll(4kb) The error is : Parser Error Message: Could not load the assembly 'App_Web_dyyl9edk'. Make sure that it is compiled before accessing the page. The error contains the same file name as the file in the bin folder(on server). You may view the error on : http://www.womenslabel.com/electron/trail.aspx Looking forward for your reply .. thanks for your time
as I understand you host on shared hosting womenslabel.com is your domain. right? questions: 1. is electron a virtual application folder? (it is not if you just created it by ftp or copy) 2. if #1 yes - the bin folder should be under wwwroot/electron/ if #1 NO - the bin folder should be under wwwroot/ As of ther error you experienced in post #1 I think that electron/ is not a virtual folder you have 2 options (try #2 first ) 1.make it virtual folder in control panal (if your hoster allows it) or 2.move bin/ folder, web.config and maybe also the master page files (.master and .master.cs) into wwwroot/ (one folder up) Report results
Well thanks all........i got the problem now. .. ... ... ..... the pages are working fine now ..... All i had to do was to create a virtual directory. I still don't no how this thing works but it's ok as long as it works Rep Added for all, you guys do a wonderful job of helping new people like us. Hopefully i would be able to give back what i learn in a few months. Cheers ! ! ! !