I would like to ask why does I'm getting an error when I am deploying my web application to my server.When I'm developing the application it works smoothly in the visual studio IDE but when I'm deploying it to my web server which is my local computer also it produce an error.I've done google and following some advice on other website as well still I can't managed to run it. I've also install the 64/32 bit redistributable of the crystal report but still I did not manage to make it work.My workstation is in 64 bit and I've done changing the target platform from 32 to 64 or vice versa but still no luck again. So much confused now about this error.
Below is the error produce
Server Errorin'/' Application.
Could not load file or assembly 'webReportTester' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the errorand where it originated in the code.
Exception Details: System.BadImageFormatException: Could not load file or assembly 'webReportTester' or one of its dependencies. An attempt was made to load a program with an incorrect format.
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.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'webReportTester' 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) to1.
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].
[BadImageFormatException: Could not load file or assembly 'webReportTester' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +567
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +192
System.Reflection.Assembly.Load(String assemblyString) +35
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +147
[ConfigurationErrorsException: Could not load file or assembly 'webReportTester' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +1298
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +293
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +961
[HttpException (0x80004005): Could not load file or assembly 'webReportTester' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +614
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +896
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Why would you do that? Who can possibly look through 8000+ rows and get anything meaningful? You need to return a meaningful subset (maybe the first 100 records) and then let the user request by filtering or bringing more back as needed when paging through the data.
Anyway, when you say quickly, how quick is quickly, exactly? Are you sure the query is indexed correctly? Have you gone through the execution plan? Are there any other bottlenecks?
Really need more info to sort this out but I'd start with the stored procedure.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum
i use iis7 with asp.net 2005
on win server 2008 r2 64bit
and my printer it is network printer
and use server side to print
this code work correct from visual studio but when publish application and make print from url i get this error:
.Invalid printer specified.><><>< at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal).. at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value).. at VisitRegister.PrintDirectlyFromServer(String idIndex)
Here is my requirement .
Want to create a button in Outlook in the Toolbar
After i click that button want to open a outlook form without To and CC ,only show BCC.Want it to do programatically Using Outlook Add in Template .
Urgent Please help me.
iam a software engineer working for varisis technologies bangalore
I have an aspx form which are having three usercontrols (basically 2 sets of radio buttons). All are placed dynamically on page load in a placeholder control.
I want to display the other radiobuttons(usercontrols) based on the previous selection. So for eg:
If I have three usercontrols, uc1, uc2, uc3 which are all having two sets of radio buttons. uc2 will display only if uc1 is selected and uc3 will display only if uc2 is selected.
I googled for sometime, but didn't get any effective result. Could anybody please help.
I have a website on asp.net4.0. I wish to use Ajax Control ToolKit but it is giving compilation error
Error 20 The type 'System.Web.UI.ExtenderControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=188.8.131.52, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
I did following to install AjaxControl Toolkit
1) Installed NuGet
2) Installed AjaxControlToolKit using NuGet Console in Visual Studio 2010
Connecting TFS 2005 via .Net console application for pulling the project and users information. This console will be used by the different users as standalone app for pulling out the information from thier machine.
When the user executing the console with the proper input details as mentioned below
getting the below error message
TF31002: Unable to connect to this Team Foundation Server Note :
1.The user as got ADMIN rights and can connect to the TFS for different process (check in , check out etc...)
2. This console application is working fine for TFS installed in single tier architec server (TFS app server ,Database server in same server), problem occurs for the TFS installed in two tier architec sever (TFS app server ,Database server in different server )
Error Occurs in below line of code :
System.Net.NetworkCredential credential = new System.Net.NetworkCredential(UserName, Password, Domain);
TeamFoundationServer server = new TeamFoundationServer(serverUri, credential);
Firstly this forum does not provide code to order, and secondly it would be much better if you did some research and created an outline project to work on. Then when you have specific problems you can come back and ask questions here. Make a start by looking at the samples and tutorials on the ASP.NET[^] website.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
Hi all. I'm working through the architecture for an ASP.NET MVC 3 solution. I like using LINQ and will probably use the entity framework against a SQL database as the persistence repository. I've seen a lot of examples now where a controller will send lambda expressions to the repository object as a way of indicating a filter, rather than having a specific function declared in the repository interface for the filter scenario. This seems convenient, and performs well as long as you have a LINQ-to-entities or LINQ-toSql compliant repository.
I started down that path, but I'm now concerned that it doesn't separate the concerns as much as it should. In the event a new repository layer was needed, one would need to build/implement something that can work with the lambda expressions (e.g construct SQL from the expression tree, or otherwise implementing IQueryable). Otherwise the use of LINQ would require loading a full set into memory from the datastore, potentially killing performance.
My question is this: is this a valid concern? Or is the support for LINQ-enabled repositories strong enough among enough database systems that the convenience of LINQ outweighs the coupling concern?
I have to access some of data through webservices. The web services done by c++ which is hosted on linux machine. Normally when we consuming the webservices, we can do the add web reference. but in that case, we know only the ip address and port of the hosted server. How can i consuming that webservice method directly using visual studio 2008.
Currently we know the methods of the web service, so just create sample web services in asp.net (*.asmx). then consuming that methods in our application, then changed the URL.
I Think you should enter a regular request path(IP:Port/servicepath) that requests the service in the URL field. being the web service developed using C++ and hosted on Linux should make no deference being the service return a text/xml response and the wizard does the remaining stuff.
Instead of creating proxy to web service,
you can try using Http Post/Get using HttpWebRequest/HttpWebResponse (WebRequest class in System.Net) to post a request to web service and receive response from the same. Hope it helps.
The user is given a text box to enter text. What would we need to do, to allow user to save the text along with HTML tags? VS 2010 is not allowing this due to security reasons. Is there a way we can save text like Testing?
Not enough information. If all you want to do is save some text to a database that is simple as would be saving to a file: there are thousands of examples of how to do this both here and through Google. What do you mean by HTML tags? Where are they from? The page itself? You need to be clear about what you are trying to do though I have to say this does sound liek homework even though you say 'we'.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum
I experienced that problem also: the text in the text box contained html tags (<b>Testing</b>), and I received some security warnings. Sorry that I do not remember how I resolved that, but I can confirm the existence of the problem.
I am trying to access a Java web service from an ASP.NET application written under Visual Studio 2010. If I just try to retrieve the WSDL using the URL (modified for security) below I receive the error that follows.
<error><description>Unable to generate WSDL 1.1 for this service</description><reason>If you wish Axis2 to automatically generate the WSDL 1.1, then please set useOriginalwsdl as false in your services.xml</reason></error>
If I try to add a service reference for the URL I receive the error at the bottom of this message. Does anyone happen to know what I might be able to try on the ASP.NET end to resolve this issue?
There was an error downloading 'http://PathToWebService/ServiceName'.
The request failed with the error message:
Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml"
Content-ID: <0.urn:uuid:7831B404AE7996BD4D1329310360132@apache.org><soapenv:Reasonxmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Textxml:lang="en-US">The endpoint reference (EPR) for the Operation not found is /ServiceName and the WSA Action = null</soapenv:Text></soapenv:Reason>
Metadata contains a reference that cannot be resolved: 'http://PathToWebService/ServiceName'.
The content type multipart/related; boundary=MIMEBoundaryurn_uuid_7831B404AE7996BD4D1329310361638; type="application/xop+xml"; start="<0.urn:uuid:7831B404AE7996BD4D1329310361639@apache.org>"; start-info="application/soap+xml"; action="http://www.w3.org/2005/08/addressing/fault" of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '--MIMEBoundaryurn_uuid_7831B404AE7996BD4D1329310361638
Content-Type: application/xop+xml; charset=utf-8; type="application/soap+xml"
Content-ID: <0.urn:uuid:7831B404AE7996BD4D1329310361639@apache.org><?xmlversion='1.0'encoding='utf-8'?><soapenv:Envelopexmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Headerxmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action><wsa:RelatesTo>urn:uuid:84d945e1-b9fc-4390-9626-02fd9dd40575</wsa:RelatesTo></soapenv:Header><soapenv:Body><soapenv:Fault><soapenv:Code><soapenv:Value>soapenv:Sender</soapenv:Value><soapenv:Subcode><soapenv:Valuexmlns:wsa="http://www.w3.org/2005/08/addressing">wsa:ActionNotSupported</soapenv:Value></soapenv:Subcode></soapenv:Code><soapenv:Reason><soapenv:Textxml:lang="en-US">The [action] cannot be processed at the receiver.</soapenv:Text></soapenv:Reason><soapenv:Detail><wsa:ProblemActionxmlns:wsa="http://www.w3.org/2005/08/addres'.
The remote server returned an error: (500) Internal Server Error.
If the service is defined in the current solution, try building the solution and adding the service reference again.