Last post Sep 02, 2013 03:27 AM by Ruchira
Aug 30, 2013 09:33 AM|oakster|LINK
I'm quite a beginner on ASP.Net, having my first job in a company I have to develop an application (C# + AJAX controls) which will be for inside use.
I have done most of the work already but now I got this problem which is giving me such a headache.
To test the website, I have published it locally but without success, the following error message appears(with chrome):
Now, as I have some code on my website already, I thought it could be something wrong with it....but no, I couldn't find any problem.
After (in great details) the analysis of my code, I stopped and decided to create a blank website with just one textbox + button to see what would happen.
Guess what? Same error!
I have searched many articles and found that it could be something wrong with IIS configurations but I have literally tried everything and nothing's working for me.
Please guys help me on this! I have done most of my work but what's the point if I can't even publish it correctly?
Aug 30, 2013 10:31 AM|AZMatt|LINK
This is usually due to a missing tag or an empty property. Can you post your markup?
Aug 30, 2013 10:44 AM|oakster|LINK
Will leave you my simple test project (with only textbox and button).
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<form id="form1" runat="server">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />
and web.config file
<compilation debug="true" targetFramework="4.0"/>
After I publish the website...the error occurs when I run the default.aspx page.
Any idea of possible problems?
Sep 02, 2013 03:27 AM|Ruchira|LINK
Try by registering asp.net with IIS. Run the below program (Using command prompt) for that
C:\WINDOWS\Microsoft.NET\Framework\[your framework version]\aspnet_regiis.exe -i
Please 'Mark as Answer' if this post helps you