BugNET

Open source issue tracking & project management
Welcome to BugNET Register | Login |

BugNET Forums

 
  Forum  Support  Installation pr...  CONNECTION STRING HELP
Previous Previous
 
Next Next
New Post 2/4/2008 2:03 AM
Resolved
User is offline cacol2
2 posts
No Ranking


CONNECTION STRING HELP 

I have substituted the following line as my my connection string in the two config files (Log4Net, Web). But I keep getting the error below. Any help much appreciated. Using SQL Express. I'm a newbie to this stuff, so go easy on me! Thanks.

add name="LocalSqlServer" connectionString="server=EARTH\SQLExpress;database=BugNet;uid=sa;pwd=qwerty" providerName=""

   

Server Error in '/bugnet' 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.

Details: To enable the details of this specific error message to be viewable on the local server machine, 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 "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".

- Web.Config Configuration File --

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly"/>
    </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="On" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

 

 
New Post 2/7/2008 12:29 AM
User is offline cacol2
2 posts
No Ranking


Re: CONNECTION STRING HELP 

 

Had to change customErrors tag to mode=RemoteOnly. Then area specific errors were seen. Also make sure capitalization is correct (connectionstring is connectionString).

<

customErrors defaultRedirect="~/Errors/Error.aspx" mode="RemoteOnly" />

 
Previous Previous
 
Next Next
  Forum  Support  Installation pr...  CONNECTION STRING HELP

Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.