I uploaded my PWS into goDaddy.com web hosting and tested it out.
Encountered an error of
ObjectDataSource 'ObjectDataSource1' could not be found.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 type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.
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:
[InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.]System.Web.UI.WebControls.ObjectDataSourceView.GetType(String typeName) +1329383System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1866System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70System.Web.UI.WebControls.FormView.DataBind() +4System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82System.Web.UI.WebControls.FormView.EnsureDataBound() +163System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69System.Web.UI.Control.EnsureChildControls() +87System.Web.UI.Control.PreRenderRecursiveInternal() +50System.Web.UI.Control.PreRenderRecursiveInternal() +170System.Web.UI.Control.PreRenderRecursiveInternal() +170System.Web.UI.Control.PreRenderRecursiveInternal() +170System.Web.UI.Control.PreRenderRecursiveInternal() +170System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
Also, I already modified my webconfig file as the forum advised.
The errors msg did not tell which pages. I'm newbie to ASP.NET 2.0.
My plan is to create my personal page by utilizing Personal Site Starter Kit. I was able to compile and run in my local machine after modified the front end.
Would be possible to get it run on the hosting server?
I would think one could do that, I have my site up and running on a host as well, the thing for me though is that I am not using Godaddy, so you need to dig a little more in these forums for folks who had issues setting it up on GoDaddy.
Hi, I retested on my Visual Studio 2005 environment and it compile and run. Then, I uploaded to discountASP web hosting. However, I did not subscribe SQL Server 2005.
When I run it, I received Global.asax errors:
Server Error in '/' Application.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
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.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that
SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Source Error:
Line 5: void Application_Start(object sender, EventArgs e) {
Line 6: SiteMap.SiteMapResolve += new SiteMapResolveEventHandler(AppendQueryString);
Line 7: if (!Roles.RoleExists("Administrators")) Roles.CreateRole("Administrators");
Line 8: if (!Roles.RoleExists("Friends")) Roles.CreateRole("Friends");
Line 9: }
I get exactly the same fault with Visual Studio 2008. It runs correctly while in Visual Studio but when published in the 'LocalHost' site on the same computer I get the error. I can get it to work if I don't use objects but connect directly to the SQLServer
database. - Why....
tjedwin
Member
12 Points
14 Posts
ObjectDataSource 'ObjectDataSource1' could not be found.
Jan 15, 2009 01:18 PM|LINK
I uploaded my PWS into goDaddy.com web hosting and tested it out.
Encountered an error of
ObjectDataSource 'ObjectDataSource1' could not be found. 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 type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.
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:
[InvalidOperationException: The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.] System.Web.UI.WebControls.ObjectDataSourceView.GetType(String typeName) +1329383 System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1866 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70 System.Web.UI.WebControls.FormView.DataBind() +4 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82 System.Web.UI.WebControls.FormView.EnsureDataBound() +163 System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69 System.Web.UI.Control.EnsureChildControls() +87 System.Web.UI.Control.PreRenderRecursiveInternal() +50 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Control.PreRenderRecursiveInternal() +170 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041Also, I already modified my webconfig file as the forum advised.
Please help and advice.
Thanks,
TJ
GoDaddy ASP.NET2.0
aabruzzese
Contributor
2806 Points
759 Posts
Re: ObjectDataSource 'ObjectDataSource1' could not be found.
Jan 16, 2009 08:20 PM|LINK
Which Page generated this error?
tjedwin
Member
12 Points
14 Posts
Re: ObjectDataSource 'ObjectDataSource1' could not be found.
Jan 20, 2009 07:29 PM|LINK
The errors msg did not tell which pages. I'm newbie to ASP.NET 2.0.
My plan is to create my personal page by utilizing Personal Site Starter Kit. I was able to compile and run in my local machine after modified the front end.
Would be possible to get it run on the hosting server?
Thanks,
TJ
ASP.NET2.0
aabruzzese
Contributor
2806 Points
759 Posts
Re: ObjectDataSource 'ObjectDataSource1' could not be found.
Jan 20, 2009 07:51 PM|LINK
Hi,
I would think one could do that, I have my site up and running on a host as well, the thing for me though is that I am not using Godaddy, so you need to dig a little more in these forums for folks who had issues setting it up on GoDaddy.
tjedwin
Member
12 Points
14 Posts
Re: ObjectDataSource 'ObjectDataSource1' could not be found.
Jan 20, 2009 08:56 PM|LINK
Hi, I retested on my Visual Studio 2005 environment and it compile and run. Then, I uploaded to discountASP web hosting. However, I did not subscribe SQL Server 2005.
When I run it, I received Global.asax errors:
Server Error in '/' Application.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
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.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Source Error:
Source File: e:\web\dbaindones1\htdocs\Global.asax Line: 7
Can you advice on this?
How to make it works?
ASP.NET2.0
aabruzzese
Contributor
2806 Points
759 Posts
Re: ObjectDataSource 'ObjectDataSource1' could not be found.
Jan 20, 2009 09:25 PM|LINK
Hi,
If you are not using SQL 2005, what SQL data source are you using?
I think some folks have got it working using MS ACCESS but as far as I remember you need to have an SQL database behind this site for it to work.
If you cant use SQL 2005, dig in the forums to see how others might have adapted it to use MS ACCESS.
Johnvan
Member
13 Points
3 Posts
Re: ObjectDataSource 'ObjectDataSource1' could not be found.
Jan 15, 2010 12:24 AM|LINK
I get exactly the same fault with Visual Studio 2008. It runs correctly while in Visual Studio but when published in the 'LocalHost' site on the same computer I get the error. I can get it to work if I don't use objects but connect directly to the SQLServer database. - Why....
ASP.NET Configuration Tool asp.net