CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 3/27/2008 5:51:50 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 32 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
macupryk
Asp.Net User
Error when I drag and drop the webpartmanager3/27/2008 5:51:50 PM

0/0

What kind of error is this. When I try to run the default page i get this.


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

SQLExpress database file auto-creation error:


The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:


If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist.
If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database already exists within the applications App_Data directory. Revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the Sql Server Express database already exists. This will cause an error when the provider attempts to create a duplicate of an already existing database. Write access is required because the web server accounts credentials are used when creating the new database.
Sql Server Express must be installed on the machine.
The process identity for the web server account must have a local user profile. See the readme document for details on how to create a local user profile for both machine and domain accounts.

Here is the template.cs

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Template.master.cs" Inherits="Template" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
   
      <!---------- Login box ---------------------------->
    <div id="loginbox">
         <asp:LoginView ID="LoginView1" runat="server">
            <AnonymousTemplate>
               <asp:Login ID="Login" runat="server" Width="100%" FailureAction="RedirectToLoginPage" meta:resourcekey="LoginResource1">
                  <LayoutTemplate>
                     <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                           <td width="60px"><asp:Label runat="server" ID="lblUserName" AssociatedControlID="UserName" Text="Username:" meta:resourcekey="lblUserNameResource1" /></td>
                           <td><asp:TextBox id="UserName" runat="server" Width="95%" meta:resourcekey="UserNameResource2" /></td>
                           <td width="5px" align="right">
                              <asp:RequiredFieldValidator ID="valRequireUserName" runat="server" SetFocusOnError="True"
                                 ControlToValidate="UserName" Text="*" ValidationGroup="Login" meta:resourcekey="valRequireUserNameResource1" />
                           </td>
                        </tr>
                        <tr>
                           <td><asp:Label runat="server" ID="lblPassword" AssociatedControlID="Password" Text="Password:" meta:resourcekey="lblPasswordResource1" /></td>
                           <td><asp:TextBox ID="Password" runat="server" TextMode="Password"  Width="95%" meta:resourcekey="PasswordResource2" /></td>
                           <td width="5px" align="right">
                              <asp:RequiredFieldValidator ID="valRequirePassword" runat="server" SetFocusOnError="True"
                                 ControlToValidate="Password" Text="*" ValidationGroup="Login" meta:resourcekey="valRequirePasswordResource1" />
                           </td>
                        </tr>
                     </table>
                     <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                           <td><asp:CheckBox ID="RememberMe" runat="server" Text="Remember me" meta:resourcekey="RememberMeResource1"></asp:CheckBox></td>
                           <td align="right">
                              <asp:ImageButton ID="Submit" runat="server" AlternateText="Login"
                                 CommandName="Login" ImageUrl="~/Members/images/buttons/login.gif" ValidationGroup="Login" meta:resourcekey="SubmitResource1" />
                           </td>
                           <td width="5px" align="right">&nbsp;</td>
                        </tr>
                     </table>
                     <div style="border-top: solid 1px black; margin-top: 2px; padding-top: 2px">
                        <asp:HyperLink ID="lnkRegister" runat="server" NavigateUrl="~/Register.aspx" meta:resourcekey="lnkRegisterResource1">Create new account</asp:HyperLink><br />
                        <asp:HyperLink ID="lnkPasswordRecovery" runat="server" NavigateUrl="~/PasswordRecovery.aspx" meta:resourcekey="lnkPasswordRecoveryResource1">I forgot my password</asp:HyperLink>
                     </div>
                  </LayoutTemplate>
               </asp:Login>
            </AnonymousTemplate>
            <LoggedInTemplate>
            <!---------- Login box ---------------------------->
         
          
               <div id="welcomebox">
                  <asp:LoginName ID="LoginName1" runat="server" FormatString="Hello {0}" meta:resourcekey="LoginName1Resource1" /><br />
                  <small>
                  <asp:HyperLink ID="lnkProfile" runat="server" Text="Edit Profile" NavigateUrl="~/EditProfile.aspx" meta:resourcekey="lnkProfileResource1" /><br />
                  <asp:LoginStatus ID="LoginStatus1" Runat="server" meta:resourcekey="LoginStatus1Resource1" />
                  </small>
               </div>
            </LoggedInTemplate>
         </asp:LoginView>
      </div>
      <!---------- Login box ---------------------------->
    
      <!---------- Sitemap ------------------>
     <div id="breadcrumb">
            <asp:SiteMapPath ID="SiteMapPath1" runat="server" meta:resourcekey="SiteMapPath1Resource1" />
         <asp:WebPartManager ID="WebPartManager1" runat="server">
         </asp:WebPartManager>
            </div> 
     <!---------- Sitemap ------------------>
         
     <!---------- Define Edit Zone ------------------>
       <asp:EditorZone ID="EditorZone1" runat="server" Width="100%" meta:resourcekey="EditorZone1Resource1">
               <ZoneTemplate>                 
                  <asp:AppearanceEditorPart ID="AppearanceEditorPart1" runat="server" meta:resourcekey="AppearanceEditorPart1Resource1" />
                  <asp:BehaviorEditorPart ID="BehaviorEditorPart1" runat="server" meta:resourcekey="BehaviorEditorPart1Resource1" />
                  <asp:LayoutEditorPart ID="LayoutEditorPart1" runat="server" meta:resourcekey="LayoutEditorPart1Resource1" />
                  <asp:PropertyGridEditorPart ID="PropertyGridEditorPart1" runat="server" Title="Custom Properties" meta:resourcekey="PropertyGridEditorPart1Resource1" />
               </ZoneTemplate>
            </asp:EditorZone>      
      <!---------- Define Edit Zone ------------------>
           
      <!---------- Define Catalog Zone ------------------>
    
      <asp:CatalogZone ID="CatalogZone1" runat="server" meta:resourcekey="CatalogZone1Resource1" >
               <ZoneTemplate>
                  <asp:DeclarativeCatalogPart ID="DeclarativeCatalogPart1" runat="server" Title="Site Catalog" meta:resourcekey="DeclarativeCatalogPart1Resource1">
                     <WebPartsTemplate>
                      
                     </WebPartsTemplate>
                  </asp:DeclarativeCatalogPart>
                  <asp:PageCatalogPart ID="PageCatalogPart1" runat="server" Title="Local Page Catalog" meta:resourcekey="PageCatalogPart1Resource1" />
               </ZoneTemplate>
            </asp:CatalogZone>
      <!---------- Define Catalog Zone ------------------>
           
      <!---------- Create Web Parts --------------------->
       <div id="centercolcontent">
               <div style="clear: both; margin-bottom: 5px;">
                  <asp:WebPartZone ID="CenterZoneTop" Runat="server" HeaderText="Center Zone Top" Width="100%" meta:resourcekey="CenterZoneTopResource1"></asp:WebPartZone>
                 
                  <table border="0" cellpadding="2" cellspacing="0" width="100%">
                     <tr>
                        <td width="50%">
                       
                           <asp:WebPartZone ID="CenterZoneTopLeft" Runat="server" HeaderText="Center Zone Top-Left" Width="100%" meta:resourcekey="CenterZoneTopLeftResource1"></asp:WebPartZone>
                          
                        </td>
                        <td width="50%">
                       
                           <asp:WebPartZone ID="CenterZoneTopRight" Runat="server" HeaderText="Center Zone Top-Right" Width="100%" meta:resourcekey="CenterZoneTopRightResource1"></asp:WebPartZone>
                          
                        </td>
                     </tr>
                  </table>
               </div>
              
               <!---------- Create PlaceHolder for Main Content --------------------->
               <asp:ContentPlaceHolder ID="MainContent" runat="server"></asp:ContentPlaceHolder>
               <!---------- Create PlaceHolder for Main Content --------------------->
              
               <div style="clear: both; margin-top: 5px;">
                 
                  <asp:WebPartZone ID="CenterZoneBottom" Runat="server" HeaderText="Center Zone Bottom" Width="100%" meta:resourcekey="CenterZoneBottomResource1"></asp:WebPartZone>
                 
                  <table border="0" cellpadding="2" cellspacing="0" width="100%">
                     <tr>
                        <td width="50%">
                       
                           <asp:WebPartZone ID="CenterZoneBottomLeft" Runat="server" HeaderText="Center Zone Bottom-Left" Width="100%" meta:resourcekey="CenterZoneBottomLeftResource1"></asp:WebPartZone>
                       
                        </td>
                        <td width="50%">
                       
                           <asp:WebPartZone ID="CenterZoneBottomRight" Runat="server" HeaderText="Center Zone Bottom-Right" Width="100%" meta:resourcekey="CenterZoneBottomRightResource1"></asp:WebPartZone>
                      
                        </td>
                     </tr>
                  </table>
               </div>              
            </div>
        <!---------- Create Web Parts --------------------->
    
   
    </form>
</body>
</html>

 

 


Thank you!
vinz
Asp.Net User
Re: Error when I drag and drop the webpartmanager3/28/2008 1:39:19 AM

0/0

Be sure that  ASPNETDB exist under App_Data folder for you to work it out.. 


Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post fixed your problem.


2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET 2.0 All-In-One Desk Reference For Dummies: all-in-one desk reference for dummies Authors: Doug Lowe, Jeff Cogswell, Ken Cox, Pages: 910, Published: 2006
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005
Microsoft Visual C# 2005 Unleashed Authors: Kevin Hoffman, Pages: 692, Published: 2006
ASP. NET V. 2. 0-the Beta Version: The Beta Version Authors: Alex Homer, Dave Sussman, Rob Howard, Pages: 620, Published: 2004
Programming Atlas Authors: Christian Wenz, Pages: 382, Published: 2006
Programming ASP.NET AJAX Authors: Christian Wenz, Pages: 454, Published: 2007
Programmieren mit ASP.net Ajax Authors: Christian Wenz, Pages: 496, Published: 2007

Web:
AJAX WebPartManager Display Mode - telerik Forum The next div is needed for the drag/drop functionality to work. The webpart manager renders it at an odd location and we need to help it in ...
WebPartManager is Undefined On the default page I drop webpartmanager control and then create a table ... But when i publish the website and try to run....error pops up ...
Reasons to use Atlas WebPartManager and WebPartZone? - ASP.NET Forums 1) You only need Atlas WebPartManager and WebPartZone if you want to add drag-n- drop support in Firefox. 2) Atlas WebPartManager and ...
Safari Books Online - 0789736055 - Special Edition Using Microsoft ... If you add the WebPartManager after other Web Parts controls, you can drag and drop the WebPartManager to the top of the page to get rid of this error. ...
Using WebPartManager without database - ASP.NET Forums I'm trying to find a simple solution of drag & drop with C# and AJAX ... be pretyty nice but I'm getting an error when I'm trying to execute ...
What I Think About...: Ajax Web Parts Part 1 - Drag and Drop Before we can actually run this project, and get the drag and drop behaviour that .... This error occurs if you don't put the WebPartManager inside the ...
GridViewGuy ScriptManager handles the Ajax functionality like the WebPartManager. ... As what you have notice now, you can drag and drop webparts in different zones ...
What Are Web Parts? | O'Reilly Media LoadPersonalizationState(WebPartManager webPartManager, Boolean ignoreCurrentUser) +95 .... Yoy can add drag & drop functionality with Firefox using Atlas. ...
Using WebParts in ASP.Net 2.0 Feb 28, 2007 ... In Browse mode we can not drag and drop the webparts but we can see two options ..... Error shown was for single Webpartmanager control etc. ...
Creating a Simple WebPart Page and use WebServer controls as WebParts While in design view, drag and drop a WebPartManager control from the toolbox .... When i tried to use it in sps 2003 page it gave the following error: ...




Search This Site:










windows xp sp1 impersonation issue

public property accessors

validation check

default.aspx - not showing event

how can i add a online user counter in share point

regarding compiling

new forum module available

how to use data posted to another form useing streamreader

web.config warning: the element 'compilation' has invalid child element 'compilers'.

how do i add a blank solution?

can i call a client side\java script function by clicking a menu item from the menu control?

need a little help here

browser problem

newbie needs help

2.0 - good utlity for backup / restore / moving portals

master page with default form - why?

how to make time-limit trial version for our asp.net application?

get value out of datatable

------------> please help <-----------------

balancing a load due to complex component

looping through datareader from code-behind in code-front page

url modifications

menu not displaying

writing a span tag in code behind file...

encryption db connection string

naming web form items

system.net.mail.smtpexception: server does not support secure connections

problem navigating backword

locations_list.aspx error

how will 3.1 be delivered? core with or without modules?

 
All Times Are GMT