CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 2/11/2008 10:03:36 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 3 Views: 183 Favorited: 0 Favorite
4 Items, 1 Pages 1 |< << Go >> >|
tompy_nation
Asp.Net User
This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’.2/11/2008 10:03:36 AM

0

I receive following error when i add my usercontrol as a webpart to my page...

My ConnectionString looks like this:

<add name="Database" connectionString="Data Source=PC0001\NAVSERVER;Database=BaldwinPortal;Integrated Security=SSPI;Initial Catalog=BaldwinPortal;Provider=SQLOLEDB;Provider=SQLOLEDB;Trusted_Connection=yes " providerName="System.Data.SqlClient"/>

 When i remove the integrated security, so it looks now like this:

<add name="Database" connectionString="Data Source=PC0001\NAVSERVER;Database=BaldwinPortal;Initial Catalog=BaldwinPortal;Provider=SQLOLEDB;Provider=SQLOLEDB" providerName="System.Data.SqlClient"/>

 Then i receive the following error:

An unexpected error has occurred

What am i doing wrong here... i tested my usercontrols on a simple asp.net page and there they work just fine, no problems with connection but as soon as i try to use them as a webpart it just fails...

If been googling around for a few days now but i was not able to found a solution to this problem...

 


Don't forget to click "Mark as Answer" on the post that helped you.
vinz
Asp.Net User
Re: This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’.2/11/2008 3:01:51 PM

0

You need to add the security attribute when working with webparts since it allows user personalization... if you dont want to use Security=SSPI then try with Security=True 


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.


tompy_nation
Asp.Net User
Re: This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’.2/11/2008 3:32:45 PM

0

i finally got it to work Big Smile

It had something to do with my login credentials to my servers... when i was using integrated security , asp.net tried to log in with an anonymous account which my database does not allow

After changing connectionstring to:

@"Data Source=PC0001\NAVSERVER;Initial Catalog=xxx;User ID=xxx;Password=xxx";

the problems were solved


Don't forget to click "Mark as Answer" on the post that helped you.
ggilmour
Asp.Net User
Re: This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’.2/14/2008 10:53:42 PM

0

I have the same problem.  Are you saying that you have to provide a user id and password on the connection string?

That seems to defeat the purpose of windows authentication.

Any help would be appreciated. Thanks.

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


Free Download:


Web:
can't connect to SQL 2005 using data source in SharePoint Designer ... This control does not allow connection strings with the following keywords: ' Integrated Security',. 'Trusted_Connection' ...
"This control does not allow connection strings with the following ... Aug 6, 2007 ... Xun Han wrote re: "This control does not allow connection strings with the following keywords: 'Integrated Security', 'Trusted_Connection'" ...
SharePoint Blogs: SPSqlDataSource: This control does not allow ... Feb 11, 2008 ... control does not allow connection strings with the following ... with-the- following-keywords-integrated-security-trusted-connection.aspx ...
Sharepoint windowsservices This control does not allow connection ... This control does not allow connection strings with the following keywords: ' Integrated Security', 'Trusted_Connection'. - wss101 ...
UserControl security exception in the Microsoft Office SharePoint ... ... similar to the following: This control does not allow connection strings with the following keywords: 'Integrated Security', 'Trusted_Connection'.

This control does not allow connection strings with the following ... This control does not allow connection strings with the following keywords: ' Integrated Security', 'Trusted_Connection'., > ROOT > NEWSGROUP ...
Trusted_Connection - ng.asp-net-forum.security This control does not allow connection strings with the following keywords: ' Integrated Security', 'Trusted_Connection'., ...
GenericWebParts and AuthorizationFilter - ng.asp-net-forum ... The GenericWebPart Class does expose an AuthorizationFilter property but it .... this control does not allow connection strings with the following keywords: ...

Videos:
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming ...
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming ...
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming ...
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming ...
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming ...






grabbing content from another page

can the admin only controls the webparts magic

initializing personalization values from db

webpart doesn't get restored once minimized

custom provider for personalization; where do i even start?

creating new users

how often does profile auto-save its data to the database?

lock down web parts completely?

inheriting webparts and implementing dataprovider

any differences between wss 2.0 and wss 3.0 on web parts deployment?

changing the getwebpart behavior on a catalogpart

webpart manger err ..!

changing the order of the verbs

personalized files section.

load and save personalization data.

is it possible to retrive the web part for a registered member without login?

customize webpart

webparts personalization and performance

mix personalization on one page

problem with webparts

can a asp.net user control have designer for design time resizing of user control?

asp.net 2.0 web parts in action - shameless plug

igoogle like application

determining view of a page

webpart created by behind-code will call resetpersonalizationblob function.

again -- editorparts

can i use a different database for membership than role or profile?

seperate page for editing web parts

trying to remove web parts

webpart titles show up as "untitled"

   
  Privacy | Contact Us
All Times Are GMT