473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem with webpartmanager..

37
Hi All,

I am trying to use webpart in my page for that i am putting webpartmanager and webpartzone.

but as soon as i am putting webpartmanger in the page it is giving me below error, let me tell you i have installed Sql server 2005 on my machine.

after installing the Sql server 2005 it has started giving me this error. if i remove webpartmanage from the page then it works fine.

and i am not making any database connection then also it is giving this error.

below is the error :

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.

Is anybody has faced same problem before.

Thanks for your help.

john
Oct 28 '08 #1
1 2503
Frinavale
9,735 Expert Mod 8TB
What have you tried so far to solve your solution?
Have you followed any of the instructions outlined in that detailed error message?
Have you checked that your SQL Server allows remote connections to it?

Check any Connection Strings that the WebPartManager is administrating...



-Frinny
Oct 28 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: CBretana | last post by:
Is it possible to programmatically control the WebPartManager without being on a web page? I need to write a C# console app that will cycle through a set of objects and for each one, generate (for...
0
by: Herman verschooten | last post by:
Hi, I am creating my first real ASP.NET 2.0 site and want to use the some of the new features. I created a masterpage with my main layout and added several contentpages, no problem so far. I...
3
by: SlimFlem | last post by:
I am new to the WebPartManager stuff and am still learning how to set this up properly. I am creating instances of WebPart classes from loaded DLLs and add them to the Page's WebPartManager. If I...
9
by: SlimFlem | last post by:
Is this possible? My entire web site is being built dynamically using WebPart's and a lot of it will be anonymous. How do I load these parts dynamically using WebPartManager.AddWebPart() and not...
1
by: Andrzej J. Turowicz | last post by:
I create new WebSite named UseWebPart ( sample from Ms Press Book) next steps: Add WebPartManagerIO , WebPartZone, EditorZone & CatalogZone, etc etc etc if i am running this sample under...
1
by: Prashant Majhwar | last post by:
I have created sample web Application. On the default page I drop webpartmanager control and then create a table and place webpartzones. Now when i am running it in development mode ...everything...
0
by: milmus tender | last post by:
Hi, I hope, that I post in the right newsgroup. Please tell me if not. I use the WebPartManager technology of ASP.NET 2.0 without sharepoint. I want to set per server side code a webpart as...
0
by: ryan.mclean | last post by:
Hi all, I am dynamically making the connection between two webparts when the consumer is added like so: Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
1
by: Jurjen de Groot | last post by:
Hi, I've been reading a book about webparts and am now trying some of the examples from the book, but I crash on the first, most simple (following) example : I create a new website in VS2005...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.