I downloaded the Personal Web site started kit then I am using Visual Studio.net 2005 in C#.
The apps were tested and run find in my local computer.
Next step, I changed the web.config file on the following parameters before uploading to GoDaddy.com web hosting.
<add name="Personal" connectionString="Server=user1.db.2756700.hostedresource.com; Initial Catalog=user1; User ID=test1; Password='Test12345'" /><add name="ObjectDataSource1" connectionString="Server=user1.db.2756700.hostedresource.com; Initial Catalog=user1; User ID=test1; Password='Test12345'"/><customErrors
mode="Off"/>When I opened my web site links, there are some errors that I did not familiar:Server
Error in '/' Application. <div class=MsoNormal style="MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal; TEXT-ALIGN: center; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 1" align=center></div>The type specified in the TypeName property 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
Am i clear enough.Plz let me know if still the problem is there.
Plz do not forget to mark as answer if you have got your answer
Joydeep Sen
Dont forget to click “Mark as Answer” on the post that helped you.This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers
I am getting a similar error msg. Here is the backgroud.
I downloaded PWS from the website and built it in VS 2008 using SQL Express hence I have local MDFs
in App_Data. compiled fine and ran well as http://localhost
Now I use the publish command and deploy to my internet site (godaddy) I keep getting the below error msg. Note I did not chage any connectionstring settings
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:
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:
[SqlException (0x80131904): 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)] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4844759 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194 System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +4858065 System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +90 System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +376 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +4859187 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117 System.Data.SqlClient.SqlConnection.Open() +122 System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +87 System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +221 System.Web.Security.SqlRoleProvider.RoleExists(String roleName) +478 System.Web.Security.Roles.RoleExists(String roleName) +73 ASP.global_asax.Application_Start(Object sender, EventArgs e) +51
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
This connection string is appropriate for connecting to the SQL server on your local machine. To find the connection string you need for GoDaddy:
<div mce_keep="true">logon to your GoDaddy.com account</div>
<div mce_keep="true">Select "Hosting" and then "Manage Account"</div>
<div mce_keep="true">click the Databases tab and next to the name of your database there is a pencil (edit) in the Action column</div>
<div mce_keep="true">click the pencil and then the "Configuration" icon. This will open a drop down showing a nunber of connection strings. Copy the one for SQL Connection (.NET) and paste it into your web.config in the appropriate places.</div>
It will look something like this:
Data Source=p3swhsql-v21.shr.phx3.secureserver.net;Database=DB_675; Initial Catalog=<your DB Name>; User ID=<your DB username>; Password=<your DBPassword>; Trusted_Connection=False" providerName="System.Data.SqlClient"
The database(aspnetdb) creation wizard will be launched.
Finish the wizard steps to load the database in the sql server.
Hope to hear from you.
Joydeep Sen
Dont forget to click “Mark as Answer” on the post that helped you.This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers
The basic idea is to use the "Publish to Provider" facility to write scripts for both ASPNET.MDF and Personal.MDF that can then be pasted into the Query tool and executed in the GoDaddy data base manager.
Hi I am experiencing similiar errors. I have followed the guide and created 2 .sql files, logged into mysql and opened the query box. When I run either of the files I get errors such as "error in code" and "Warning: mb_strpos() [function.mb-strpos]: Unknown
encoding or conversion error. in C:\SWSoft\Plesk\admin\htdocs\domains\databases\phpMyAdmin\libraries\string.lib.php on line 100 #2006 - MySQL server has gone away" I am using mysql server 2005, I ahve setup 1 database into which I was going to run both .sql
files. Thanks Ian
tjedwin
Member
12 Points
14 Posts
Server Error in '/' Application.
Jan 15, 2009 06:03 PM|LINK
Hello room,
I downloaded the Personal Web site started kit then I am using Visual Studio.net 2005 in C#.
The apps were tested and run find in my local computer.
Next step, I changed the web.config file on the following parameters before uploading to GoDaddy.com web hosting.
<add name="Personal" connectionString="Server=user1.db.2756700.hostedresource.com; Initial Catalog=user1; User ID=test1; Password='Test12345'" /> <add name="ObjectDataSource1" connectionString="Server=user1.db.2756700.hostedresource.com; Initial Catalog=user1; User ID=test1; Password='Test12345'"/><customErrors mode="Off"/> When I opened my web site links, there are some errors that I did not familiar:Server Error in '/' Application. <div class=MsoNormal style="MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal; TEXT-ALIGN: center; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 1" align=center></div>The type specified in the TypeName property 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:
Stack Trace:
Can anyone help and advice on this?
Thanks in advance.
TJ
PWSK hosting godaddy problem ASP.NET2.0
joydeepsen
Contributor
4155 Points
802 Posts
Re: Server Error in '/' Application.
Jan 16, 2009 08:08 AM|LINK
hi tjedwin ,
ObjectDataSource has a property called TypeName.
Suppose you have set <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="SelectEmployees"></asp:ObjectDataSource>
and your SelectEmployees method is defined in a class file in your dll layer called DataManager.cs
So you have to specify the class name as TypeName attribute of the ObjectDataSource like this,
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="SelectEmployees" TypeName="DataManager"></asp:ObjectDataSource>
So, somehow you are missing that thing(i think!)
Am i clear enough.Plz let me know if still the problem is there.
Plz do not forget to mark as answer if you have got your answer
Dont forget to click “Mark as Answer” on the post that helped you.This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers
isoodlee
Member
6 Points
3 Posts
Re: Server Error in '/' Application.
Jan 28, 2009 02:47 AM|LINK
Hello,
I am getting a similar error msg. Here is the backgroud.
I downloaded PWS from the website and built it in VS 2008 using SQL Express hence I have local MDFs
in App_Data. compiled fine and ran well as http://localhost
Now I use the publish command and deploy to my internet site (godaddy) I keep getting the below error msg. Note I did not chage any connectionstring settings
<connectionStrings>
<add name="Personal" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Personal.mdf" providerName="System.Data.SqlClient"/>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf"/>
</connectionStrings>
Any help is greatly appriciated
Below is the error msg from the site
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:
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
RogerHill
Member
5 Points
28 Posts
Re: Server Error in '/' Application.
Jan 28, 2009 08:24 PM|LINK
Hi
This connection string is appropriate for connecting to the SQL server on your local machine. To find the connection string you need for GoDaddy:
- <div mce_keep="true">logon to your GoDaddy.com account</div>
- <div mce_keep="true">Select "Hosting" and then "Manage Account"</div>
- <div mce_keep="true">click the Databases tab and next to the name of your database there is a pencil (edit) in the Action column</div>
- <div mce_keep="true">click the pencil and then the "Configuration" icon. This will open a drop down showing a nunber of connection strings. Copy the one for SQL Connection (.NET) and paste it into your web.config in the appropriate places.</div>
It will look something like this:Data Source=p3swhsql-v21.shr.phx3.secureserver.net;Database=DB_675; Initial Catalog=<your DB Name>; User ID=<your DB username>; Password=<your DBPassword>; Trusted_Connection=False" providerName="System.Data.SqlClient"
Hope this helps.
Roger
isoodlee
Member
6 Points
3 Posts
Re: Server Error in '/' Application.
Jan 30, 2009 03:33 AM|LINK
Hi Roger,
Thank you for help, it works now :)
isoodlee
Member
6 Points
3 Posts
Re: Server Error in '/' Application.
Jan 30, 2009 03:53 AM|LINK
Now I need to know how do i create the aspnetdb tables I don't see any scripts like the one provided for Personal as personal-add.sql
Thanks in advance
joydeepsen
Contributor
4155 Points
802 Posts
Re: Server Error in '/' Application.
Jan 30, 2009 04:16 AM|LINK
isoodlee,
Open you visual Studio 2005 command prompt.
Type aspnet_regsql and click ok.
The database(aspnetdb) creation wizard will be launched.
Finish the wizard steps to load the database in the sql server.
Hope to hear from you.
Dont forget to click “Mark as Answer” on the post that helped you.This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers
RogerHill
Member
5 Points
28 Posts
Re: Server Error in '/' Application.
Jan 30, 2009 05:48 AM|LINK
Hi Isoodlee,
My advice would be to follow the excellent procedure presented by Scott Guthrie in his blog: http://weblogs.asp.net/scottgu/archive/2006/12/22/recipe-deploying-a-sql-database-to-a-remote-hosting-environment-part-1.aspx
The basic idea is to use the "Publish to Provider" facility to write scripts for both ASPNET.MDF and Personal.MDF that can then be pasted into the Query tool and executed in the GoDaddy data base manager.
Good luck,
Roger
IanBotham
Member
4 Points
10 Posts
Re: Server Error in '/' Application.
Mar 06, 2009 09:22 AM|LINK