Error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed
SharePoint 2010 -
I have created a console utility that further calls the stsadm.exe to Export sites from one site collection in a DB to another site collection in another DB of the same web application.
Export works fine. But during Import, I get the following errors
[ListItem] [Admin] Progress: Importing
[ListItem] [Admin] Verbose: List URL: /pwa1/GTR/7 GTR Programme
[ListItem] [Hol plans.xls] Progress: Importing
[ListItem] [Hol plans.xls] Verbose: List URL: /pwa1/GTR/7 GTR Programme
[ListItem] [Time.doc] Progress: Importing
[ListItem] [Time.doc] Verbose: List URL: /pwa1/GTR/7 GTR Programme
[ListItem] [AP Docs] Progress: Importing
[ListItem] [AP Docs] Verbose: List URL: /pwa1/GTR/7 GTR Programme
[ListItem] [Update - June 27th.pdf] Progress: Importing
[ListItem] [Update - June 27th.pdf] Verbose: List URL: /pwa1/GTR/7 GTR Programme
[ListItem] [Update - June 27th.pdf] Error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
[ListItem] [Update - June 27th.pdf] Error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
[ListItem] [Update - June 27th.pdf] Error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
FatalError: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Progress: Import did not complete.
1. Does the console application treated as a Sandbox Solution?
2. Do I need to configure CAS policy in wss_usercode.config? and what?
3. What else could be configured to make this work?
I have tried adding the following in wss_custom_minimaltrust.config but no avail.
<SecurityClass Name="SqlClientPermission" Description="System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
and
<PermissionSet
class="NamedPermissionSet"
version="1"
Name="SPRestricted">
<IPermission
class="SqlClientPermission"
version="1"
Unrestricted="true"
/>
<!-- Other IPermission -->
</PermissionSet>
UPDATE: It has been observed that the issue is intermittent. That is, sometimes the import works fine (event without any configuration of SqlClientPermission in any config file) but sometimes it gives the above error. I'm stuck!
Regards, Amit Gupta
Hi,
According to your post, my understanding is that you get Error “Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed
Simple solution is to change the trust the trust level to FULL: <trust level="[Full]" originUrl="URL" />
In addition, you can modify the wss_mediumtrust.config and wss_minimaltrust.config file under the path “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG”.
For more information, you can refer to:
http://blogs.msdn.com/b/navdeepm/archive/2010/02/19/system-security-securityexception-request-for-the-permission-of-type-system-data-sqlclient-sqlclientpermission-system-data-version-2-0-0-0-culture-neutral-publickeytoken-b77a5c561934e089-failed.aspx
http://www.fewlines4biju.com/2011/01/request-for-permission-of-type_18.html
http://techsolutions-at-desk.blogspot.com/2011/08/request-for-permission-of-type.html
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support
Similar Messages
-
Hi Friends,
Request for the permission of type System.Data.SqlClient.SqlClientPermission System.Data Version 1.0.5000.0 Culture neutral .This error is recieving when ever i tried to use the sql connection (with Visual
studio C#) in sharepoint portal installed application.
Please help me if any answers for the issue.Hi,
Open wss_mediumtrust.config & wss_minimaltrust.config. SharePoint 2013(C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\config\).
Find in wss_mediumtrust.config:
<SecurityClass
Name="SqlClientPermission"
Description="System.Data.SqlClient.SqlClientPermis sion, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
Copy and paste it in to the <SecurityClasses> node of wss_minimaltrust.config.
In the PermissionSet section of this configuration file, add the following:
Find in wss_mediumtrust.config:
<IPermission class="SqlClientPermission" version="1" Unrestricted="true"/>
Copy and paste it in to the a <PermissionSet> node of wss_minimaltrust.config.
Here is a similar thread for your reference:
https://social.msdn.microsoft.com/Forums/en-US/a1c8f2bf-2575-40b4-87f1-4f98462b3234/request-for-the-permission-of-type-systemdatasqlclientsqlclientpermission-systemdata-version?forum=tfssetup
Best Regards
Dennis Guo
TechNet Community Support -
Hi,
I am facing an issue when I deploy the application to Azure. Not sure what's causing the issue, It runs fine when debugged locally.
XmlSerializer s = new XmlSerializer(typeof(List<SomeClass>));
Below exception is thrown :
Could not load file or assembly 'mscorlib.XmlSerializers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException
I have set to "CopyToLocal = True" for System.Xml dll in the references, this does not fix the issue. The application and all its required projects are running under .NET 4.5.
Anybody faced this issue earlier ? Appreciate any help.
Thanks.I'm guessing now. but:
The system might be generating a serializer for the whole of mscorlib, which could be very slow.
You could probably avoid this by wrapping the system type in your own type and serialising that instead - then you'd get a serializer for your own assembly.
You might be able to build the serializer for mscorlib with sgen.exe, which was the old way of building serializer dlls before it got integrated into VS.
Davide 'n3wt0n' Benvegnù
If you found my answer helpful, please vote it.
If you think that my answer resolve your issue, plase "Mark it as answer". -
I get the following exception when trying to send a message, this is happening in the orchestration while sending the message, can anyone help.
------------------------------------------Exception-----------------------------------------------------------------
Exception occurred. Exception Description:Type 'System.Xml.XmlNode' in Assembly 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.. at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType
type)
at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, SerializationBinder
binder)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, SerializationBinder
binder)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteArray(WriteObjectInfo objectInfo, NameInfo memberNameInfo, WriteObjectInfo memberObjectInfo)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
at Microsoft.XLANGs.Core.ObjectSerializer._serialize(Object graph, StringLookup sl)
at Microsoft.XLANGs.Core.ObjectSerializer.SerializeStateManager(IStateManager stateMgr, StringLookup lookup)
at Microsoft.XLANGs.Core.Service.Persist(Boolean dehydrate, Context ctx, Boolean idleRequired, Boolean finalPersist, Boolean bypassCommit, Boolean terminate)
at Microsoft.XLANGs.Core.ServiceContext.PendingCommit(Boolean ignore, XMessage msg)
at Microsoft.XLANGs.Core.ExceptionHandlingContext.PendingCommit(Boolean ignoreCommit, XMessage msg)
at Microsoft.XLANGs.Core.ExceptionHandlingContext.PendingCommit(Boolean ignoreCommit, XMessage msg)
at Microsoft.XLANGs.Core.ServiceContext.PendingCommit(Boolean ignore, XMessage msg)
at Microsoft.XLANGs.Core.ExceptionHandlingContext.PendingCommit(Boolean ignoreCommit, XMessage msg)
at Microsoft.XLANGs.Core.ServiceContext.PendingCommit(Boolean ignore, XMessage msg)
at Microsoft.XLANGs.Core.ExceptionHandlingContext.PendingCommit(Boolean ignoreCommit, XMessage msg)
at Microsoft.XLANGs.Core.ServiceContext.PendingCommit(Boolean ignore, XMessage msg)
at Microsoft.XLANGs.Core.ExceptionHandlingContext.PendingCommit(Boolean ignoreCommit, XMessage msg)
at Microsoft.XLANGs.Core.ExceptionHandlingContext.PendingCommit(Boolean ignoreCommit, XMessage msg)
at Microsoft.XLANGs.Core.ExceptionHandlingContext.PendingCommit(Boolean ignoreCommit, XMessage msg)
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXPortBase.SendMessage(Int32 iOperation, XLANGMessage msg, Correlation[] initCorrelations, Correlation[] followCorrelations, SubscriptionWrapper& subscriptionWrapper, Context cxt, Segment seg, ActivityFlags
flags)
at Microsoft.XLANGs.Core.PortBase.SendMessage(Int32 iOperation, XLANGMessage msg, Correlation[] initCorrelations, Correlation[] followCorrelations, SubscriptionWrapper& subscriptionWrapper, Context cxt, Segment seg)
at MyOrchestrationNamesegment3(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)Hi Madhu,
Lets be clear here. If the first message is different to the second one, then the second message could be a non-serializable message. So we can't consider working of first message as proof to prove it would also work for send message.
If this orchestration is working for a while and failed all in sudden, then we need to investigate why? See how do you construct the second message. Trace the orchestration and see what's been sent/created for second message. Check whether the second message
is a valid XMLDocument. Also as said before, try to make the shape into an atomic scope and see whether it makes any difference.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
Dear All,
I have installed Sharepoint Foundation 2010 in my server 2012 R2 machine. and I restore my existing content database backup into new site collections. and I'm trying to browse the site collection in window, the below error shown..
Parser Error
Message: Could not load file or assembly 'Microsoft.Office.Access.Server.UI, Version=14.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies.
<add assembly="Microsoft.Office.Access.Server.UI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
I tried to checked the assembly folder having the DLL or not. but its
not available in the C:\Windows\assembly location. and I'm tried to resolved this issue by HOTFIX. but unfortunately, I can't find out the patch file for MOSF 2010 in server 2012 r2.
Please help me on this issue. I'm very new to sharepoint...
Any help will be more appreciated.
Thanks,
MubarakHi Mubarak,
Please firstly make sure you installed SharePoint Foundation 2010 with SP2 in a Windows Server 2012 R2. Since only SP2 slipstream installations are supported on Windows Server 2012 R2
http://blogs.technet.com/b/stefan_gossner/archive/2014/05/03/sharepoint-2010-sp2-and-windows-server-2012-r2.aspx
http://blogs.technet.com/b/stefan_gossner/archive/2013/09/19/slipstream-version-of-sharepoint-foundation-2010-with-sp2-included.aspx
Regards,
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 31: <compilation debug="true">
Line 32: <assemblies>
Line 33: <add assembly="Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89B483F429C47342" />
Line 34: <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
Line 35: <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Source File: D:\AverySignatureBinders\httpsdocs\ASBNet\web.config Line: 33
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].For Adapter Pack 2013 the following Oracle Client(s) are needed:
Supported client versions: Oracle Data Access Components for Oracle Client 12.1, Oracle Data Access Components for Oracle Client 11.2.0.1
And please bear in mind that both the 32- and 64 bit versions are needed.
Morten la Cour -
I created one adobe plugins to work from Adobe Reader/Acrobat using Adobe Acrobat SDK and that was built on .net 3.5 version. On conversion of .net framework version from v3.5 to v4.5, we are now getting error while the Adobe Reader/Acrobat is starting and plugins are not working. While making the log we found following exception:
System.IO.FileLoadException: Could not load file or assembly 'System.ServiceModel.Internals, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
File name: 'System.ServiceModel.Internals, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at System.ServiceModel.Channels.Binding.set_ReceiveTimeout(TimeSpan value)
at MyClass.Connect()
=== Pre-bind state information ===
LOG: User = domainname\username
LOG: DisplayName = System.ServiceModel.Internals, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/Adobe/Reader 11.0/Reader/
LOG: Initial PrivatePath = NULL
Calling assembly : System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Binding succeeds. Returns assembly from C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31 bf3856ad364e35\System.ServiceModel.Internals.dll.
LOG: Assembly is loaded in default load context.
The C# code is written as follows:
EndpointAddress endpoint = new EndpointAddress("net.pipe://localhost/MyApp/");
NetNamedPipeBinding binding = new NetNamedPipeBinding(NetNamedPipeSecurityMode.None);
binding.ReceiveTimeout = TimeSpan.MaxValue;
IAcroServer cserver = ChannelFactory<IAcroServer>.CreateChannel(binding, endpoint);
Can anyone help me to find the reason and resolution of the problem I am facing. Thanks in advance.Yes plugin is written using C++ and that plugin is connecting with MyApp. Previously the plugin was working fine while the connection WCF service was in .net version 3.5 but on change of .net version to v4.5 is throwing the exception. This wcf service developed on C#.
-
Hello,
I have a problem with displaying a report that
contains graphics from the Reporting Services Web
site.
This problem only occurs when I display
a page that contains a chart.
The other pages are displayed perfectly.
The error is as follows:
An error occurred During rendering
of the report.
An error occurred During rendering
of the report.
Could not load file or assembly
'DundasWebChart, Version =
9.0.242.0, Culture = neutral,
PublicKeyToken = 89845dcd8080cc91' or
one of its dependencies.
The system can not find the file specified.
It seems that the problem comes from
"DundasWebChart", but
do not know the solution.
In the Visual Basic solution perfectly
the graphics displayed on every page.
can someone please help me.
thank you very muchPreviously everything worked fine,
but in recent days has stopped working.
When I generate a report from
Reporting Services web browser, generates
the report but when accessing a page containing chart graphics I get the following
error:
An error occurred During rendering
of the report.
An error occurred During rendering
of the report.
Could not load file or assembly
'DundasWebChart, Version =
9.0.242.0, Culture = neutral,
PublicKeyToken = 89845dcd8080cc91' or
one of its dependencies.
The system can not find the file specified. -
I started getting this error message for the first time today. When I look in the event log I see it every time anyone tries to sync to a mobile device to the exchange server. I've also had this problem trying to connect using
Outlook. I believe it is an IIS issue but I'm not absolutely sure so I'm posting this in the Exchange forum as well.
The event viewer has the following information...
3008
A configuration error has occurred.
5/1/2014 10:41:08 PM
5/2/2014 5:41:08 AM
7539d8a38c8b47869eda3f1749aba08d
1
1
0
/LM/W3SVC/1/ROOT/Microsoft-Server-ActiveSync-75-130434828686436855
Full
/Microsoft-Server-ActiveSync
C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\sync\
SERVER
16284
w3wp.exe
NT AUTHORITY\SYSTEM
ConfigurationErrorsException
Could not load file or assembly 'System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
https://remote.testserver.com:443/Microsoft-Server-ActiveSync/default.eas?User=user.name&DeviceId=ApplC39GQ5xxxxxx&DeviceType=iPhone&Cmd=Ping
/Microsoft-Server-ActiveSync/default.eas
174.224.130.31
False
NT AUTHORITY\SYSTEM
24
NT AUTHORITY\SYSTEM
False
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) at System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) at System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) at System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
I have tried most, if not all, of the different post's suggestions to no avail.
The steps I have taken are as follows...
1. Repaired .Net 4 (Both the client and extended)
2. Uninstalled and reinstalled .Net Framework 4.0.
3. Verified that the dll exists.
4. Checked the applicationHost.config file. It contains the follow statement...
<add name="ServiceModel-4.0" type="System.ServiceModel.Activation.ServiceHttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler,runtimeVersionv2.0"
/>
5. Changed the following line in web.config to include the runtimeVersion...
<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler,runtimeVersionv2.0" />
6. Executed aspnet_regiis.exe -iru from the ...\Framework64\v4.0.30319 directory.
7. Went to inetpub\history to use an applicationHost.config file from yesterday but it only has history from 9PM tonight. It probably had what I needed before I started changing it tonight.
I still receive the same error message.
Like I said everything was working yesterday. In fact I didn't hear or see any issue until after 1PM today.
Any help would be very appreciated!Hi,
Please confirm whether users can access their mailboxes from Outlook Web Access or not. We can do the following changes to have a try:
1. In IIS > Application Pools, change the .NET Framework Version to v2.0 and restart IIS service.
2. If it doesn’t work, explore the Default Web site.
3. Renamed the web.config file to web.config.old
4. Reset IIS using iisreset command to have a try.
Thanks,
Winnie Liang
TechNet Community Support -
Hi All,
I am using Virtual box to connect to Sharepoint 2013 VPC. Due to an unexpected sutdown of my machine the VPC got some issue. Now I restored it using my bak up file. But after this when I deploy my sharepoint 2013 farm solution Iam getting the following error.
Error occurred in deployment step 'Recycle IIS Application Pool': Could not load file or assembly 'Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified..
Editing the web.config and adding dependentAssembly didnt worked for me.
What could be the issue? Any suggestions ?
Thanks in advance...
Regards
Nimisha
[email protected]Hi,
Please try to do as follows:
1. Check your farm solution whether reference the Microsoft.SharePoint.dll. Or try to add the Microsoft.SharePoint.dll into the bin folder.
2. Execute the iisreset command.
3. Create a new farm solution and check whether the issue still occurs or not.
Best Regards
Dennis Guo
TechNet Community Support -
I have created a ASP.NET web Site (not Web application), using Visual Studio 2012 Ultimate and "SQL Server Compact 4.0 Local Database" in my C# Code.
I am able to successfully compile & publish the website to another IIS Web Server, with Operating System Windows Server 2008 R2 Standard. I can even test, successfully, this website on the machine I developed it in.
I am publishing the website, from within Visual Studio, to a Network web server running IIS. To Publish I am using Build-> "Publish Web Site". In the Publish Profile, I am using Web Deploy Method. Even though I am using, successfully,
"SQL Server Compact 4.0 Local Database" in my website, the "settings" (in Publish Profile) does not detect any Databases in the project. Which may not be a problem.
When I try to bring up the web site on the IIS Web Server machine I get the following error..
Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies .
As my project is a Web Site, not Web Site Application, I do not have a references node in the Solution Explorer. I think the System.Data.SqlServerCe.dll, which is type GAC in my project, is not getting published to the webserver, which is causing this Error.
Can I copy this .dll over manually ? If yes, where to put on the ISS Web Server ? I do not see any bin folder.
Any help to resolve this error will be appreciated.
diana4Hello.. I went ahead and created web application project and have gone past that error. But I have a new error now
System.Data.SqlServerCe.SqlCeException: Unable to load the native components of
SQL Server Compact corresponding to the ADO.NET provider of version 8876.
Install the correct version of SQL Server Compact. Refer to KB article 974247
for more details.
Compiling and Publishing (Deployment) are both successful
In my project, when adding reference to SQL Server Compact Edition , there are 2 possible locations to reference the DDL from:
C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Private
C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Desktop.
I have tried both. I get the same error as shown above.
Interestingly, in My WebConfig, I do not see any reference to System.Data.SqlServerCe.
Yet, the Website works when I click on Ctrl+F5
diana4 -
Hi,
Our development team is trying to run a report on our report server through web application but they are getting the below error. Report Viewer both version 10 and 11 are already installed on our reporting server.
[System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
The files are in place in assembly folder 'C:\Windows\assembly' and DLLs are also in place in folder 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer.
Can anyone please help us with this issue.
ThanksHi Saurabh,
This error means you're using the SQL Server Reporting Services ReportViewer control in your web application and the server can't find the proper DLL.
Please check details information below to add the 'Microsoft.ReportViewer.WebForms.dll 10.0.0.0 to see if your problem will be resolved:
Go to right click on project name to select the properties
Check the References on the left and click "Add", then click Browse to the path "C:\Windows\assembly\GAC_msil" to select Microsoft.ReportViewer.WebForms.dll 10.0.0.0 , then click ok
If above didn't help. please also the web.config file which path like:
C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportManager
C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer
Please check to add below configuation:
<system.web>
<httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
validate="false" />
</httpHandlers>
</system.web>
Similar thread in below article for your reference:
http://praveenbattula.blogspot.com/2010/03/fix-to-report-viewer-problems-in-iis-7.html
User can not run a winForm with the ReportView Control
Can not load Reportviewer
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
Hi All,
While trying to access oracle database from SharePoint facing "Could not load file or assembly 'Oracle.DataAccess, Version=2.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified."
How to fix this issue? Thanks in advance!Hi,
According to your post, my understanding is that you get error while access oracle database in SharePoint.
You can set “Enable 32-bit Applications” to true in the application pool for the web application, then check whether it works.
For more information:
https://www.learningpenguin.net/myblog/2014/02/03/could-not-load-file-or-assembly-oracle-dataaccess-or-one-of-its-dependencies-an-attempt-was-made-to-load-a-program-with-an-incorrect-format/
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Issue: We have upgraded TFS 2013 App Server and Build Servers from TFS 2013 RTM to TFS 2013 update 4. Everything looks good but we are receiving the below error:
Could not load file or assembly 'LibGit2Sharp, Version=0.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Kindly share your thoughts/inputs to resolve the issueHi John,
Hope there is nothing wrong with the update.
Yesterday, Our developers were troubleshooting the issue with the builds and found that
Build Activities dll has the reference of LibGit2Sharp.dll
version 01.12.0.3051.0. After TFS upgrade, Build activities does not have a reference for the new version of
LibGit2Sharp.dll [required] which has caused the issue in the build process.
Error: Could not load file or assembly 'LibGit2Sharp, Version=0.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Resolution: New version of LibGit2Sharp.dll
was added and referenced to Microsoft.TeamFoundation.Build.Activities.dll
which has resolved the issue with the builds.
I think this should be referenced somewhere regarding TFS Update 4 so that everyone will be able to spot the issue and fix the issue without any issues. -
I am trying to use SQL Server 2008 Developer on Windows Server 2008. Whenever I try to connect to the server, I get this error: "Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
or one of its dependencies. The system cannot find the file specified."
I found some info at
http://blogs.msdn.com/b/ashishme/archive/2009/08/15/could-not-load-file-or-assembly-microsoft-sqlserver-diagnostics-strace-version-10-0-0-0-culture-neutral-publickeytoken-89845dcd8080cc91-or-one-of-its-dependencies-the-system-cannot-find-the-file-specified.aspx,
but this didn't help me because it is not on my system, even after reinstalling both SQL Server and .NET Framework 4. I also saw a this page: http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/1115cd55-721d-4974-99b1-d142d1e6a927,
but this also didn't fix my problem.
What can I do, or where can I get the missing assembley?
Thanks in advance.You can get the missing assembly (Microsoft.SqlServer.Diagnostics.STrace.dll)
by installing the "Shared Features" of SQL Server 2008.
You could only install SQL Server 2008
R2 (any edition) on Windows 7.
Do not install more than 1 SQL Server 2008 R2 edition
into the same computer; Some of the components are not compatible.
E.g: BIDS from R2 Express Advance edition cannot
recognize Integration Service from R2 Enterprise Trial edition - it would throw above missing dll error.
Maybe you are looking for
-
How Can I include a logical data model in a Data Flow Diagram?
Hi, I have done a logical data model and now, I want to include it in a data flow diagram. I do not know which element I should use to make this relation. Thanks,
-
SE80 problem in ECC with custom function groups
We are in the process of upgrading from 4.64 to ECC 6 and have encountered an unusual situation. When we bring up a custom function group in SE80, we can no longer see the custom includes in the include section. We can see all other sections. We ca
-
Upgraded to CS5, having problems uninstalling CS3
Now that I've used CS5 Design Premium for a couple of months, I'm ready to uninstall CS3 and get back some badly-needed HD real estate. I ran the Adobe Uninstaller and 2 apps are still there plus a sprinkling of folders. Someone on the NAPP forum sug
-
How to get BOM component dependant demand whitout having BOM header in APO?
Hello, I would like to know if it is possible to get BOM component dependant demand in APO without having BOM header in APO. If someone already did that, please thanks to share your experience. Thanks a lot and best regards. M.Niang
-
Hi! How do you get the most precise measurements from the kinect (v2)? What kind of lighting, background, clothing, pose is ideal for the sensor? I could not find information on this anywhere, so I thought I might as well ask.