Avatar of fabson
fabson

asked on 

Error Raised When setting reportdatasource at runtime on vista

i am using vs2005 installed on windows vista home edition meaning that i am using the inbuilt asp.net development server that ships with vs2005. i was trying to set the microsoft reporting reportdatasource property at run time but i keep getting the above error [System.UnauthorizedAccessException] i have granted FULL access on the root folder of my website to ALL the users and groups available in the system. but i keep getting this error . i installed vs2005 vista service pack. no improvement. i have disabled most of the security features that was shipped with the vista on the laptop.
Dim lreportdatasource As ReportDataSource
        Dim ltad_trans_info As New Dtst_trans_viewsTableAdapters.rpt_trans_info_fileTableAdapter
        Dim ldtst_data As New Dtst_trans_views
        Dim lcls_buis_rule As New cls_bank_point_server
        Try
            Me.ReportViewer1.LocalReport.ReportPath = "~\reports\trans_information.rdlc"
            ltad_trans_info.Fill(ldtst_data.rpt_trans_info_file, lcls_buis_rule.Get_Opn_Date, lcls_buis_rule.Get_Opn_Date)
 
            lreportdatasource = New ReportDataSource("rpt_trans_info_file", ldtst_data.rpt_trans_info_file)
            ReportViewer1.LocalReport.DataSources.Add(lreportdatasource)
                  Catch ex As Exception
 
        End Try

Open in new window

ASP.NETWindows Vista

Avatar of undefined
Last Comment
ee_auto
Avatar of fabson
fabson

ASKER

Also i have set

     
in the web config file
Avatar of joinaunion
joinaunion
Flag of Canada image

Is DEP turned off?
Goto advanced system settings then under performance click settings click the Data Execution prevention tab make sure its off or set it up to allow your program to run.
Avatar of fabson
fabson

ASKER

i did not see where to turn dep off completely but i did see where i can exempt it from applying to VS2005 denv.exe and i have done that but its still giving me the same error. or maybe i dont understand what you mean by set it up to allow my program to run. i should presume your are talking about VS2005 denv.exe
Avatar of joinaunion
joinaunion
Flag of Canada image

Yes if you cant turn it off you should be able to allow your program(vs2005denv.exe)to run through it.
Goto your help and support type in dep it will lead you right to it.Click start then help and support.
Avatar of fabson
fabson

ASKER

i have done just that but its still not working
Avatar of joinaunion
joinaunion
Flag of Canada image

You can try these tools you will need to also download .net framework its on the same page.
http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=c9fb6a54-8069-4918-a6f9-e744928dfac3&displaylang=en
Avatar of fabson
fabson

ASKER

i have decided to crash my vista os and replace it with xp pro everything is now working perfectly well
Avatar of joinaunion
joinaunion
Flag of Canada image

I don,t think erasing the hard drive is the solution. Am I wrong?As far as the answers he/she got the were almost right after the post look at times.I think you just gave up and it would be better to ask for refund of points not a solution to problem.
Avatar of Vee_Mod
Vee_Mod
Flag of United States of America image

Mistaken selection on my part
ASKER CERTIFIED SOLUTION
Avatar of ee_auto
ee_auto

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASP.NET
ASP.NET

The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

128K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo