.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old May 9th, 2008, 04:59 AM
zeetec1 zeetec1 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 101 zeetec1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 39 m 34 sec
Reputation Power: 1
Problems publishing a .net web app

Hi

I am having problems with publishing an asp.net web application.

I am going to Build > Publish and it displays 'Publish Succeeded' but then when I go onto the page it display the following error message:

Code:
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>


The server already has the FrontPage Server Extensions installed.

Any help most appreciated.

Reply With Quote
  #2  
Old May 9th, 2008, 05:14 AM
micky's Avatar
micky micky is online now
Couch Potato Wizard
Click here for more information. Click here for more information
 
Join Date: Jan 2005
Location: India
Posts: 9,962 micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)micky User rank is General 4th Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 3 Months 2 Weeks 4 Days 13 h 54 m 16 sec
Reputation Power: 1275
try what it says and make changes in the web.config file to see the real error.
__________________
Laziness is my religion and Sunday is my God

Get the Mantra!

Reply With Quote
  #3  
Old May 9th, 2008, 05:17 AM
zeetec1 zeetec1 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 101 zeetec1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 39 m 34 sec
Reputation Power: 1
Quote:
Originally Posted by micky
try what it says and make changes in the web.config file to see the real error.


Have aded that code in and am now getting the following error:


Code:
Cannot open database "OAS" requested by the login. The login failed.
Login failed for user 'CNXNOTTS\DEVELOPMENT$'. 
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: Cannot open database "OAS" requested by the login. The login failed.
Login failed for user 'CNXNOTTS\DEVELOPMENT$'.

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): Cannot open database "OAS" requested by the login. The login failed.
Login failed for user 'CNXNOTTS\DEVELOPMENT$'.]
   System.Data.SqlClient.SqlInternalConnection.OnErro  r(SqlException exception, Boolean breakConnection) +734979
   System.Data.SqlClient.TdsParser.ThrowExceptionAndW  arning(TdsParserStateObject stateObj) +188
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
   System.Data.SqlClient.SqlInternalConnectionTds.Com  pleteLogin(Boolean enlistOK) +33
   System.Data.SqlClient.SqlInternalConnectionTds.Ope  nLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +628
   System.Data.SqlClient.SqlInternalConnectionTds..ct  or(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170
   System.Data.SqlClient.SqlConnectionFactory.CreateC  onnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +359
   System.Data.ProviderBase.DbConnectionFactory.Creat  ePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
   System.Data.ProviderBase.DbConnectionPool.CreateOb  ject(DbConnection owningObject) +424
   System.Data.ProviderBase.DbConnectionPool.UserCrea  teRequest(DbConnection owningObject) +66
   System.Data.ProviderBase.DbConnectionPool.GetConne  ction(DbConnection owningObject) +496
   System.Data.ProviderBase.DbConnectionFactory.GetCo  nnection(DbConnection owningConnection) +82
   System.Data.ProviderBase.DbConnectionClosed.OpenCo  nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
   System.Data.SqlClient.SqlConnection.Open() +111
   System.Data.Common.DbDataAdapter.FillInternal(Data  Set dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83
   System.Web.UI.WebControls.SqlDataSourceView.Execut  eSelect(DataSourceSelectArguments arguments) +1746
   System.Web.UI.DataSourceView.Select(DataSourceSele  ctArguments arguments, DataSourceViewSelectCallback callback) +13
   System.Web.UI.WebControls.DataBoundControl.Perform  Select() +150
   System.Web.UI.WebControls.BaseDataBoundControl.Dat  aBind() +68
   System.Web.UI.WebControls.GridView.DataBind() +5
   System.Web.UI.WebControls.BaseDataBoundControl.Ens  ureDataBound() +61
   System.Web.UI.WebControls.CompositeDataBoundContro  l.CreateChildControls() +67
   System.Web.UI.Control.EnsureChildControls() +97
   System.Web.UI.Control.PreRenderRecursiveInternal()   +50
   System.Web.UI.Control.PreRenderRecursiveInternal()   +193
   System.Web.UI.Control.PreRenderRecursiveInternal()   +193
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6534

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 


Not sure where it picked up:

'CNXNOTTS\DEVELOPMENT$

There isn't any such username.

A correct username would be 'CNXNOTTS\firstname.surname

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Problems publishing a .net web app


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway