Free Download:
|
| |
| mywaupaca | Asp.Net User |
| works local but not after publlishing | 12/6/2007 10:17:33 PM |
0/0 | |
|
Hello, being very new to .net and yet very eager to learn, I appologize in advance for my ignoranceand any information I have left out. I was most interested in the starter kits as they really give you a change to dig in to a working program to see the nuances. I hope with the help of this forum I can get this program working.
I have the following config:
Separate Server 2003 server on local lan for testing running SQL 2000 and SQL 2005 Express WINXP on development machine runing Visual Studio 2005
I downloaded Classifieds Starter kit; installed it; loaded it into VWD 2005; created an admin account; ran the program using Ctrl + F5; browsed the app; everything worked as expected.
I built and published the project to a folder on the local machine and the copied the files over to the webserver. I attacted the 2 databases in the App_Data folder to the SQL2005 Express. I ran the default.apx file and "poop" no go. I am sure I am doing something wrong or havn't configured it properly, but being this my first real project to look at, I don't know where to start. I have included the web.config file and the error received when trying to run the default.aspx page. I look forward to any responses to help solve this mystery.
Thanks a million.
Wolf ERROR:==================================================================================
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
| Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
| =================================================================================
web.config file ===================================================================================== <?xml version="1.0"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <location path="Admin"> <system.web> <authorization> <allow roles="Administrators"/> <deny users="*"/> </authorization> </system.web> </location> <location path="PostAd.aspx"> <system.web> <authorization> <deny users="?"/> </authorization> </system.web> </location> <location path="EditPhotos.aspx"> <system.web> <authorization> <deny users="?"/> </authorization> </system.web> </location> <location path="MyAds.aspx"> <system.web> <authorization> <deny users="?"/> </authorization> </system.web> </location> <location path="MyProfile.aspx"> <system.web> <authorization> <deny users="?"/> </authorization> </system.web> </location> <system.web> <customErrors defaultRedirect="Error.aspx" mode="RemoteOnly"/> <pages styleSheetTheme="Red"/> <authentication mode="Forms"/> <membership> <providers> <clear/> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/> </providers> </membership> <profile enabled="true"> <properties> <add name="FirstName" type="System.String"/> <add name="LastName" type="System.String"/> <add name="MemberId" defaultValue="0" type="System.Int32"/> <group name="Core"/> </properties> </profile> <roleManager enabled="true"/> <siteMap defaultProvider="RoleEnabled_AspNetXmlSiteMapProvider" enabled="true"> <providers> <clear/> <add name="RoleEnabled_AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/> </providers> </siteMap> </system.web> <connectionStrings> <add name="classifiedsConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\classifiedsdb.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/> </connectionStrings> <system.net> <mailSettings> <smtp> <network host="yourSMTPhostname" port="25" defaultCredentials="true" userName="enterUserNameHereIfRequired" password="enterPasswordIfRequired"/> /> </smtp> </mailSettings> </system.net> </configuration>
======================================================================================
|
| mr.aspdotnet | Asp.Net User |
| Re: works local but not after publlishing | 12/6/2007 10:57:17 PM |
0/0 | |
|
Hi,
can you please change your web.config as follows:
change in this line <customErrors defaultRedirect="Error.aspx" mode="RemoteOnly"/>
change RemoteOnly to On so that you can view the error message and display it here. The error message you posted is a generic error message which doesn't contain any info to help rectify the error.
Regards
Don't forget to click (Mark as Answer) on the post that helped to solve your problem. |
| darkknight187 | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 3:11:35 AM |
0/0 | |
|
Actually, in the web.config file you want Off not On.
Like this <customErrors mode="Off"/>
Note that it is case sensitive "Off"
The other issue, to start at least, is with your connection string.
Try something like this, of course you will have to enter your usernames and passwords.
The first connection is pointing to the ads database, and the second is pointing to your asp.net members database.
< connectionStrings><add name="classifiedsConnection" connectionString="Data Source=xxxxxxxxxxxx;
Initial Catalog=xxxxxxxx;
User ID=xxxxxxx; Password='xxxxxxx';" />
< remove name="LocalSqlServer"/><add name="LocalSqlServer" connectionString="Data Source=xxxxxxxxxxxxxxx;
Initial Catalog=xxxxxxxxxx
User ID=xxxxxxxxxxx; Password='xxxxxxxxxxx';" />
</ connectionStrings>
If that doesn't work post your error, once you have the mode="Off" it will give more information.
Also, whoever your hosting server is there should be somewhere on their site,
or in the control panel that will give you an idea of how they want you to connect to the databases.
Good Luck
Daniel Meis
Be sure to visit www.detelli.comAnd please remember to click ?Mark as Answer? on the post that helps you. This can be beneficial to other community members reading the thread. |
| ashmetry | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 1:56:17 PM |
0/0 | |
|
As Daniel mentioned, DB connection strings is the most common cause of errors when uploading to a host.
It'll help if you disable custom errors. This will allow you to view a stack trace of the cause of the exception.
-Ash Web: www.love2trade.com Blog: blog.love2trade.comPlease remember to click "Mark as Answer" on this post if it helped you. |
| nerolyle | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 4:45:55 PM |
0/0 | |
|
Thats exactly my problem I dont know where to begin 6 long days and nights i think i figured how to put the databases on the server using database publishing wizard and database manager but im only allowed one database so i cant get the 2 of them on If thats right not sure if i need to buy another?
Also I havent been able to get any starterkits working on the host, any help from anyone would be great plzzzzzzzzz |
| mywaupaca | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 5:39:45 PM |
0/0 | |
|
Thanks for the input Daniel,
I changed the mode to "Off" - However, I still receive the same error message. Does this change need to be made within VWD 2005 and then rebuild?
Also - I have changed the conection strings as you indicated - however, I am not sure of two items.
1 - Would the datasource look somthing like this? I am runing this on a local server to get working first then loading to host. <add name="LocalSqlServer" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Inetpub\wwwroot\classifieds\App_Data\classifiedsdb.mdf;
2. - I am not sure what data should be entered for the following: Initial Catalog=xxxxxxxxxx
Thanks for the replies...
Wolf |
| nerolyle | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 6:10:18 PM |
0/0 | |
|
Can anyone please help me with this?
Server Error in '/' Application.
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not 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: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration> <system.web> <compilation debug="true"/> </system.web> </configuration>
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario. | Stack Trace:
[SqlException (0x80131904): An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +739123
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +685966
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +109
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +383
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +130
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +84
System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +197
System.Web.Security.SqlRoleProvider.RoleExists(String roleName) +482
System.Web.Security.Roles.RoleExists(String roleName) +242
ASP.global_asax.Application_Start(Object sender, EventArgs e) +14
| |
| ashmetry | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 6:17:42 PM |
0/0 | |
|
You do not need to rebuild. Just make the change to the webconfig file and upload it.
the xxxxxxxxxx are the database name.
The DOT in DataSource =.\SQLExpress means your localhost running a sql express instance named "SQLExpress" so you need to replace that DOT with the database server name that your host provided. You will also need to enter the user/pass to access that database. If you need help creating the connection String check http://www.connectionstrings.com/?carrier=sqlserver2005
Your's should look like
<add name="LocalSqlServer" connectionString="Data Source=DB_SERVERNAME;Initial Catalog=DATABASE_NAME;User Id=USER;Password=PASS;" providerName="System.Data.SqlClient"/>
To answer the previous post, YOU CAN merge both databases into ONE.
Use C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe to prepare the classifieds database to support membership then point the membership connection string the to classifieds db
Like that
<connectionStrings> <clear/> <add name="classifiedsConnection" connectionString="Data Source=server ;Initial Catalog=db;User Id=user;Password=pass;" providerName="System.Data.SqlClient"/> <add name="LocalSqlServer" connectionString="Data Source=server ;Initial Catalog=db;User Id=user;Password=pass;" providerName="System.Data.SqlClient"/> </connectionStrings>
Good luck
-Ash Web: www.love2trade.com Blog: blog.love2trade.comPlease remember to click "Mark as Answer" on this post if it helped you. |
| nerolyle | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 6:28:37 PM |
0/0 | |
|
thanks ashmetry
This is the error im getting i find the coding quite blinding could you help me if i give you my server details etc to adjust my web.config
Stack Trace:
[SqlException (0x80131904): An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +739123
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +685966
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +109
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +383
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +130
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121
System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +162
System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +107
AdsDataComponentTableAdapters.AdsDataAdapter.GetAdsByRandomOrder(Int32 NumRecords, Int32 AdStatus, Int32 AdLevel) +349
AspNet.StarterKits.Classifieds.BusinessLogicLayer.AdsDB.GetFeaturedAdsSelection(Int32 maxNumAds) +72
AspNet.StarterKits.Classifieds.Web.FeaturedAdCache.FetchFeaturedAd() +14
AspNet.StarterKits.Classifieds.Web.FeaturedAdCache.GetFeaturedAd(HttpContext context) +107
AspNet.StarterKits.Classifieds.Web.FeaturedAdCache.GetFeaturedAd() +12
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +296
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +482
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +2040
System.Web.UI.WebControls.Repeater.GetData() +50
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +232
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +53
System.Web.UI.WebControls.Repeater.DataBind() +72
System.Web.UI.WebControls.Repeater.EnsureDataBound() +55
System.Web.UI.WebControls.Repeater.OnPreRender(EventArgs e) +12
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
| |
| ashmetry | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 7:05:27 PM |
0/0 | |
|
first line An error has occurred while establishing a connection to the server.
Means You have bad configuration to your database. You will need to get that from your hosting provider, ask for the server name, database name, your user/pass
where are you hosting?
-Ash
-Ash Web: www.love2trade.com Blog: blog.love2trade.comPlease remember to click "Mark as Answer" on this post if it helped you. |
| nerolyle | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 7:06:48 PM |
0/0 | |
|
This is my web.config could you give me some pointers as to what goes where i want to see this site working so much :) <?xml version="1.0"?>
< configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"><location path="Admin">
< system.web><authorization>
< allow roles="Administrators"/><deny users="*"/>
</ authorization></system.web>
</ location><location path="PostAd.aspx">
< system.web><authorization>
< deny users="?"/></authorization>
</ system.web></location>
< location path="EditPhotos.aspx"><system.web>
< authorization><deny users="?"/>
</ authorization></system.web>
</ location><location path="MyAds.aspx">
< system.web><authorization>
< deny users="?"/></authorization>
</ system.web></location>
< location path="MyProfile.aspx"><system.web>
< authorization><deny users="?"/>
</ authorization></system.web>
</ location><system.web>
< customErrors defaultRedirect="Error.aspx" mode="Off"/><pages styleSheetTheme="Red"/>
< authentication mode="Forms"/><membership>
< providers><clear/>
< add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/></providers>
</ membership><profile enabled="true">
< properties><add name="FirstName" type="System.String"/>
< add name="LastName" type="System.String"/><add name="MemberId" defaultValue="0" type="System.Int32"/>
< group name="Core"/></properties>
</ profile><roleManager enabled="true"/>
< siteMap defaultProvider="RoleEnabled_AspNetXmlSiteMapProvider" enabled="true"><providers>
< clear/><add name="RoleEnabled_AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
</ providers></siteMap>
</ system.web><connectionStrings>
< add name="classifiedsConnection" connectionString="Data Source=mssql.pipeten.co.uk\SQLEXPRESS;AttachDbFilename=|DataDirectory|\classifiedsdb.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/></connectionStrings>
< system.net><mailSettings>
< smtp><network host="yourSMTPhostname" port="25" defaultCredentials="true" userName="enterUserNameHereIfRequired" password="enterPasswordIfRequired"/>
</ smtp></mailSettings> </system.net>
</ configuration> |
| ashmetry | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 7:18:39 PM |
0/0 | |
|
you'll need to create a sql2005 db from your hosting control panel, enter that db name in the initial catalog as well as the user/pass
<add name="classifiedsConnection" connectionString="Data Source=mssql.pipeten.co.uk;Initial Catalog=db_name;User Id=user;Password=pass;" providerName="System.Data.SqlClient"/>
-Ash Web: www.love2trade.com Blog: blog.love2trade.comPlease remember to click "Mark as Answer" on this post if it helped you. |
| nerolyle | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 7:31:22 PM |
0/0 | |
|
Thanks mate
Yes I have all the details of user name etc i think I have a reseller package with pipeten.
It was just what i wrote and where could you guide me through it please |
| ashmetry | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 7:42:12 PM |
0/0 | |
|
Well what does the wizard tell you one where the mdf are stored? You need to find the path to the mdf files then use that...Im assuming you're not using sqlserver 2005 then?? in that case the connection string is different..check http://www.connectionstrings.com/?carrier=sqlserver2005
I would contact pipe10 to get the details oh the sqlserver connection. i pretty sure thats the main problem at the moment
-Ash Web: www.love2trade.com Blog: blog.love2trade.comPlease remember to click "Mark as Answer" on this post if it helped you. |
| nerolyle | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 7:55:21 PM |
0/0 | |
|
I have the target database etc its just where do i put it in the files ?
If i can get this to work i know i can get the rest to work
thanks for helping |
| ashmetry | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 8:37:26 PM |
0/0 | |
|
Im not sure what you mean. The mdf file IS your database.. they should sit in your App_Data folder
-Ash Web: www.love2trade.com Blog: blog.love2trade.comPlease remember to click "Mark as Answer" on this post if it helped you. |
| nerolyle | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 9:07:53 PM |
0/0 | |
|
I mean what files do i change to direct them to it is it my web config?? this is my web config file i actually got to see the site live on the web but i must have done something its not showing again hmmmmmmmm thanks once again ! <?xml version="1.0"?>
< configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"><location path="Admin">
< system.web><authorization>
< allow roles="Administrators"/><deny users="*"/>
</ authorization></system.web>
</ location><location path="PostAd.aspx">
< system.web><authorization>
< deny users="?"/></authorization>
</ system.web></location>
< location path="EditPhotos.aspx"><system.web>
< authorization><deny users="?"/>
</ authorization></system.web>
</ location><location path="MyAds.aspx">
< system.web><authorization>
< deny users="?"/></authorization>
</ system.web></location>
< location path="MyProfile.aspx"><system.web>
< authorization><deny users="?"/>
</ authorization></system.web>
</ location><system.web>
< customErrors defaultRedirect="Error.aspx" mode="Off"/><pages styleSheetTheme="Red"/>
< authentication mode="Forms"/><membership>
< providers><clear/>
< add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/></providers>
</ membership><profile enabled="true">
< properties><add name="FirstName" type="System.String"/>
< add name="LastName" type="System.String"/><add name="MemberId" defaultValue="0" type="System.Int32"/>
< group name="Core"/></properties>
</ profile><roleManager enabled="true"/>
< siteMap defaultProvider="RoleEnabled_AspNetXmlSiteMapProvider" enabled="true"><providers>
< clear/><add name="RoleEnabled_AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
</ providers></siteMap>
</ system.web><connectionStrings>
< add name="classifiedsConnection" connectionString="Data Source=mssql.pipeten.co.uk\MSSQL\Databases;Initial Catalog=NeroLyl_one;User Id=xxxxxxxxxx;Password=xxxxxxx" providerName="System.Data.SqlClient"/></connectionStrings>
< system.net><mailSettings>
< smtp><network host="mail.borderclassifieds.co.uk" port="25" defaultCredentials="true" userName="enterUserNameHereIfRequired" password="enterPasswordIfRequired"/>
</ smtp></mailSettings>
</ system.net>
</ configuration> |
| ashmetry | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 9:21:59 PM |
0/0 | |
|
try changing Source=mssql.pipeten.co.uk\MSSQL\Databases;Initial Catalog=NeroLyl_one;User Id=xxxxxxxxxx;Password=xxxxxxx"
to Source=mssql.pipeten.co.uk;Initial Catalog=NeroLyl_one;User Id=xxxxxxxxxx;Password=xxxxxxx"
or tp Source=mssql.pipeten.co.uk\MSSQL;Initial Catalog=NeroLyl_one;User Id=xxxxxxxxxx;Password=xxxxxxx
-Ash Web: www.love2trade.com Blog: blog.love2trade.comPlease remember to click "Mark as Answer" on this post if it helped you. |
| nerolyle | Asp.Net User |
| Re: works local but not after publlishing | 12/7/2007 9:49:42 PM |
0/0 | |
|
still not working for me ? hmm sorry
[SqlException (0x80131904): An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +739123 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188 System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +685966 System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +109 System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +383 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +359 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 System.Data.SqlClient.SqlConnection.Open() +111 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +162 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +107 AdsDataComponentTableAdapters.AdsDataAdapter.GetAdsByRandomOrder(Int32 NumRecords, Int32 AdStatus, Int32 AdLevel) +349 AspNet.StarterKits.Classifieds.BusinessLogicLayer.AdsDB.GetFeaturedAdsSelection(Int32 maxNumAds) +72 AspNet.StarterKits.Classifieds.Web.FeaturedAdCache.FetchFeaturedAd() +14 AspNet.StarterKits.Classifieds.Web.FeaturedAdCache.GetFeaturedAd(HttpContext context) +107 AspNet.StarterKits.Classifieds.Web.FeaturedAdCache.GetFeaturedAd() +12
[TargetInvocationException: Exception has been thrown by the target of an invocation.] System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0 System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +296 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29 System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +482 System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +2040 System.Web.UI.WebControls.Repeater.GetData() +50 System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +232 System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +53 System.Web.UI.WebControls.Repeater.DataBind() +72 System.Web.UI.WebControls.Repeater.EnsureDataBound() +55 System.Web.UI.WebControls.Repeater.OnPreRender(EventArgs e) +12 System.Web.UI.Control.PreRenderRecursiveInternal() +77 System.Web.UI.Control.PreRenderRecursiveInternal() +161 System.Web.UI.Control.PreRenderRecursiveInternal() +161 System.Web.UI.Control.PreRenderRecursiveInternal() +161 System.Web.UI.Control.PreRenderRecursiveInternal() +161 System.Web.UI.Control.PreRenderRecursiveInternal() +161 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
|
|
| |
Free Download:
|
Books: Handbook of Technical Writing Authors: Gerald J. Alred, Charles T. Brusaw, Walter E. Oliu, Pages: 745, Published: 2000 Public Domain: How to Find and Use Copyright-Free Writings, Music, Art & More Authors: Stephen Fishman, Pages: 446, Published: 2008 Collected Works of G. K. Chesterton: 1917-1919 Authors: G. K. Chesterton, Lawrence Clipper, George J. Marlin, Pages: 597, Published: 1989 Historical Theology: An Introduction to the History of Christian Thought Authors: Alister E. McGrath, Pages: 388, Published: 1998 Confessions of Saint Augustine Authors: Augustine, F. J Sheed, Pages: 224, Published: 1944 Web:works local but not after publlishing - ASP.NET Forums Re: works local but not after publlishing. 12-06-2007, 5:57 PM. Contact ... Re: works local but not after publlishing. 12-06-2007, 10:11 PM ... works local but not after publlishing - ASP.NET Forums Re: works local but not after publlishing. 12-07-2007, 2:55 PM. Contact ... Re: works local but not after publlishing. 12-07-2007, 3:37 PM. Contact ... Panel works when running from Visual Studio, but not after it's ... Panel works when running from Visual Studio, but not after it's published. Last post 10-16-2008 11:09 by [Infragistics] Viktor Snezhko. ... Copyright Term and the Public Domain in the United States Unpublished works created before 1978 that were published after 1977 but .... to works first published abroad and not subsequently published in the US ... Framework manager: query works in "Test sample" but generate ... Framework manager: query works in "Test sample" but generate errors after published. Asked by Tam Ta on 7/10/2007 11:57:00 PM ... Copyright Office Basics For works published on and after March 1, 1989, the previous notice requirement ... Works Originally Created before January 1, 1978, But Not Published or ... Wikipedia:Copyrights - Wikipedia, the free encyclopedia However, it would still be unethical (but not illegal) to do so without .... or posthumously published works of 140 (if the author died after 1953) or 120 ... Published works, bibliographies and indexes A brief guide to using published works, bibliographies and indexes when ... and corrections was recently published in 1998, which reflects many (but not ... Realmac Software Forums | Problems publishing site- works locally ... Problems publishing site- works locally but not on ftp .... I will try it again today after a few changes now that the site is running and ... Scrollpane works when published as v. 6 but NOT 7 - ActionScript ... Scrollpane works when published as v. 6 but NOT 7 Components. ... Tried using refreshPane() both inside and after the loop but it didn't ... Videos: Re: Turtle Bleach Advanced Version. Having watched the original again, I found the 1st version a lot of regrets. I like my works whatever they are in other people's light, they're like ... SULIT Sonata I - Of Angels And Cherubs (not Bach's, duh!) This is my first Sonata for Organ or Piano, written just recently, Feb 2, 2007. Sonata form is a basis for classical symphonies and concertos. On k... It's A Small World After Monsanto Takes All - IP Community ¡Show More 'n' Save!
The Playlist According To Monsanto:
http://www.youtube.com/view_play_list?p=E5A91E6C5EAE3E5D
H.R. 5889: Orphan Works Act of 20... Yilmaz Guney making The Wall (Duvar) 1983 PART 1 Rare behind the scene of Kurdish director Yilmaz Guney making his last film The Wall (Duvar) in France 1984 shortly before his death.
About Guney:... Lucian Iordanescu despre 'Doctrina liberala' Professor Lucian Iordanescu speaks about Tudor Georgescu's book, 'The Libertarian Doctrine. The Conceptual Revolution and the Transcendent Center.' P... Yilmaz Guney making The Wall (Duvar) 1983 PART 2 Rare behind the scene of Kurdish director Yilmaz Guney making his last film The Wall (Duvar) in France 1984 shortly before his death.
NOTICE: Ameri... Robert Darnton - Two Information Systems at War, in 18th Century France Princeton, New Jersey, April 2007 // Categories: history, print
Darnton has spent much of his career investigating the system of information contro... Yilmaz Guney making The Wall (Duvar) 1983 PART 3 Rare behind the scene of Kurdish director Yilmaz Guney making his last film The Wall (Duvar) in France 1984 shortly before his death.
Yılmaz Güney... Yilmaz Guney making The Wall (Duvar) 1983 PART 4 Rare behind the scene of Kurdish director Yilmaz Guney making his last film The Wall (Duvar) in France 1984 shortly before his death.
Yılmaz Güney... Steal This Film: Part 2 This is not a film about piracy.
This is not a film about sharing files.
It is a film that explores massive changes in the way we produce, distribute... |
|
Search This Site:
|
|