Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 16th, 2006, 02:32 AM
Registered User
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default oracle web service

Hello Everyone,

I have created a a web service for getting and inserting data into oracle server.The web service is working fine from the visual studio, but when i keep the web service in the iis server and run it from the browser it gives a System.NullReferenceException. The server has norton internet security ver7.6 installed in it.Will effect the web service in any way.I am sending the error details.Please help me out.

System.NullReferenceException: Object reference not set to an instance of an object.
   at Oracle.DataAccess.Client.OracleException.get_Messa ge()
   at System.Web.Services.Protocols.ServerProtocol.Gener ateFaultString(Exception e, StringBuilder builder)
   at System.Web.Services.Protocols.ServerProtocol.Gener ateFaultString(Exception e, Boolean htmlEscapeMessage)
   at System.Web.Services.Protocols.HttpServerProtocol.W riteException(Exception e, Stream outputStream)
   at System.Web.Services.Protocols.WebServiceHandler.Wr iteException(Exception e)
   at System.Web.Services.Protocols.WebServiceHandler.In voke()
   at System.Web.Services.Protocols.WebServiceHandler.Co reProcessRequest()




 
Old October 16th, 2006, 08:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What identity is the web service running under? Can it log in to Oracle? Does that server have the Oracle client and the right tnsnames.ora file? Try logging some messages to see how far it gets.

 
Old October 16th, 2006, 09:25 AM
Registered User
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The web service is working fine in other server with windows 2003 server operating system(which is at our office).But it is not running when i have deplyoed it in the server of the client.In the client machine the same web service is running fine when i run from the visual studio(it is able to send and get data from oracle server).But when i run it from iis server it is giving the above error.
 
Old October 17th, 2006, 07:31 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you're on an early Oracle 9 client you should upgrade to the latest client (the latest 10g client is a supported client to work with a version 9 DB). But if you already have a v10 client the problem is something else.

The early version or the 9 client had a bug in the way it configured NTFS security on the Oracle folder - you can set it yourself to allow the IIS account to have access to all the folders under c:\oracle, but you have to start by figuring out what that account is. You can open a support ticket with Oracle if you need help.

When you run from VS, you're running with adminstrator credentials. You must not open up IIS to run as an administrator!

By the way, this is off topic for this forum, which is on a specific ASP.NET book that uses SQL Server.

Eric







Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Service Consuming another web service CraigWhitfield EJB 0 January 10th, 2008 08:38 AM
web service windows_mss ASP.NET 2.0 Professional 0 January 29th, 2007 12:54 AM
Web Service kumanan ASP.NET 1.0 and 1.1 Basics 0 December 7th, 2006 10:26 AM
Error to Add Web Reference from a Web service jdjbarrios ASP.NET 2.0 Professional 0 July 18th, 2006 02:58 PM
Service Oriented Web Service aldwinenriquez .NET Web Services 2 September 15th, 2005 03:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.