Sharepoint 2007 designer - sqldatasource and grid view not displaying on SP page (An unexpected error has occured)

Hi All,
I am using sharepoint designer 2007 and am trying to use a sqldatasource to populate a gridview and then display that on an .aspx page. While in designer everything seems to configure okay. I am able to test the connection and display the data
as expected from the sqldatasource within designer. Then I have the gridview control use the sqldatasource. At that point the grid (within designer) displays the headings as expected. The data that is displayed in the cells is "test data" rather
than actual data value - I'm not sure if this is normal - for example, the data values in every column / row are all equal to 'abc'. Date values are all equal to current date.
Then when I actually display the sharepoint page (via Preview in browser)  I get an error "An unexpected error has occurred".
I am using SQLExpress on my laptop as the database for the sqldatasource. I have tried both integrated (windows) and SQL authentication with the same results.
Here is the aspx code from designer:
<asp:GridView runat="server" id="GridView1" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
 <Columns>
  <asp:boundfield DataField="Case Creation Date Time" HeaderText="Case Creation Date Time" SortExpression="Case Creation Date Time">
  </asp:boundfield>
  <asp:boundfield DataField="Case #" HeaderText="Case #" SortExpression="Case #">
  </asp:boundfield>
  <asp:boundfield DataField="Source" HeaderText="Source" SortExpression="Source">
  </asp:boundfield>
  <asp:boundfield DataField="Priority" HeaderText="Priority" SortExpression="Priority">
  </asp:boundfield>
  <asp:boundfield DataField="Status" HeaderText="Status" SortExpression="Status">
  </asp:boundfield>
  <asp:boundfield DataField="Category" HeaderText="Category" SortExpression="Category">
  </asp:boundfield>
  <asp:boundfield DataField="Creator group" HeaderText="Creator group" SortExpression="Creator group">
  </asp:boundfield>
  <asp:boundfield DataField="Assigned Group" HeaderText="Assigned Group" SortExpression="Assigned Group">
  </asp:boundfield>
  <asp:boundfield DataField="Security Event Title" HeaderText="Security Event Title" SortExpression="Security Event Title">
  </asp:boundfield>
  <asp:boundfield DataField="Security Event Resolution Details" HeaderText="Security Event Resolution Details" SortExpression="Security Event Resolution Details">
  </asp:boundfield>
  <asp:boundfield DataField="SLA Achieved" HeaderText="SLA Achieved" SortExpression="SLA Achieved">
  </asp:boundfield>
  <asp:boundfield DataField="Event Reported Date Time" HeaderText="Event Reported Date Time" SortExpression="Event Reported Date Time">
  </asp:boundfield>
 </Columns>
 </asp:GridView>
 <br>
 <br>
 <br>
 <asp:SqlDataSource runat="server" id="SqlDataSource1" ProviderName="System.Data.SqlClient" ConnectionString="Data Source=WN-MNA79GY0V0JD\SQLEXPRESS;Initial Catalog=CD_OPS_DATA;Persist Security Info=True;User ID=Sharepoint_User;Password=&quot;xxxxxx&quot;"
SelectCommand="SELECT * FROM [Critical Cases] ORDER BY [Case Creation Date Time] DESC">
 </asp:SqlDataSource>
 <br>
 <br>
&nbsp;</td>
 </tr>
</table>
</asp:Content>
Any help is appreciated.
Thanks !

Thanks Daniel.
I am unable to connect to my SQL EXPRESS db on my laptop via SPD 2007: I get the error -
I am able to access that database via SQL Server Mgmt. Studio (both with Windows and SQL Server authentication). I can also access a SQL Express database on a remote server from the exact same SPD 2007 session: I get -
So, I wonder why I can connect to the remote but not the local? Anyway, if you have any ideas I would appreciate it. I am willing to do the work from the article you mention but wanted to rule out there being a simple DB access issue first.  I'll also
start to find the ULS logs and review them.
Thanks again !!
Update on 1-3-14: Hi, since yesterday I also have been able to connect to the SQLEXPRESS database / table and display the .aspx page with the gridview in Visual Studio 2010.
Update 1-26-14: Sorry for the delayed response.  I determined the reason why I could not connect to the SQLEXPRESS instance on my laptop was that there was a local host intrusion (firewall) rule on my machine that prevented an inbound connection
on port 1433.  SharePoint server >>> inbound connect on port: 1433 >>> to Laptop device, not allowed. 
Thanks.

Similar Messages

  • Getting 'an unexpected error has occurred' while editing report viewer webpart in Sharepoint webpart

    Hi All,
    I have added report viewer webpart in a page. On click of edit webpart link I am getting webpart edit toolbox. But after clicking on apply or save button, getting the following error.
    'an unexpected error has occurred' 
    If I refresh the page then report is working fine, but webpart edit settings are not getting saved.
    Please suggest.
    Thanks in advance !
    Soumya Das

    Hi  ,
    For troubleshooting your issue, please take steps as below:
    1. Open web.config file of current web application
    2. Find the node that begins
    <trust level=
    3. Change the trust level from WSS_Minimal to
    WSS_Medium
    4. Save the file
    5. Drop to command prompt and execute : 
    iisreset
    If your issue persists, please provide detail error message of ULS log  to determine the exact cause of the error?
    For SharePoint 2010, by default, ULS log is at      
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Test-OutlookConnectivity WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object.

    Hi All,
    When we do a test-outlookconnectivity -protocol:http the result is a success but then we get the following:
    ClientAccessServer   ServiceEndpoint                               Scenario                           
    Result  Latency
    (MS)
    xxxxxxxxxxxx... xxxxxxxxxxxxxx                 Autodiscover: Web service request.  Success   46.80
    WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance
     of an object.
    Object reference not set to an instance of an object.
        + CategoryInfo          : NotSpecified: (:) [Test-OutlookConnectivity], NullReferenceException
        + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
    So it looks like it's not completing successfully.
    I can't find anything on this in particular, and don't really know how to go about solving it - We are fully up to date, Exchange 2010 Sp2 with Rollup 5-v2
    Any help appreciated!

    hi,
    I have the same issue also on Exchange 2010 SP2 RU5v2
    I ran your command and get the below
    [PS] C:\Installs\report\Activesync>Test-OutlookConnectivity -Protocol:http |FL
    RunspaceId                  : ebd2c626-1634-40ad-a17e-c9a713d1a62b
    ServiceEndpoint             : autodiscover.domain.com
    Id                          : Autodiscover
    ClientAccessServer          : CAS01.domain.com
    Scenario                    : Autodiscover: Web service request.
    ScenarioDescription         :
    PerformanceCounterName      :
    Result                      : Success
    Error                       :
    UserName                    : Gazpromuk.intra\extest_645e41faa55f4
    StartTime                   : 8/21/2013 4:08:50 PM
    Latency                     : 00:00:00.1250048
    EventType                   : Success
    LatencyInMillisecondsString : 125.00
    Identity                    :
    IsValid                     : True
    WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object.
    Object reference not set to an instance of an object.
        + CategoryInfo          : NotSpecified: (:) [Test-OutlookConnectivity], NullReferenceException
        + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
     Any help would be greatly appreciated, I also get random failures of OWA, EAS and web services, very frustrating
    I have no errors in the app event log
    thanks
    Faisal Saleem Windows Systems Analyst 07595781867

  • What can i do to sort my ipod touch 4th gen, when ever i connect it to my laptop my itunes keeps saying, and i quote "itunes could not connect to this ipod, an unknown error has occured" please helpppppp i have not had my ipod for long either

    what can i do to sort my ipod touch 4th gen, when ever i connect it to my laptop my itunes keeps saying, and i quote "itunes could not connect to this ipod, an unknown error has occured" please helpppppp i have not had my ipod for long either

    - Try restoring on another computer.
    -  Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • I get "An unexpected error has occurred" whenever I try to create item in a list or view site permission page

    I am working a SharePoint site with a custom masterpage and css. Everything displays just fine and the site functions with several subsites, and so forth. I have double-checked to ensure that important content placeholders were on the new masterpage, even
    if they were "hidden" from view.
    However, a new issue came up this week: I was moved from a contributor to a designer list so that I could convert word files in a doc library in web pages. When that change happened, I lost the ability to select "add new items" to lists or add
    events to calendars. [not sure if causation, or just correlation] On a similar note, no one--not even those with higher permissions levels than me---can access the "site permissions" page in browser now (not sure if this coincides with my issue over
    the lists/calendars, but in both cases the notification "an unexpected error has occurred" comes up).
    I temporarily switched a subsite to the default masterpage, and lists and site permissions page functioned fine--no error. Therefore, it appears as though something in the custom masterpage (or embedded css?) is causing this error to come up. But what could
    it be? 
    I ran across a forum question that mentioned a bug related to alternative css:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/53151269-dd61-4c71-8263-c1880450a1bb/sharepoint-2010-unable-to-access-site-settings-site-permissions-from-a-site-created-from-a-template Solutions
    said to check the correlation ID and use powershell. The guy in my department who checked the correlation ID said that nothing useful came up, and I got the impression that the powershell solution didn't work out for him either (I don't work on that side of
    things; I am on the design side). 
    So, does anyone have any idea what the problem could be? Again, I have checked and double-checked those content placeholders in my custom masterpage - they are all there. I built the site using one of Randy Drisgill's masterpage templates.
    Up until this point, I haven't had any issues with the template, my custom code, etc. 

    I am having the same issue, was this ever resolved?

  • Struggling to figure out reasons behind those "An unexpected error has occurred" messages in SharePoint 2010

    We are in day 5 of using SP 2010 on our 4 server farm. The farm was created by taking our MOSS 2007 databases and attaching to our database.
    We have had a variety of cases of users encountering the "An unexpected error has occurred". In perhaps 10% of the cases, we have found the correlation id in the logs - which are tracing using the default logging levels.
    We have used the Merge-SPLogFile and get-splogeven cmdlets but get no records returned for the others.
    They are not occurring frequently. But when they do, we don't have a lot to go on to figure out what is wrong.
    I have read various other threads on the site. I have looked in all of the 14 hive logs on all 4 servers (which should not be necessary after having used merge-splogfile) but do not find the correlation anywhere. I have used uls viewer - still do not find
    it.
    This is a production system where users are making use of the system 24x7. I need to find things to try that do not take down the system.
    Is there any way that increasing the verbosity of the logging might be requried so we can see these errors?

    It truly depends on the error that occurs, but I would say that increasing your logging level would be the first place to start.
    BE AWARE... Setting logging levels to Verbose WILL fill up drive space very quickly, so if your servers don't have much free drive space, you run the risk of crashing the server when it runs out of space... in the very least, server performance will grind
    to very poor levels.
    If you're not finding the correlation IDs, then upping the level might be the only way to get the messages.  The best approach is to try and find a recreatable scenario.  If you can recreate the error through UI actions, you can up logging levels
    on an App server (to avoid impact on end users) and point directly to that App server (using HOSTS entries) in order to recreate the error.  Once you've recreated the error, you can restore normal logging levels on the server again and then proceed to
    parse the logs using ULSViewer in order to find the target correlation ID.
    I trust that answers your question...
    Thanks
    C
    http://blog.cjvandyk.com |
    LinkedIn | Facebook |
    Twitter | Quix Utilities for SharePoint |
    SharePoint Admin Nav Console (SPANC)

  • Photoshop CC 2014 - The file can not be saved in path because an error has occurred

    Hello,
    I need again help regarding this issue. Sometimes but very often I receive an error, trying to save a PSD file, the error is: "The file can not be saved in <path> because an error has occurred". After that it is not possible to save the file in any format, using save or save in dialog. The only way to rescue the result is, to save for web as an jpeg. This error occours often using Topaz or NIK filter and until now only in PS-CC 2014. My workflow looks like this:
    - Open NEF RAW file in Brdige
    - Settings in ACR and give it into PS by clicking OK in ACR
    - In PS doing a adjust some levels
    - press SHIFT+STRG+ALT+E for a new summary layer
    - Uing Topaz Adjust on the new level with 65% opacity
    - press SHIFT+STRG+ALT+E for a new summary layer
    - Using Topaz DeNoise on the new layer
    - pres STRG+i and resize the image to 1200x797
    - Using Topaz InFocus on the same layer as DeNoise
    - create a vignette with brightness adjustlayer
    After this workflow in nearly 90% it is not possible to save the file as PSD or something else, only to save for web as JPG. If I save the file after opening the RAW in PS and after every layer with Topaz Filter, I can save the file when I am done. Same issue occurs using NIK Filters in that way.
    I tried to optimize the performance by using this guide: http://helpx.adobe.com/photoshop/kb/optimize-performance-photoshop-cs4-cs5.html doesn’t solve the issue.
    I re- and installed all Adobe Products more than three times, doesn't solve the issu.
    After that I ordered a new SSD drive and insall Windows 7 64bit inkl. All latest hotfixes, patches and drivers. I downloaded the newest Adobe Versions and the newest filter sets from Topaz and NIK. Doesn’t solve the issue.
    This is my rig:
    Gigabyte Z87X-UD4H mainboard
    Intel Core i7 4770k
    32GB Corsair RAM
    250GB Samsung 840 Evo SSD Drive
    nVidia Geforce GTX770
    During my tests I took the same RAW File and created nearly 20 adjustment layers and summary layers, without using Topaz or NIK filters. No problem, I was able to save the file as PSD file. 
    From my point of view, actually, the error occurs only when I am using Topaz or NIK filters. Both supports doesn’t know the issue and if I search the web, I can’t find more then me. It seemed to depend on my settings, my rig or something else, perhaps a cache is overflowed or something like this. Adobe telephone support can’t help because I said I use a third party filter. But it occurs with two different manufactures…
    So please guys, help me to figure out why this error occurs in my system.
    Thanks in Advance and best regards,
      Michael

    Update: I tried several times to reproduce the error, actually it dosen't occur. I changed nothing on my system, without reboot it twice. This is what I said in my beginning times: it occurs sometimes but often. I will keep you up to date.

  • Error An unexpected error has occurred. Troubleshoot issues with Microsoft SharePoint Foundation. Correlation ID: 65ef1cb8-1cbf-40ee-b79b-05db15ca6dbb

    Hi, 
    Since I installed a few updates, that I can't access the sharepoint the same way. I always get errors when trying to access the majority of the pages.
    I already removed the update suggested on other threads (KB2844286), but everything remains the same.
    I always receive errors like this one:
    Error
    An unexpected error has occurred.
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: 65ef1cb8-1cbf-40ee-b79b-05db15ca6dbb
    what can I do? The Sharepoint 2010 is located on a virtual partition of our server, running Windows Server 2008 Standard edition SP1.
    When I try to access administration tools it happens the same error, and I don't know what I can do more. 
    Please help me.
    best regards,
    Jorge Guimarães

    I followed some tips, to trace the error, allowing some trace debug, and got this:
    Server Error in '/' Application.
    Object reference not set to an instance of an object.
    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. 
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
    Source Error: 
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace: 
    [NullReferenceException: Object reference not set to an instance of an object.]
    Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties() +134
    Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_PartitionIDs() +44
    Microsoft.Office.Server.Administration.UserProfileApplicationProxy.IsAvailable(SPServiceContext serviceContext) +329
    Microsoft.Office.Server.WebControls.MyLinksRibbon.get_PortalAvailable() +44
    Microsoft.Office.Server.WebControls.MyLinksRibbon.EnsureMySiteUrls() +60
    Microsoft.Office.Server.WebControls.MyLinksRibbon.get_PortalMySiteUrlAvailable() +15
    Microsoft.Office.Server.WebControls.MyLinksRibbon.OnLoad(EventArgs e) +91
    System.Web.UI.Control.LoadRecursive() +65
    System.Web.UI.Control.LoadRecursive() +190
    System.Web.UI.Control.LoadRecursive() +190
    System.Web.UI.Control.LoadRecursive() +190
    System.Web.UI.Control.LoadRecursive() +190
    System.Web.UI.Control.LoadRecursive() +190
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427
    Version Information: Microsoft .NET Framework Version:2.0.50727.5477; ASP.NET Version:2.0.50727.5479

  • SharePoint 2013 - In document library, an unexpected error has occurred when a user clicks on ellipsis then "EDIT"

    Just as the title infers, I have a user who is experiencing an unexpected error when he clicks on "EDIT" after clicking on the ellipsis. Document in the Document library is an MS Word file.

    Hi,
    According to your post, my understanding is that an unexpected error has occurred when a user clicks on ellipsis then "EDIT".
    Please make sure he has the edit permission.
    Please make sure the Office 2013 is installed correctly on his computer.
    In addition, I recommend to use another brower to check whether it works.
    If so and the error message persists, please check the SharePoint ULS log to find more information about this error, the ULS
    log file is in the location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    You can check the ULS log by the methods here:
    http://blog.credera.com/technology-insights/microsoft-solutions/troubleshooting-sharepoint-errors/
    More information:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • When i try to connect my iphone to itunes it comes up with a message saying "itunes could not connect to this iphone, an unknown error has occured (0xE8000012) any ideas on how to deal with this problem??

    When i try to connect my iphone to itunes it comes up with a message saying "itunes could not connect to this iphone, an unknown error has occured (0xE8000012)
    i have recently bought  new laptop and downloaded/installed the newest itunes and this has happened.. any ideas?

    read
    Error -50
    Delete Storm Video, QuickTime, iTunes, then reinstall iTunes. See also KB TS1583for error -50

  • I transfered my iWork '09 to my new Mac Air. Now my Keynote won't open. I get message, "An unexpected error has occurred, please quit and reopen Keynote." This doesn't work.

    I transfered my iWork '09 to my new Mac Air. Now my Keynote won't open. I get message, "An unexpected error has occurred, please quit and reopen Keynote." This doesn't work.

    so Keynote still isnt working after installing, I thought you had it sorted from your last post.
    If you have not done so remove any files relating to iWork and Keynote and reinstall iWork
    files that must go are:
    the iWork ’09 folder from the main HD > Applications;
    the iWork ’09 folder in HD > Library > Application Support
    the individual iWork application plist files found in HD > Users > (your account) > Library >
    There are a number of free application removal tools  that will do this for you:
    trashme       webpage
    apptrap        webpage
    appcleaner   webpage

  • IN FB Mafia Wars getting this message Unexpected Error has occurred. Requested URL not found: 400 What do I do?

    These errors only appear on my laptops. Running FBMW Add Ons with grease money on 1 laptop , and the other laptop does not have these installed. The problem started 3 days ago.
    From Firefox Error Console:
    Warning: Error in parsing value for 'background-image'. Declaration dropped.
    Source File: https://support.mozilla.com/en-US/questions/new?product=beta&category=b2&search=IN+FB+Mafia+Wars+getting+this+message+++Unexpected+Error+has+occurred.+++Requested+URL+not+found%3A++400+++What+do+I+do%3F&showform=1
    Line: 0
    These types of errors appear whenever I try doing any new actions in Mafia Wars.

    Hello everyone with AVG, I have the simple solution. 1) Open your AVG Antivirus File 2) Under Tools, Open Advance Settings 3) On the left side, Click on LinkScanner 4) On the Box on the right-hand side... Unclick "ENABLE SURF-SHIELD" Click OK on the bottom of the page. PROBLEM FIXED

  • I am trying to watch a movie that I rened on itues but I keep getting an error msg " we could not complete your itunes request an unknown error has occured (-42110)

    I am trying to watch a movie that I rened on itues but I keep getting an error msg " we could not complete your itunes request an unknown error has occured (-42110)

    See the "Error 3001,"  "-42110," or "5103" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • Why is the link to my form getting this message?  I copied the link right from the page.  An error has occurred. The form does not exist. Please re-enter the web address as the link may be misspelled. [ref: cixTdh4JnkymYgz7awKoQ, BadRequest]

    Why is the link to my form getting this message?  I copied the link right from the page.  An error has occurred. The form does not exist. Please re-enter the web address as the link may be misspelled. [ref: cixTdh4JnkymYgz7awKoQ, BadRequest]

    My form - which was working great - disappeared when I did some editing; here is the message I get now.
    The form does not exist. Please re-enter the web address as the link may be misspelled.
    The link for the form is:
    https://adobeformscentral.com/?f=UqJr%2Aas2RJIHPVA4iGIQ6w
    Please look into the matter and resolve the issue at the earliest.
    Regards,
    Vaibhav Nigam

  • I cant open Photos om my mac. Just upgraded to Yosemite. The message I get is: An unexpected error has occurred. Please quit and restart the application. I have done this several times but nothing seems to work. iPhoto is gone. What do I do?

    I just upgraded to Yosemite on my mac from 2010. Everything seems to work, accept Photos. When I try to open it i push the "Get started" button, then the picture with "Preparing Library" comes up. Then a message appears with the text "An unexpected error has occurred. Please quit and restart the application." I have done this several times, but nothing happens. What do I do?

    I just upgraded to Yosemite on my mac from 2010. Everything seems to work, accept Photos. When I try to open it i push the "Get started" button, then the picture with "Preparing Library" comes up. Then a message appears with the text "An unexpected error has occurred. Please quit and restart the application." I have done this several times, but nothing happens. What do I do?

Maybe you are looking for

  • Disk Utitlity has "Lost Connection" with Disk Management tool"

    [ Edited by Apple Discussions Moderator; please start a new topic about your technical issue. ] Running OSX10.3.8 I installed: "iTunes" (6.0.2) "iPod Updater 2005-11-17" ((null)) "iChat Update" (2.1) Went to repair disk permissions I get this error:

  • Foreign Trade: Balance of payment report for Belgium RFIDITSR00

    Hi, I have done customizing settings for the balance of payment report of Belgium (report RFIDITSR00) according to OSS note 928316. When I want to create a file with file name "ITSR_BE_BOP2006" and extension CSV, I get following message: Format tree

  • Agent desktop login error line error

    I have a 7941 and Soft IP phone with same ext 1100. I changed the 7941 DN to 1199. Now my agent can not log on to the softphone 1100 it shows line error. The problem I had is when she was at her desk both phones would ring. She only logs into softpho

  • ServletInputStream

    Hi, I am facing a strange problem... In one of my applications I am using Read method of ServletInputStream to read the byte data input passsed as HTTP Post request to a servlet. The request is passed from a VB component. The data passed is an image

  • Preloading each slide individually

    Hi I've seen many posts about the large file sizesof an exported presentation - I am having the same trouble, 24 slides imported from powerpoint, with an audio track for each one. The slideshow itself isn't so bad, but the audio tracks for each (even