Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

c# deploying web application

$
0
0

I am working on a web application that uses c# code behind and ajax. The web app used to work locally but while trying to get it to work on the production server, I have managed to make things worse. 

I have 5 major files

dashboard.htm - where everything actually displays, lots of javascript, jquery, and ajax

Charts.aspx & Charts.aspx.cs - one of the two handlers of ajax requests, generates a chart based on ajax query

the code behind looks like this:

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Diagnostics;
using System.Collections;

namespace ChartsDashboard {
    public partial class Charts : System.Web.UI.Page {

LineChart.aspx & LineChart.aspx.cs -  the other of the two handlers of ajax requests, generates a line chart based on ajax query

code behind looks like this:

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Diagnostics;
using System.Collections;

namespace ChartsDashboard {
    public partial class LineChart : System.Web.UI.Page {

Database.cs - a class that handles my database connections

using System;
using System.Data.SqlClient;
using System.Diagnostics;

namespace ChartsDashboard {
    public class MyDatabase {

Highcharts.cs - a class that helps create the charts

using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Collections;
using System.Diagnostics;

namespace ChartsDashboard {
    public class Highcharts {



My main issue started in that, on the production server, I was unable to access my two class files, no matter what I tried. App_Code folder, dll in the bin folder, .net version, everything I could think of and I would still get the error 'are you missing an assembly or reference'. So my latest attempt to get it to find the classes was to try to convert from a web page to a web application. (even though I was well informed on how much of a pain it is) This seemed to create the following error 

Parser Error Message: 'ChartsDashboard.Charts' is not allowed here because it does not extend class 'System.Web.UI.Page'.

Source Error: 

Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Charts.aspx.cs" Inherits="ChartsDashboard.Charts" %>


any help on any of the issues would be greatly appreciated

sgausmanuco@gmail.com


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>