Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. VS 2010 - sqlexpress - connection string in wcf service

VS 2010 - sqlexpress - connection string in wcf service

Scheduled Pinned Locked Moved Visual Basic
csharphelpdatabasevisual-studiowcf
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nlarson11
    wrote on last edited by
    #1

    Hello, (know this isn't directly related to vb but didn't know which forum to ask so any help would be appreciated) I am getting an error from IIS AppPool when attempting to call a WCF service which accesses a table in sqlexpress that's local to my PC. Using server explorer, I can access the table just fine and took the connection string right from server explorer and plugged it into the connection string area of the web.config. What do I need to do with IIS to allow it? ConnString-> Data Source=xxxxxxxx\SQLEXPRESS;Initial Catalog=GBUtilities;Integrated Security=True" The Error is (also used default app pool - doesn't matter): System.Data.SqlClient.SqlException was unhandled by user code Class=11 ErrorCode=-2146232060 LineNumber=65536 Message=Cannot open database "GBUtilities" requested by the login. The login failed. Login failed for user 'IIS APPPOOL\Classic .NET AppPool'. Number=4060 Procedure="" Server=xxxxxxxx\SQLEXPRESS Source=.Net SqlClient Data Provider State=1 StackTrace: at UtilMgr.GetMenuItems() in C:\inetpub\wwwroot\GB.Utilities.WS\App_Code\UtilMgr.vb:line 18 at SyncInvokeGetMenuItems(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) InnerException: thank you Nathan

    'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous 'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous

    J 1 Reply Last reply
    0
    • N nlarson11

      Hello, (know this isn't directly related to vb but didn't know which forum to ask so any help would be appreciated) I am getting an error from IIS AppPool when attempting to call a WCF service which accesses a table in sqlexpress that's local to my PC. Using server explorer, I can access the table just fine and took the connection string right from server explorer and plugged it into the connection string area of the web.config. What do I need to do with IIS to allow it? ConnString-> Data Source=xxxxxxxx\SQLEXPRESS;Initial Catalog=GBUtilities;Integrated Security=True" The Error is (also used default app pool - doesn't matter): System.Data.SqlClient.SqlException was unhandled by user code Class=11 ErrorCode=-2146232060 LineNumber=65536 Message=Cannot open database "GBUtilities" requested by the login. The login failed. Login failed for user 'IIS APPPOOL\Classic .NET AppPool'. Number=4060 Procedure="" Server=xxxxxxxx\SQLEXPRESS Source=.Net SqlClient Data Provider State=1 StackTrace: at UtilMgr.GetMenuItems() in C:\inetpub\wwwroot\GB.Utilities.WS\App_Code\UtilMgr.vb:line 18 at SyncInvokeGetMenuItems(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) InnerException: thank you Nathan

      'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous 'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous

      J Offline
      J Offline
      Johan Hakkesteegt
      wrote on last edited by
      #2

      In the connection string, try replacing Integrated Security=True with Uid=[user];Pwd=[password]

      My advice is free, and you may get what you paid for.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups