Calling Vb6 Objects From .net Web Service Fails But Works From Forms App?

Jan 20, 2010

We have an asp.net web service running on Windows Small Business Server 2008 SP2 (64-bit). It is in its own application pool. We've tried both Integrated and Classic settings for Managed Pipeline Mode. Enable 32-bit Applications is set to True. It is not able to successfully call a vb6 dll method but a Windows Forms app on the same machine can.Two vb6 dlls (A and B) are instantiated. The method in A is passed a reference to B as one of its parameters. That method then calls other methods within itself that also require the reference to B.Those internal method calls in A fail with this vb6 error (the A method logs these errors in the Windows Application event log):

70 (Permission Denied)

Another error is also logged in the Windows System event log:

The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {xxx} to the user NT AUTHORITYNETWORK SERVICE SID (S-1-5-20) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.The object in question (a third vb6 component which is an ActiveX EXE) has already been configured using DCOMCNFG (Component Services) with full Launch, Activation, and Access Permissions given to NETWORK SERVICE and even Everyone. Additionally, from Explorer, full control/permissions have been give to all required vb6 components to NETWORK SERVICE (tried Everyone too).

A Windows Forms application on the same machine is able to successfully call the method in A. The same web service works on another machine with a 32-bit OS.Both the web service and the Forms app have been built with Platform Target set to "x86".How can we get the web service call to work on the 64-bit machine?

View 1 Replies


Similar Messages:

Security :: Calling SharePoint Search WebService From AJAX Service Fails With 401

Jul 12, 2010

In IIS I have a virtual directory with only windows authentication enabled. From Javascript I call into a ASMX webservice. From the ASMX webservice I make a call to the SharePoint Search.asmx Webservice. whatever I try I keep getting the followin gerror message:

"The request failed with HTTP status 401: Unauthorized"

I use the following code to call the SharePoint webservice

[Code]....

My web.config settings are:

[Code]....

The Sharepoint farm is configured to use NTLM authentication.

Strangely everything works when I am testing in Visual Studio using the builtin webservice, but when I deply to my local IIS or Test Server it breaks.

View 1 Replies

Web Forms :: TypeConverter Fails In ASPX, Works Fine In Console Application?

May 28, 2010

I have a TypeConverter (I followed this example to a 'T' ). It works perfectly within a console application but I get the dreaded "Unable to generate code for a value of type 'className'. This error occurred while trying to generate the property value for...".This appears in the Event Viewer as a "HttpParseException" with a description of "A parser error has occurred."

This occurs ONLY if I attempt to set the Property implementing the TypeConverter Attribute from within the ASPX, if I don't set the Property the page loads fine. Trouble is, becuase it is a Parse Error I am having a heck of a time debugging.

Again, this works fine within a console app, but only fials when used within an aspx app.

View 2 Replies

RegularExpressionValidator Always Fails, But ValidationExpression Works In Testing?

May 21, 2010

I found the answer to this, but it's a bit of a gotcha so I wanted to share it here.

I have a regular expression that validates passwords. They should be 7 to 60 characters with at least one numeric and one alpha character. Pretty standard. I used positive lookaheads (the (?= operator) to implement it:

(?=^.{7,60}$)(?=.*[0-9].*)(?=.*[a-zA-Z].*)

I checked this expression in my unit tests using Regex.IsMatch(), and it worked fine. However, when I use it in a RegularExpressionValidator, it always fails.

View 2 Replies

Website Works Correctly On Localhost But Fails Sometimes Online

Mar 3, 2011

I have the following problem, I make a web site when I run this website (locally) I get the correct data (for example I have a set of cities according to the city selection, I get the required data), but when I publish the web site and try it on line (I get incorrect data under the same conditions I tried before locally). I don't know what is the problem, I need to trace the code online (debug the code on line) to know where the problem. Is there any suggestions how to treat case like this, code works in correct manner locally but fails sometimes online? I use (https) online. I use static variable (supposed not to be changed) but online the value of this variable is changing and make this problem.

View 3 Replies

Regular Expression Fails In IE, But Works In Chrome And Firefox?

Jul 13, 2010

I have the following asp.net markup:

<asp:TextBox ID="txtPassword" runat="server" TextMode="Password"
ValidationGroup="passwordValidation"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic"
ControlToValidate="txtPassword" Text="Required" ValidationGroup="passwordValidation" />
<asp:RegularExpressionValidator runat="server" ControlToValidate="txtPassword"
Text="Passwords should contain a minimum of 7 characters with at least one numeric
character." ValidationExpression="^(?=.*d{1})(?=.*[a-zA-Z]{2}).{7,}$"
ValidationGroup="passwordValidation" Display="Dynamic"></asp:RegularExpressionValidator>

If I type in a password like test1234, it passes in chrome and firefox, but the message that my password should contain a minimum of 7 characters with at least one numeric character is shown in internet explorer

View 1 Replies

Configuration :: DLL Works On Local IIS But Fails On Production Server?

Jul 14, 2010

I have used a dll named MARCEngine, which is used to read Marc data. I use a method named MARC2MARC21XML which converts a normal marc file to an XML file.

The problem is it works great on my local IIS, but when I upload it to the production server, it only generates the root node and not the child nodes.

Here is a snippet of my sample page :

[Code]....

Asp.net has the permissions to access the files geneated.

View 1 Replies

MVC :: Validation Attribute Fails With Deeper Objects IsValid Parameter Is Null?

Apr 9, 2010

I have an CustomViewModel that is composed of three layers of objects.

The first one is to store and populate lists to be used in dropdowns.

The second one is to store additional propperties that I want.

And the third one is the model itself.

I create the view using View(new Layer(model))

And at the post i have ActionResult .... (Container container)

I made this architecture because i was having a lot of problems with model binder and enums...

So when i post to the form and the ModelBinder checks the validation attributes, the IsValid operation at the attribute X applied to the model class has its parameter value as null.

This behavior doesn't happen if I Just use the simple model to create and post the view.

What I have to do to get this work ?

I made a few changes to the AccountController to use it as sample here, here is the code:

[Code]....

Just change the register page to inherits from RegisterModelLayer.

When I post, the value parameter at the IsValid function at the PropertiesMustMatchAttribute class is null;

As a consequence i can't validate and get an null exception maybe.

View 2 Replies

HTTP - Stream.Write Fails On Server But Works On Dev Machine?

Jan 23, 2011

problem with Stream.Write() where it works under a dev (Windows 7) environment but fails under a server environment (Windows 2008 R2 Enterprise)?

I'm basically working with some third party code which reads from a FileStream and writing to an Http request, nothing unusual and it's doing the following things:

Ensuring that Response.KeepAlive is false (was originally true but worked W7 and not W2K8 so tried false but it doesn't );
Ensuring that the Write includes the length of the bytes to write;
Ensuring that I Flush the stream afterwards;

The error that I encounter is the rather vague 'The request was aborted: The request was canceled.' with InnerException of 'Cannot close stream until all bytes are written.'. Now, my code works perfectly under Windows 7 so I still suspect that something is actively blocking this writing although I am not sure what, how and where.

One other possibility I wondered about was whether the encoding might be different under Windows Server 2008 R2 as opposed to Windows 7?

Here's a code snippet from the relevant method (a bit convoluted but, disclaimer, I didn't write it :-):

string boundary = string.Concat("-------------------------", DateTime.Now.Ticks.ToString("x", CultureInfo.InvariantCulture));
byte[] boundaryBytes = System.Text.Encoding.UTF8.GetBytes(string.Concat("
--", boundary, "
"));........

View 2 Replies

Configuration :: Local Works Fine But Published Website Fails With Error?

Dec 7, 2010

I have a solution that has 2 projects in it... Project #1 is a class I created some time back to deal with the basic data connection and passing data back and forth.

The 2nd project is the new current project (web site).

Everything works fine in local mode but after I have compiled Project #1 and created a referance in Project #2 then compiled Project #2 and published to the server...

I am running on Windows 7 64bit, .NET 4.0, Access 2010, SQLExpress (loging only), C#... I have rebuilt Project #1 several times as an x86, AnyCPU, and x64... they all give the same result...

I get the following error when the web site is run.

[Code]....

View 4 Replies

HttpHandlers / Modules :: Global.asax 301 Redirect Fails On .HTM Files, But Works Fine Elsewhere?

Mar 4, 2011

I just bought an old domain name and am looking to redirect as many old URLs as possible to acquire backlinks intended for the original owner for pagerank reasons. The original site had a lot of static pages ending in .htm which need to be redirected to directories. I use httpcontext in my Global.asax file to initiate 301 redirects and this works great on folder names or .aspx files, but whenever I try to redirect a .htm it fails.

Sample code:

if (HttpContext.Current.Request.Url.ToString().ToLower().Contains("http://www.example.com/oldpage.htm"))
{
HttpContext.Current.Response.Status = "301 Moved Permanently";[code]....

I also tried using my Parallels H-Sphere interface provided by my hosting company to do a IIS redirect, but whenever I hit submit the page just starts an infinate loop of sending a request.

View 7 Replies

C# - Calling A Web Service - Code For Consuming A Service Is Not Working ?

Mar 16, 2011

I have the following code for consuming a service that is not working for me. what I can do to narrow down whats going wrong?

The address is: http://localhost:57667/ExampleService.svc/

When visiting directly I get the 'You have created a service... message'

The code that goes wrong is here. It causes the following error:

_url = "http://localhost:57667/ExampleService.svc";
TextReader textReader = new StringReader(HttpPostClient.Post(new Uri(_url), bodyData.ToString(), _exampleServiceRequestEncoding, Properties.Settings.Default.HttpPostClientExampleAvailabilityTimeout));

ERROR MESSAGE:When visiting this URL directly: http://localhost:57667/ExampleService.svc/ProcessRequest

The exception message is 'No component for key example.ExternalWebServiceStubs.Example.ExampleService was found'.
Castle.MicroKernel.DefaultKernel.get_Item(String key) at Castle.Facilities.WcfIntegration.WindsorInstanceProvider.GetInstance

View 2 Replies

C# - Delete Some Class Files In Visual Studio, But Calling Them Still Works?

Mar 15, 2011

I am not sure if this is a problem with visual studio, but I had some class files that I deleted, but I can still call them in my code. Also I can call a .edmx i created, but I cant see it in my folder, i tried rebuilding my solution, cleaning it, rerunning it, checking source files. Its also causing a lot of my classes to have this error:Missing partial modifier on declaration of type 'MatchGaming.Models.MyProfile'; another partial declaration of this type exists I already tried adding partial and it i just get a bunch of errors everywhere else saying that a lot of my variables already contain a definition, almost like theres a duplicate class stuck in the cache or something.

View 1 Replies

AJAX :: Method Error 500 (code WORKS On Dev Server, FAILS On Prod. Server) / How To Fix It

Nov 8, 2010

Locally I have the cascading dropdown which loads countries in a cascading dropdown working.

But as soon as I place the code on the hosting server, Firebug shows me an:

500 Internal Server Error - [URL]

The cascading dropdown just shows "[Method error 500]"

REMEMBER: IT WORKS ON MY LOCAL SERVER!!!

local configuration:

Windows 7
IIS7.5
ASP.NET4

server configuration:

Windows Server 2008
IIS7.5
ASP.NET4

So it almost MUST be something on my hosting server! :s I dont know what to configure though...

[code]....

View 5 Replies

.net - TcpClient Fails On Web Service Method?

Feb 15, 2011

i tried to use external assembly in my web service method (Web service is worked in LAN). This external assembly in their own internals use TcpClient to access to external IP address. But unfortunally. Creation of TcpClient fails.

System.Net.Sockets.SocketException was caught
Message=A socket operation has encountered a dead network xxx.xxx.xxx.xxx:xxxx
Source=System
ErrorCode=10050
[code]...

View 1 Replies

WCF / ASMX :: Web Service Fails To Login To SQL Server

Feb 17, 2011

I am consuming a Web service passing it an XML string. The WS is querying a SQL Databse and returns an XML string. It all works fine from within Visual Studio 2010. Running the website from the browser, I receive the following error when calling ws.method "RQ.ProcessRequest(XMLOut, XMLIn)":

INNER EXCEPTION: System.Exception: The login failed when connecting to SQL Server SOMTSNAV01

[Code]....

Is there some additional credentials I need to pass to the WS? Is there anything that needs to be done on th WS side to ensure login does not fail? Ideas anyone?

View 1 Replies

WCF / ASMX :: Web Service Fails - 400 Bad Request - Only Certain Connections

Feb 21, 2011

I've got a web service on a server with valid IP and valid DNS entries. I'm using an asynchronous thread in a WPF .NET application to access methods from that web service. Under normal connection conditions, for almost all users, the connection and method works fine. Under a very specific condition - Verizon Aircard being used to connect, no VPN connection to the company through SSTP, on a PC with Forefront Client Security installed - the web service will return a "HTTP Error 400: Bad Request" error to the user. If the same user on the same PC connect their VPN connection, the method works flawlessly.

View 1 Replies

AJAX :: Javascript Fails To Connect To Web Service?

Jan 21, 2010

I am looking to incorporate web service into my application but am running into a problem. The following line of code in FwkComm.js document generates the following error: Microsoft JScript runtime error: 'FwkService' is undefined.

[Code]....

View 3 Replies

WCF / ASMX :: Service Reference Fails On Deployment?

Mar 30, 2011

I have an ASMX web service which, in turn, creates a Service Reference which ultimately calls a third party web service. So, in essence, my ASMX is acting as a proxy to the thrid party service. This works fine on my development box.When I deploy to a target server and call my ASMX web service, it fails with an object instance not set error. On closer inspection, it looks as if the failure is in the line of code which creates an instance of the Service Reference - DIM XXX as new ServiceReference.I'm guessing that something has gone missing in the deployment, but can't see what.

View 1 Replies

Web Forms :: ASPX Page Calling Web Service Asynchronous

Jun 17, 2010

I need help calling a web service asynchronously. Current scenario is, I have a classic ASP page which does some processing and then redirects to a ASPX page which would call the wcf service asynchronously and then redirect to another classic ASP page. Im currently using the Asynchronous method to call the service with Async="true" included in the header. Testing the ASPX page induvidually it appears that the service call is asynchronous and does not wait for the the service to process data. But when integrating it with classic ASP page i.e ASP to ASPX to ASP it appears that the process takes a while as if the service call is synchronous.

So is there a better idea to use in calling a wcf service asynchronously. The idea behind my work flow is the ASPX page would be used to call the service and then the ASPX page would redirect back to the classic ASP page is came from. Let me know if there is a work around on how to call async wcf service in aspx page. I dont need the ASPX page to wait for a result or anything it is just used to call the WCF service async

View 1 Replies

Web Forms :: WCF - When Connection Time Out In The Calling Client - How To Stop Service From Executing

Jun 16, 2010

I have a WCF service that processes some input arguments and retuns result in approximately 4 minutes. Sometimes the calling client may get request time out before the WCF service answers.

Now, my customer is asking me to stop processing on the service side when the client got timed out. Since, I could not know the status of cleint on the service, I could not stop the process.

View 1 Replies

Forms Data Controls :: Retain Values In A FormView When Validations Fails Or The SQL Fails On An Insert?

Oct 6, 2010

To me this should be much easier, but I can't seem to retain the values that are put in the Insert template upon a validation failure or when the sql fails. This will prevent the user from having to retype everything agin in the event of a failure.

As you can see I am using the Sub Insert_Click and not using an insert through the wizard. so the fields are unbound textboxes on the form. There are 2 dropdowns that provide choices for the other fields.

I pasted in the code using the text only option becuase the format was getting messed up. I probably need more background on why the fields are blanking out.

[code]....

View 8 Replies

How To Expose Custom Object (with Sub Objects) In Web Service

Feb 11, 2010

I'm kinda new to web services and want to make sure I am doing things correctly.

I have a custom object which has sub objects as well. (let's say Company object, sub object is collection of Employee objects)

I want the web service to return a collection of Company objects. Do I make the service return a Dataset and custom generate a dataset with datatables representing the different objects?

What is the best way to do this? I tried to just serialize it, but that doesn't seem to work either.

I tried this dll

[URL]

But the output XML doesn't seem to include the sub object.

View 1 Replies

WCF / ASMX :: Returning Parent And Child Objects In Web Service?

May 3, 2010

I have to return collection of parent and child objects in a web service but I am not being able to solve this.

look below code blocks where i will try to explain my problem:

This is my web method which returns a list of parents

[Code]....

[Code]....

Below is my child Class:

[Code]....

View 1 Replies

Configuration :: Web Service Works Locally But Not When Deployed?

May 28, 2010

When I deploy my web service, I get the following error:

There is no build provider registered for the extension '.svc'. You can register one in the <compilation><buildProviders> section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.

I found one thread ([URL] that a solution but, I can not get it to work. If I make the changes to my web config file as in the thread, I then get a configuration error. One odd thing is that, if I check the machine.config file on my machine, located at C:WINDOWSMicrosoft.NETFrameworkv2.0.50727CONFIGmachine.config, I don't see any of the config settings described in the thread. As a matter of fact, there is no mention of "compilation" or "buildProviders" at all.

Here is my entire config file listing:

[Code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved