Well you should reinstall the Crystal Report run time on the server again to re register the class object.
I know what the error code is from c++ programming, and it means you have to elevate your permission level, but I find it strange that you should have to do that.
So I guess if your running on IIS6, then network service has to have permission on the webform, and for IIS7+, the application pool identity. Mayne the program writes temp files that need permission to write or modify.
Hey the thing is I know exactly when and where to use them it just seems that all through my code there are 100's of try catch blocks and I read very conflicting articles on wether or not this is best coding practice.
Although everyone have their own opinion but the main important thing is user should not experience unexpected behavior. if there is something going wrong you need to catch and that could be possible through try..catch and logging the messages.
so resolving errors are more important then best practice... keep coding...
I understand that with tools like Codeit.right and The Visual Studio Analysis that Try Catch(s) are to be used sparingly and to catch only certain types of errors. You should try to wirte tests into the code in order to narrow the parameters of the code so that you will be able to report back to users problems. Hiding errors in Try / Catch in not the proper use of the machanic.
Hope this sheds some light on the use.. Try running the code by removing all the Try/Catch and if there is a better way like a If/Then that can cover the error then it is so much better.. in Addition Try/Catch are generally slower.
If you are interested in executing a certain block of code irrespective of whether an exception occurs or not and still worry about catching an exception you might use the try-catch-finally block. Even if a goto statement is present in a try block, the control gets transferred to the label in the goto, only after executing the finally block.
You should try and use them in your code as much as possible, especially if you suspect a particular error may crash your programme.
I had been given a WCF service endpoint for net.tcp and http binding both. I want to generate proxy for this wcf service. But when I am running the svcutil from VS command prompt as administrator, it is giving me the below errors.
When I run the
C:\Windows\system32>svcutil.exe /language:vb /out:D:\WSDLRepository-Proxy\DocRetrieveService\DocRetrieveService.vb /config:D:\source\SourceCode\StayatWork-VS2010\BusinessLogicLayer\app.config http://xxxxxxtumecr21:8000/FilenetDocRetrieve/DocRetrieveService?wsdl
I am getting the below error
WS-Metadata Exchange Error
Metadata contains a reference that cannot be resolved: 'http://lnidaptumecr21:8000/FilenetDocRetrieve/DocRetrieveService?wsdl'.
<?xml version="1.0" encoding="utf-16"?><Fault xmlns="http://www.w3.org/2003/05/soap-envelope"><Code><Value>Sender</Value><Subcode><Value xmlns:a="http://www.w3.org/2005/08/addressing">a:ActionNotSupported</Value></Subcode></Code><Reason><Text xml:lang="en-US">The message with Action 'http://schemas.xmlsoap.org/ws/2004/09/transfer/Get' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</Text></Reason></Fault>
HTTP GET Error
The document was understood, but it could not be processed.
- The WSDL document contains links that could not be resolved.
- There was an error downloading 'http://localhost:8000/FilenetDocRetrieve/DocRetrieveService?wsdl=wsdl0'.
- Unable to connect to the remote server
- No connection could be made because the target machine actively refused it 127.0.0.1:8000
If you would like more help, type "svcutil /?"
But when I run the
svcutil.exe /language:vb /out:D:\WSDLRepository-Proxy\DocRetrieveService\DocRetrieveService.vb /config:D:\source\SourceCode\StayatWork-VS2010\BusinessLogicLayer\app.config http://lnidaptumecr21:8000/FilenetDocRetrieve/DocRetrieveService?wsdl
I am getting the following error
Error: An error occurred in the tool.
Error: The given path's format is not supported.
Can anybody please help me in resolving it, I want to generate a proxy for my wcf clinet without using add service reference. Because I dont want to make my client environment dependant. Any link or any kind help is great. Its urgent please help me.
My Question is that : I have written a "web application" via ASP.net 2008 and SQL database 2008. I wanna use this source for multiple websites with different Master pages and CSS. 1) what is the simplest way/Solution to do that ? 2) if i change the main source code (one will be the main that i make changes to that) how can update other websites that uses this code(but with different Master pages and CSS)?
webpage is published successfully in windoms xp iss.... but page is not redirect another page when it call....... any one solve this problem to me .. i ready to pay for you 1000RS...... contact me if you know solution for this.. email@example.com
Please provide full technical details of your problem, as it stands there is no real way anyone can guess what you may be doing wrong. And do not offer money (answers are provided free here), or put your email in publicly available messages.
One of these days I'm going to think of a really clever signature.