.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Asad Ali
Fauzul Azmi
Post New Web Links

Using a Function from a Custom assembly - An unexpected error occurred while compiling expressions.

Posted By:      Posted Date: October 12, 2010    Points: 0   Category :Sql Server
 

LocalReport, SQL 2005, Custom Assembly compiled in Framework 2.0, with this I can add the reference to the report.

Client  (WinForm Framework 4.0)  In the same path of my application, I have the custom assembly (that uses the report)

When I try to get the DataSources, getParameters, or SetParameters, I always get the same error. The LoadDefinition(stream) does not load anything. Any Idea?

An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC40000] 'RequestMinimum' is obsolete: 'Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.'.’.

I also tried to enable the NetFx40_LegacySecurityPolicy in the config of my application, and nothing change.

If I don't use the Function from the custom assembly I don't have any problem.
Thanks in advance. 




View Complete Post


More Related Resource Links

The underlying connection was closed: An unexpected error occurred on a send.

  

I am consuming a third party web service wsdl using my .net aps.net page. And I am getting following error message. Cannt get to resolve it. Its working on my machine but not in my development machine. I have installed the certificate also in certificates on that machine. Can somone please help.?

Error -->  The underlying connection was closed: An unexpected error occurred on a send.

 

 

 

 


ASMX ws: An unexpected error occurred on a receive; failing intermittently

  

Hi,

we I have asmx web service, this seems to be working fine for 25 client machines but one site keeps failing. The client gets a small dataset and tries to send it across to server to process. The dataset saved in XML file only makes 450 - 550kB. The web service is contacted twice in a short time every half an hour. The other smaller dataset (50kB) goes across everytime without any troubles. This site is not trying to send the biggest dataset, other site are sending much bigger datasets without problem. The catch is this failing site keeps retrying for 20 times (10 hours) in average and then eventually goes across. I don't think the service webmethod is erroring out as that is all wrapped up in the try and catch and the exception is not getting thrown, also every other try for the exact same webmethod used by any other client site seems to be working fine.

System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Ne

'An unexpected error has occurred' on upload after changing limit

  

Hi,

I recently changed the max upload size for attachments to TFS work items on our SharePoint site.  I did this by going to the http://tfsserver1:8080/tfs/ProductCollection/WorkItemTracking/v1.0/ConfigurationSettingsService.asmx?op=SetMaxAttachmentSize URL and entering the new size in bytes.

This worked a treat, but not I cannot upload any documents to another site on the same server.

I can open and save documents that are already there, but when I click the 'Upload' button it gives a white page with 'An unexpected error has occurred.' on it.

Is there something else I have to set when I increase the upload limit for work items?

Regards,
Isobel


System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a rec

  
Hello Guys,         I am getting following exception while web service (ASMX) is returning the response. <!-- [if gte mso 10]> <mce:style> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive.     <!-- [if gte mso 10]> <mce:style>                                                     InnterException (System.IO.Exception): "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."       I think either the Asp.net web server is closing the connection or the response is too long.   Following is my simple code.    1)   namespace JFA.IndiePay.BusinessAccess { public class VerTexProcessor { public DataSet ProcessVerTexForBatch(DataSet dsInputRequest) { DataSet dsResponse = new DataSet(); //Call vertex web service here. VertexService.Service texCalculator = new VertexService.Service(); texCalculator.Timeout = 500000;

The underlying connection was closed: An unexpected error occurred on a receive

  
Hi All,   i have developed a web application to call WCF service (which is hosted in IIS) from client application using .Net 1.1 it works fine.   but i got an error "The underlying connection was closed: An unexpected error occurred on a receive." when the return object is getting complex.   i analysis the issue with different level of object complexity and i found it get failed for following structure.   eg:   ObjectA - outer object that has some primitive data types and the list of ObjectB ObjectB - this also contain some primitive data and list of ObjectC.   Hope you can understand the hierarchy (complexity) of the return object. This works up to 2nd level of object hierarchy.   Does anyone have idea about the solution for this exception?   Thanks in Advance Shazvi

Integrated SSRS and kerberos working great.But one user gets An unexpected error occurred while conn

  
I have this one user who can access SharePoint with no problems otherwise but is getting errorAn unexpected error occurred while connecting to the report server When they try to access an SSRS reports I confirmed he has access. Client issue? AD Account issue?Thanks.

sharepoint2007 - when create a new site collection - An unexpected error has occurred.

  
hi, when i create a new site collection for a new web part, i get en error message An unexpected error has occurred... strange thing is when thesite collection was created it opened fine but when i tried to click on the link again it gave me the error. does anyone know where the problem is? MGUKMGUK

add a webreference that displays error An unexpected error occurred on a send. Received an unexpecte

  
this problem is driving me crazy..... i need to add this web reference to a webservice develeped using oracle jdeveloper, but it thows.. There was an error downloading 'https://farmpruebas1.sat.gob.gt/web/ConsultasPublicasSW?WSDL'.The underlying connection was closed: An unexpected error occurred on a send.Received an unexpected EOF or 0 bytes from the transport stream.There was an error downloading 'https://farmpruebas1.sat.go DO I HAVE TO CHANGE SOMETHING IN THE WEB.CONFIG  

an unexpected error has occurred while verifying the form template

  
Hi,  While I tried to publish the infopath form to sharepoint site, I am getting the error "an unexpected error has occurred while verifying the form template ".(While clicking design checker)Thank uGoud

sharepoint2007 - when create a new site collection - An unexpected error has occurred.

  
hi, when i create a new site collection for a new web part, i get en error message An unexpected error has occurred... strange thing is when thesite collection was created it opened fine but when i tried to click on the link again it gave me the error. does anyone know where the problem is? MGUKMGUK

An unexpected error has occurred. (KB973687 -- related?)

  
Our Sharepoint runs multiple websites and the only one that uses forms based authentication is giving us errors.  When we try to log in we get the following error: An unexpected error has occurred.

All of our other sites run from Windows Authentication and they are all logging in fine.

I saw that KB973687 got installed over the holiday weekend, I was wondering if that had any issues with SharePoint.

Any suggestons?


Some more information:

SharePoint version:  12.0.0.6421

Server farm consists of 3 servers (All 2008) with a SQL 3005 backend.

Sharepoint + SSRS -Report Security??? An unexpected error occurred while connecting to the report s

  

I am able to deploy reports and run them as the farm admin that I did the Grant entry for in CA > App Mgt > Reporting Services > Grant DB access.

 

However, my AD personal user that has Local admin on every server has integrated SA security to the SSRS and Sharepoint Database is a Farm admin get's this error trying to run the reoprts.

 

An unexpected error occurred while connecting to the report server. Verify that the report server is available and configured for SharePoint integrated mode.

 

Now if I log in as the farm admin ( the user I did the grant on) I can run and add the reports to the SSRS webpart... Am I going to have to add every user through that Grant feature? With integrated Sharepoint security there is no /reports virtual to decide what users can run  what reports so I'm not sure..

 

Some  other details.. I'm using Kerberos security, and CA > App mgt > Reporting Services > Manage integration mode is set to Trusted (not Windows).. otherwise .. I can't pull up Default settings under that Reporting Services section of CA.

 

I also d

Error using expressions to define a color in a Custom Color Palette

  
I have a report where I would like to have a parameter define the colors in a custom color palette in SSRS 2008.  Within the CustomPaletteColors property for a chart you can use an expression to define the color.  However, whenever I use the value of a parameter to define the color value, the chart just shows the error message 'Object reference not set to an instance of an object."

I also get the same error message if I try using custom code and reference a function that would retrieve the colors. 

Is this happening because of how the rendering engine is working?  Is this property being defined before the paramters and custom code initialize?  Is it possible to define a custom palette using parameters and custom code?  If so, how?

Error occurred in deployment step 'Add Solution': Failed to load receiver assembly

  

Guys,

I've created a VS2010 sharepoint project and added a feature event receiver to my site definition. When I try to deploy it show me the error bellow:

Error 1 Error occurred in deployment step 'Add Solution': Failed to load receiver assembly "SiteDefinitionProject2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a693a58979940483" for feature "SiteDefinitionProject2_Feature1" (ID: 9dce3ed9-5eb0-4bea-b42d-4dad84559a36).: System.IO.FileNotFoundException: Could not load file or assembly 'SiteDefinitionProject2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a693a58979940483' or one of its dependencies. The system cannot find the file specified.
File name: 'SiteDefinitionProject2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a693a58979940483'
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
 

"An unexpected error occurred. Please send the log file to product support.

  

Migrating Access 2007 db to SQL Server 2005. Things go fine until it attempts to connect to SQL Server, then I get this:

"An unexpected error occurred. Please send the log file to product support.
For more information, see "Getting SSMA Assistance" in the product documentation.
Object reference not set to an instance of an object."

I have no idea where this log file is as I'm running this on a Windows 7 machine. A search of the entire C drive yields nothing.

I'm using VIC-WIN7\SQLEXPRESS for the Server Name which is what is used in SQL Server 2005 Management Studio Express.

 

Thank you very much

 

Vic

 

 


Visual Basic; Access; PHP; SQL Server; MySQL Developer

The operation failed because an unexpected error occurred. (Result Code: 0x81071003)

  

Hi all,  I have a SINGLE web service that I call through two different programs.  I input the same values into the service and call a sevice method.  One call fails every time, one call works every time.  I have installed Fiddler2 and copied the requests and responses from each.  They are identical except for the [VsDebuggerCausalityData] header value and the [Authorization:] value (data below)  what is this error? What can I do to address it? Why does it work for one app, but not the other when the requests are the same.  I guess since the Authorization is different it could be a security problem. But I'm not so sure because I'm not getting a security type error.  The first trace is the working example (look at the response) the second is the failing call.  I have changed the Authorization values.

Working
POST http://kerryportal/global/DMS/CRM/_vti_bin/Lists.asmx HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.4952)
VsDebuggerCausalityData: uIDPo+bNI0fMARFBsgZwKLhVCEUBAAAA2xBAL4gjpUWSP4dBtR8U/4q2nB9UKJVFvuCo3qZaaXUACQAA
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://schemas.microsoft.com/

.NET Framework 4.0 error - The underlying connection was closed: An unexpected error occurred on a s

  

Hello,

I'm receiving the following error occasionally when calling web service using a .NET 4.0 web application. 

"The underlying connection was closed: An unexpected error occurred on a send."

All of the articles I've read regarding this issue are for the Framework 1.1.

Is there any solution to this issue for using .NET framework 4.0?

Thanks in advance.


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend