Last post Dec 30, 2006 04:44 PM by lwarner4q
Dec 28, 2006 12:23 AM|lwarner4q|LINK
i am a newbie. can anyone tell me how to create a codebehind file? I uploaded the classified site to my hosting company. www.1and1.com and couldn't get it to work. i called the help desk and was told i need to create a codebehind file. i am using VS
2005. Please help
Dec 28, 2006 12:07 PMemail@example.com|LINK
The starter kit is written with inline coding, as opposed to a code behind approach. The end result is the same working code, just different ways of separating presentation from logic. They both work the same as far as the server is concerned, so not having
a code behind file is not your issue.
If you tell us what "couldn't get it to work" really means, with error messages, expected results and so on, we can help. My guess is you need to configure the database, but just because that's a common beginning issue.
Dec 28, 2006 01:04 PM|lwarner4q|LINK
Thanks for responding - the URL is http://www.scorpaknox.com/myown/default.aspx
Hopefully you can see the error…
Dec 28, 2006 06:16 PMfirstname.lastname@example.org|LINK
Most likely either you have not configured the /myown folder as an application, or you have a second web.config file, most likely one in the root and the correct one in the /myown folder. If two web.config fils, rename the one in the root and test. If
not, check with your host about how to configure your folder as an application.
Dec 28, 2006 07:32 PM|lwarner4q|LINK
I only had one web.config file. So I made the myown folder an application folder as you suggested. Now I am getting this error -
Compiler Error Message: CS0138: A using namespace directive can only be applied to namespaces; 'System.Data.SqlClient.SqlConnection' is a type not a namespace
classified starter kit implementation
Dec 28, 2006 10:48 PMemail@example.com|LINK
Is your application set to ASP.NET 2.0? Sounds like it's using the 1.1 framework.
Dec 29, 2006 08:17 AM|lwarner4q|LINK
Forgive me but where do you check to make sure it is .net 2.0?
Dec 29, 2006 09:24 AM|lwarner4q|LINK
I found the settings and need to have my provider make some modifications on there side... will let you know how it goes....
Dec 29, 2006 07:07 PM|lwarner4q|LINK
No luck still having the same error after i got my provider to make the changes.... any other idea on what this is?
Dec 30, 2006 01:01 AM|lwarner4q|LINK
I think i am making some progress... I am getting this error now.. any thoughts?
Compiler Error Message: CS0246: The type or namespace name 'AspNet' could not be found (are you missing a using directive or an assembly reference?)
Line 1: <%@ Application Language="C#" %>Line 2: <%@ Import Namespace="AspNet.StarterKits.Classifieds.Web" %>Line 3: Line 4: <script RunAt="server">
Dec 30, 2006 04:44 PM|lwarner4q|LINK
Ok decided to start over and use this extended version that I found on the site. But I am getting this error. Does anyone have a solution for this?
BC30002: Type 'ClassifiedsHttpApplication' is not defined.
<%@ Application Language="VB" %>
<%@ Import Namespace="AspNet.StarterKits.Classifieds.Web" %>
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
If (Not Roles.RoleExists("Administrators")) Then
If (Not Roles.RoleExists("Guests")) Then
Dim cha As New ClassifiedsHttpApplication()