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


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

ocienvcreate failed with return code -1

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :.NET Framework
 
Hi. Its problem is generated in a Windows 2000 server and vb.net application. The users connect to aplication by terminal server. This is a permission problem... Thanks....DFPP


View Complete Post


More Related Resource Links

OCIEnvCreate failed with return code -1 but error message text was not available.

  

Hi,

We have a requirement to connect to oracle from ASP.NET and we installed ODAC(ODAC1110621) components  on the server but still we are getting the following error while opening the connection. Please find the details below:-

OCIEnvCreate failed with return code -1 but error message text was not available.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: OCIEnvCreate failed with return code -1 but error message text was not available.

Source Error:

Line 16:     {
Line 17:         OracleConnection con = new OracleConnection(ConfigurationManager.ConnectionStrings["HRDBA"].ConnectionString);
Line 18:         con.Open();
Line 19:         Label1.Text = con.State.ToString();
Line 20:         con.Close();


Source File: \\hs003fs01-02.homebase.com\wfmp\Webpage1.aspx.cs    Line: 18

Stack Trace:

XMLHTTP.ResponseText return unexecuted code?

  

I have a simple asp with the following code.  When I access this page directly (via browser) everything works fine:  the xml object shows up fine.  When I call this page via VBA (excel), the ResponseText method of the 

XMLHTTP object returns the below code unexecuted.  Anybody knows what's going on?  thanks.





<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <% Response.Buffer = True Response.ContentType = "text/xml" Dim oDataXML As Object 'Custom Data XML passed in by caller. On Error Resume Next 'Load the XML passed into the request. oDataXML = Server.CreateObject("Microsoft.XMLDOM") oDataXML.Load(Request) Dim sResult As String sResult = "<?xml version=""1.0""?>" sResult = sResult & "<OrderProcessed>" sResult = sResult & "<Status>test</Status>" sResult = sResult & "<OrderID>111</OrderID>" sResult = sResult & "</OrderProcessed>" Response.Write(sResult) Response.End() %>



Return of the Rich Client: Code Access Security and Distribution Features in .NET Enhance Client-Sid

  

Rich clients employ many of the features and conveniences of the operating system they run on, and the list of these features has been growing since the dawn of the PC. But as apps have migrated to the Web, the trend towards increasing client-side functionality has ground to a virtual halt. There are several reasons for this; chief among them are security and deployment problems. But that's all about to change. With the .NET Framework, you can participate in building the distributable rich client of the future. In this article, the author enumerates the pertinent features of .NET that will allow you to build safe, easily deployable controls. The features discussed include managed code, code access security, versioning control, Windows Forms classes, and isolation.

Jason Clark

MSDN Magazine June 2002


Custom tool error: Failed to generate code for the service reference 'CompanyService'. Please che

  

A little background because I feel I have an out of the ordinary architecture in place and don't know if this is contributing to the problem. 

We have an existing ASP.net application that is undergoing expansion.  The new functionality is all written in Silverlight 4.  As part of that expansion I gutted all the old Linq to SQL and put Entity Framework 4 into place.  To do this I created a standard .net Class Library and added my edmx files there.  Naturally, the business entities created by this cannot be used in Silverlight.  So I created a Silverlight Class Library and added all the business entities to that Silverlight Class Library as linked files.  I changed the name space to be the same.

So I have the following assembly / namespaces

Company.Project.Dal.csproj / Company.Project.Entities (.net 4 class library)

Company.Project.Entities.csproj / Company.Project.Entities (SL4 class library)

With this architecture I was able to share my business entities with my SL enabled web services, my asp.net projects, my silverlight projects.  Really it's a beautiful thing.

Once this was done I added "message" classes to Company.Project.Dal and again shared them with the other entites using linked files.  These messages are things like MyObjectRequest; they are class

Infopath form return XMl code during workflow task

  

1.     Review 7777.xml.

2.     Perform the specific activities required for this task.

Use the Edit this task button to mark the task as completed. (If you cannot update this task, you might not have access to it. Click here to request access.

How to return back back to code behind file after cascading dropdown calling

  
Hi, I have a cascading dropdown. After the dropdown is populated(it is in another file)  i would like to return back to the original form where the control is placed. is there anyway of doing it

Failed to initialize MSDB database for tuning (exit code: -1073741819). (DTAClient)

  
Hello,This is the first time I am using this forum. I am stuck and need some help. I received this error message both on SQL 2005 and 2008. I am currently using SQL 2008 DEV for testing purposes and I am experiencing this error message when trying to connect to Database Engine Tuning Advisor. I am using the SA account so I should not have any security issues. Also this is a fresh install of SQL 2008 DEV on a fresh install of Windows XP Pro with all SP. Can some please help.Error:"Failed to initialize MSDB database for tuning (exit code: -1073741819). (DTAClient)"=================================== Failed to open a new connection. =================================== Failed to initialize MSDB database for tuning (exit code: -1073741819). (DTAClient) ------------------------------Program Location:    at Microsoft.SqlServer.Management.DTA.Client.TuningServer.InitializeTuningParametersDatabase()   at Microsoft.SqlServer.Management.DTA.Client.TuningServer.InitializeConnection()   at Microsoft.SqlServer.Management.DTA.Client.TuningServer.Connect()   at Microsoft.SqlServer.Management.DTA.Shell.SessionMonitor.AddServerInternal(SqlConnectionInfo connectionInfo, SqlConnection connection)   at Microsoft.SqlServer.Management.DTA.Shell.SessionMonitor.AddServer(SqlConnectionInfo connectionInfo, SqlConnection connection)   at Microsoft.SqlServer.Management.DTA.Shell.SessionMonitor.On

hotfix 3024 error code 1603 - failed install

  
Hello experts - Installing sql server 2005 on a 2 node cluster and failed with the above error.  I see lots of posts regarding this error, but no answers.  A search of the registry reveals no 3024 entries. Any help appreciated - DianneDianne

Server failed with error code 0xc0000000 to spawn a thread to process a new login or connection

  
Hello All, Suddenly, the sql server is down, in the log file, C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG, I found the record as follows, 2007-03-05 15:40:31.59 Logon       Error: 17189, Severity: 16, State: 1.2007-03-05 15:40:31.59 Logon       SQL Server failed with error code 0xc0000000 to spawn a thread to process a new login or connection. Check the SQL Server error log and the Windows event logs for information about possible related problems. [CLIENT: 172.21.123.48] What else I can do to further investigate? Thanks Spencer

SQL Express 2008 Installation failed. Process exited with code -2067529712

  
Property: [AdminUser] = true {boolean}Property: [ProcessorArchitecture] = AMD64 {string}Property: [VersionNT] = 6.0.1 {version}Running checks for package 'Microsoft Data Access Components 2.8', phase BuildListReading value 'FullInstallVer' of registry key 'HKLM\Software\Microsoft\DataAccess'Read string value '6.0.6001.18000'Setting value '6.0.6001.18000 {string}' for property 'MDACVersion'The following properties have been set for package 'Microsoft Data Access Components 2.8':Property: [MDACVersion] = 6.0.6001.18000 {string}Running checks for command 'MDAC28\mdac_typ.exe'Result of running operator 'VersionGreaterThanOrEqualTo' on property 'MDACVersion' and value '2.80': trueResult of checks for command 'MDAC28\mdac_typ.exe' is 'Bypass''Microsoft Data Access Components 2.8' RunCheck result: No Install NeededRunning checks for package '.NET Framework 2.0 (x86)', phase BuildListRunning external check with command 'C:\Users\barneyfife\AppData\Local\Temp\VSDC947.tmp\DotNetFX\dotnetchk.exe' and parameters ''Process exited with code 1Setting value '1 {int}' for property 'DotNetInstalled'Reading value 'Version' of registry key 'HKLM\Software\Microsoft\Internet Explorer'Read string value '8.0.6001.18783'Setting value '8.0.6001.18783 {string}' for property 'IEVersion'The following properties have been set for package '.NET Framework 2.0 (

.NET Framework 4.0 -- Installation failed with error code: (0x80070658), "Error applying transforms.

  
I’m getting the following error when installing .NET 4.0.   Final Result: Installation failed with error code: (0x80070658), "Error applying transforms. Verify that the specified transform paths are valid"   These are the steps I took to try and solve the problem but no luck:   1.       Uninstalled all versions of .NET 2.       Ran the .NET Cleanup Tool 3.       Installed .NET 4.0 but it failed   Any ideas?   Here is the last part of the log file with error at the bottom:   [9/7/2010, 14:41:57]calling PerformAction on an installing performer [9/7/2010, 14:41:57] Action: Performing actions on all Items... [9/7/2010, 14:41:57]Wait for Item (RGB9RAST_x86.msi) to be available [9/7/2010, 14:42:0]RGB9RAST_x86.msi is now available to install [9/7/2010, 14:42:0]Creating new Performer for MSI item [9/7/2010, 14:42:0] Action: Performing Action on MSI at C:\DOCUME~1\adelgadi\LOCALS~1\Temp\Microsoft .NET Framework 4 Setup_4.0.30319\RGB9RAST_x86.msi... [9/7/2010, 14:42:0]Log File C:\DOCUME~1\adelgadi\LOCALS~1\Temp\Microsoft .NET Framework 4 Setup_20100907_144152567-MSI_RGB9RAST_x86.msi.txt does not yet exist but may do at Watson upload time [9/7/2010, 14:42:0]Calling MsiInstallProduct(C:\DOCUME~1\adelgadi\LOCALS~1\Temp\Microsoft .NET Framework 4 Setup_4.0.3

.NET Framework 4.0 Full package installation failed with error code: (0x80070643)

  
I am getting an error when installing .net framework 4.0. I am using the full package installer. OS: windows XP Service Pack 3 Windows Update: Current with all security updates. Error: [7/12/2010, 10:50:49]MSI (C:\eb1ddbb12a129b2fddde4054\netfx_Core_x86.msi) Installation failed. Msi Log: Microsoft .NET Framework 4 Setup_20100712_105014316-MSI_netfx_Core_x86.msi.txt [7/12/2010, 10:50:49]PerformOperation returned 1603 (translates to HRESULT = 0x80070643) [7/12/2010, 10:50:49] Action complete [7/12/2010, 10:50:49]OnFailureBehavior for this item is to Rollback. [7/12/2010, 10:50:49] Action: Performing actions on all Items... [7/12/2010, 10:50:49] Action complete [7/12/2010, 10:50:49] Action complete [7/12/2010, 10:50:57]C:\eb1ddbb12a129b2fddde4054\netfx_Extended.mzz - Signature verified successfully for netfx_Extended.mzz [7/12/2010, 10:50:57] C:\eb1ddbb12a129b2fddde4054\netfx_Extended.mzz Signature verified successfully for netfx_Extended.mzz [7/12/2010, 10:50:57]Signature verification succeeded for netfx_Extended.mzz [7/12/2010, 10:50:57]File C:\eb1ddbb12a129b2fddde4054\netfx_Extended.mzz, locked for install. [7/12/2010, 10:50:57]Verifying Digital Signatures: C:\eb1ddbb12a129b2fddde4054\netfx_Extended.mzz Success [7/12/2010, 10:50:57]Final Result: Installation failed with error code: (0x80070643), "Fatal error during installation. " (Elapsed time: 0 00:00

Install return code for product 'SQL Server Express 2008 R2' is Failure

  
I have winXP sp3. When i tried to install SQL Sever 2008 R2 through Web patform installer I got this error: DownloadManager Information: 0 : Loading product xml from 'https://go.microsoft.com/fwlink/?LinkId=193533' DownloadManager Information: 0 : Product manager downloading: https://go.microsoft.com/fwlink/?LinkId=193533 DownloadManager Information: 0 : Remote file has not changed, using local cached file:C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\Web Platform Installer\-231145492.xml.temp DownloadManager Information: 0 : Loading product xml from 'https://www.microsoft.com/web/webpi/2.0/WebApplicationList.xml' DownloadManager Information: 0 : Product manager downloading: https://www.microsoft.com/web/webpi/2.0/WebApplicationList.xml DownloadManager Information: 0 : Remote file has not changed, using local cached file:C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\Web Platform Installer\-1221301405.xml.temp DownloadManager Information: 0 : Filtering by majorOS: 5, minorOS: 1, majorSP: 3, minorSP: 0, productType: 1, architecture: x86 DownloadManager Information: 0 : Filtering by majorOS: 5, minorOS: 1, majorSP: 3, minorSP: 0, productType: 1, architecture: x86 DownloadManager Information: 0 : Adding product SQL Server Express 2008 R2 (SQLExpress) to cart DownloadManager Information: 0 : Product 'SQLE

Getting VP.NET code to respond to SQL Return values and Error Codes

  

I have SQL stored procedures that will return values depending on the outcome of its execution. I have the following code at the end of each of my Stored Procedures:

RETURN @siReturnValue

It would be great to be able to use this Return value after running the Stored Procedures from my VB.NET code. I have included an example of how I am running SQL Stored Procedures below:

    Public Function SearchKeyword(ByVal SearchString As String) As Data.DataTable
        Dim AerialConnection = New SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings("aerialConnectionString").ConnectionString)
        Dim MediaArchive As New Data.DataTable
        Dim reader As SqlDataReader
        
        Try
            AerialConnection.Open()
            Dim SelectMediaArchiveCommand = New SqlCommand("EXEC spSearch @keywords", AerialConnection)
            SelectMediaArchiveCommand.Parameters.AddWithValue("keywords", SearchString)
            reader = SelectMediaArchiveCommand.ExecuteReader()
            MediaArchive.Load(reader)
        Catch e As Exception
        Finally
            AerialConnection.Close()
        End Try
        Return MediaArchive
    End Function

How can I code this to respond to different Return values, or even error cod

.NET 3.5 SP1 failed with the error message - Error code 1603 for this component means Fatal error du

  
I had Beta version of VS 2008 and I wanted to install .NET 3.5 SP1. Installation led to some serious problems. I tried almost everything to install .NET 3.5SP1 (or VS 2008 SP1), nothing works

* VS 2008 has been uninstalled
* 3.5 uninstalled and cleaned
* 3.0 uninstalled and cleaned
* WF components removed
* document manager components removed

when I try to reinstall 3.5SP1, I keep receiving the following error in dd_dotnetfx35error

[01/11/09,00:23:05] XPSEPSC Installer: [2] Error code 1603 for this component means "Fatal error during installation.
"
[01/11/09,00:23:06] XPSEPSC Installer: [2] Setup Failed on component XPSEPSC Installer
[01/11/09,00:23:32] WapUI: [2] DepCheck indicates XPSEPSC Installer is not installed.

Then I check the contents of dd_dotnetfx35install for the event error log and found the following
[01/11/09,00:23:05] XPSEPSC Installer: ***ERRORLOG EVENT*** : Error code 1603 for this component means "Fatal error during installation.
"
[01/11/09,00:23:05] Setup.exe: AddGlobalCustomProperty
[01/11/09,00:23:06] XPSEPSC Installer: ***ERRORLOG EVENT*** : Setup Failed on component XPSEPSC Installer
[01/11/09,00:23:06] Setup.exe: GetGlobalCustomProperty - Property: {BBE1827C-F2FD-4FDA-A6D6-C83B62FFFDCA} - PropertyName: compfailed - Value: 0
[01/11/09,00:23:06] XPSEPSC Installer: CBa

How to return a string value to code behind?

  
How to get a string value from a stored procedure to the code behind of ASP.net with C#

.NET Framework 4 Final Result: Installation failed with error code: (0x80070643)

  

While trying to install Microsoft Visual Studio 2010 i got some errors on .NET framework 4.0, so i tried the standalone .NET 4 installer from microsoft and i got these errors.

MSI (H:\8c4b5e7f61c15fc5cf9e70de2e\netfx_Extended_x86.msi) Installation failed. Msi Log: Microsoft .NET Framework 4 Setup_20100924_134502282-MSI_netfx_Extended_x86.msi.txt
[9/24/2010, 13:51:7]PerformOperation returned 1603 (translates to HRESULT = 0x80070643)

[9/24/2010, 13:51:7] Action complete

[9/24/2010, 13:51:7]OnFailureBehavior for this item is to Rollback.

[9/24/2010, 13:51:7] Action complete

[9/24/2010, 13:51:7]Final Result: Installation failed with error code: (0x80070643), "Fatal error during installation." (Elapsed time: 0 00:06:05).
 

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