locked
can asp classic and asp.net work in one application ? need help RRS feed

  • Question

  • User-108383634 posted

    i have application that work in asp classic and asp.net

    i just filter my apllication with Defullt App Pool ( i didnt use asp classic.net app pool )

    is there way can i use both?

    some page working good

    some give me this error

    <div id="_GPL_e6a00_parent_div"></div> <div id="header">

    Server Error

    </div> <div id="content"> <div class="content-container">

    <fieldset>

    404 - File or directory not found.

    The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

    </fieldset>

    </div> </div>

    furthermore, i got another error

    Server Error in '/' Application.


    The ConnectionString property has not been initialized.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.InvalidOperationException: The ConnectionString property has not been initialized.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace: 

    <div dir="ltr">[InvalidOperationException: The ConnectionString property has not been initialized.] System.Data.SqlClient.SqlConnection.PermissionDemand() +4883995 System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection) +20 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117 System.Data.SqlClient.SqlConnection.Open() +122 SiteCP.Model.tbWebmaster.get_SiteName() +150 [TargetInvocationException: Property accessor 'SiteName' on object 'SiteCP.Model.tbWebmaster' threw the following exception:'The ConnectionString property has not been initialized.'] System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) +390 System.Web.UI.WebControls.HyperLinkField.OnDataBindField(Object sender, EventArgs e) +403 System.Web.UI.Control.OnDataBinding(EventArgs e) +99 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92 System.Web.UI.Control.DataBind() +15 System.Web.UI.Control.DataBindChildren() +211 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102 System.Web.UI.Control.DataBind() +15 System.Web.UI.Control.DataBindChildren() +211 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102 System.Web.UI.Control.DataBind() +15 System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +155 System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +2417 System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57 System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +14 System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73 System.Web.UI.WebControls.GridView.DataBind() +4 SiteCP.Base.BasePage`1.BindGridData() +84 SiteCP.webmastermgr.Page_Load(Object sender, EventArgs e) +229 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 SiteCP.Base.BasePage`1.OnLoad(EventArgs e) +49 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627</div>



    Version Information: Microsoft .NET Framework

    please i need help >

    if any one want to try i will give him accses to my rdp

    Sunday, September 1, 2013 5:55 AM

All replies

  • User1508394307 posted

    hawad2

    i didnt use asp classic.net app pool

    It doesn't matter how your pool is named, you can rename it from "classic .net app pool" to any name as well as create any new pool. This will not cause errors you listed above.

    The errors are pretty much clear,

    • file not found - do you have that file?
    • connection string is not defined - did you define it?
    Sunday, September 1, 2013 6:17 AM
  • User-108383634 posted

    bro its not about the name

    you know that if you want to run asp.classic you need to choose from manged pipline mode that "classic"

    but if you want with asp.net need to choose "integrated"

    is this true or i misunderstood 

    the file is there  ( its work good before )

    • file not found - do you have that file?

    • connection string is not defined - did you define it?   
      the connication string is definded 
    •  i can log in using my user and password

      so its connicated to my database


       
    Sunday, September 1, 2013 6:34 AM