Showing posts with label pro. Show all posts
Showing posts with label pro. Show all posts

Tuesday, March 27, 2012

Failed to Generate User Instance of SQL Server

I have seen many posts on the subject, but I haven't seen a clear answer to the following:

1. Start a new Web Project (VS 2005 Pro). The solution is built.

2. Select App_Data, right click and select Add New Item.

3. In the dialog box, select SQL Database and give it a name.

4. When you select Add, the message "Failed to Generate User Instance of SQL Server ... " appears.

5. I am running SQL Express. What is the correct fix to get this simple process to work?

thanks,

Flavelle

I have been puttering, trying get this supposedly simple thing working for several hours.

1. The problem appears to be directly related to User Instance with SQL Server Express. There may also be issues with the setup of SQL Server Express to work with ASP .Net.

2. I have run the asp_regsql utility against my installation of SQL Server Express. I have reinstalled SQL Server Express, making sure that enable User Instances is set.

3. Is there ANYTHING else that I need to do to SQL Server Express to make it work for the scenario above. I do not have any other versions of SQL Server installed. I do have SSME installed and working.

I need an answer so that I can start to work on a project!

Sorry, but I am hugely frustrated, I am seeing a lot of posts related to this problem, but I am not seeing any answers!

Many thanks,

Flavelle

|||

Solved it - but this is not a solution for everyone and does raise some concerns about the viability.

At the time that I installed Visual Studio, I did not have an instance of SQL Express - so I installed the one that was packaged with Visual Studio. I think that this was the November CTP, but I'm not sure. When the release version came out, I uninstalled the SQL Express, then installed the released version. I am now suspecting that there was something in that process that did not go cleanly.

In total frustration, I backed up my data, reformatted the hard drive and did a clean install of everything (like I said, not a solution for everyone). Before I installed Visual Studio, I installed the release version of SQL Express. When I installed Visual Studio, it correctly realized that there was a version of SQL Express, and that it was later. It did not overwrite the installation.

When all of that was done, I repeated the tasks that started this posting, and this time, I did not get the exception.

Weird, and someone may want to do some further investigating, but I'm going to lurch on to the next problem, whenever that rears its ugly head. I think my solution is dependant on the order of the install, with the release version of SQL Express going in prior to Visual Studio. Hope this helps.

Flavelle

Monday, March 19, 2012

Failed install of SQL Server 2005 Developer Edition on Win XP Pro

I've tried installing SQL Server 2005 Developer Edition 3 times now, from 2 different CDs. I keep failing with the same error message: "SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation."

This is the bottom of the SQLSetup0001_<machine name>_SQL.log

Doing Action: Do_sqlMofcomp

PerfTime Start: Do_sqlMofcomp : Fri Jan 27 14:33:07 2006

<Func Name='InstallMOF'>

Failed to compile file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof.

An error occured while processing item 1 defined on lines 16 - 18

Error occured in phase 3, Error number: 0x80041001

Compiler returned error 0x80041001

<EndFunc Name='InstallMOF' Return='-2147217407' GetLastError='183'>

Error Code: 0x80077349 (29513)

Windows Error Text:Source File Name: sqlca\sqlmofca.cpp

Compiler Timestamp: Tue Aug9 01:14:18 2005

Function Name: Do_sqlMofcomp

Source Line Number: 608

- Context --

Setting status of unmanaged components and removing unmanaged resources

Error Code: 29513

MSI (s) (40!00) [14:40:59:034]: Product: Microsoft SQL Server 2005 -- Error 29513. SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.

Error 29513. SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.

<Func Name='GetCAContext'>

<EndFunc Name='GetCAContext' Return='T' GetLastError='203'>

Doing Action: Do_sqlMofcomp

PerfTime Start: Do_sqlMofcomp : Fri Jan 27 14:40:59 2006

<Func Name='InstallMOF'>

Failed to compile file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof.

An error occured while processing item 1 defined on lines 16 - 18

Error occured in phase 3, Error number: 0x80041001

Compiler returned error 0x80041001

<EndFunc Name='InstallMOF' Return='-2147217407' GetLastError='183'>

Error Code: 0x80077349 (29513)

Windows Error Text:Source File Name: sqlca\sqlmofca.cpp

Compiler Timestamp: Tue Aug9 01:14:18 2005

Function Name: Do_sqlMofcomp

Source Line Number: 608

- Context --

Setting status of unmanaged components and removing unmanaged resources

Error Code: 29513

I'm at a complete loss, but I am sure the error is something about the configuration with this computer. I have fond a couple of posts on other web sites where people have similar errors, but no feedback on the error or even ideas on what to look at.

ANY recommendations would be helpful!!

Thank you,

Jay A. Moritz

I had the same error. Turns out my WMI repository is corrupted.

Run the following in a batch file to rebuild the repository and fix the problem:

net stop winmgmt
c:
cd %systemroot%\system32\wbem
rd /S /Q repository

regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
echo DONE reboot
pause

|||

Hello, I'm having hte same issue...

How do I run in a batch?....Does this mean something is wrong with my XP....If I installed a new version of XP, would this fix the problem?

|||

This is most likely caused by a corruption in WMI in your Windows Server. Try reinstalling WMI. There's information on how to do this at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/reinstalling_wmi.asp

Thanks,
Samuel Lester (MSFT)

|||

Strange, that page looks to be down now. Here is a WMI diagnosis tool you can also try:

http://www.microsoft.com/downloads/details.aspx?familyid=d7ba3cd6-18d1-4d05-b11e-4c64192ae97d&displaylang=en

Thanks,
Sam Lester (MSFT)

|||

I received the same error.

Thanks !!! this was useful for me !

Emil

|||

Would like to thank you. This solution worked for me.

Thanks

|||

The WMI Diagnostic utility provided only unhelpful information. The batch file provided above fixed the WMI problem and allowed the SQL Server 2005 installation to complete under Vista.

To run the text as a batch file, just copy and paste it into notepad, save it somewhere with a .bat extension, and then run it from a command (DOS) window

Failed install of SQL Server 2005 Developer Edition on Win XP Pro

I've tried installing SQL Server 2005 Developer Edition 3 times now, from 2 different CDs. I keep failing with the same error message: "SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation."

This is the bottom of the SQLSetup0001_<machine name>_SQL.log

Doing Action: Do_sqlMofcomp

PerfTime Start: Do_sqlMofcomp : Fri Jan 27 14:33:07 2006

<Func Name='InstallMOF'>

Failed to compile file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof.

An error occured while processing item 1 defined on lines 16 - 18

Error occured in phase 3, Error number: 0x80041001

Compiler returned error 0x80041001

<EndFunc Name='InstallMOF' Return='-2147217407' GetLastError='183'>

Error Code: 0x80077349 (29513)

Windows Error Text:Source File Name: sqlca\sqlmofca.cpp

Compiler Timestamp: Tue Aug9 01:14:18 2005

Function Name: Do_sqlMofcomp

Source Line Number: 608

- Context --

Setting status of unmanaged components and removing unmanaged resources

Error Code: 29513

MSI (s) (40!00) [14:40:59:034]: Product: Microsoft SQL Server 2005 -- Error 29513. SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.

Error 29513. SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.

<Func Name='GetCAContext'>

<EndFunc Name='GetCAContext' Return='T' GetLastError='203'>

Doing Action: Do_sqlMofcomp

PerfTime Start: Do_sqlMofcomp : Fri Jan 27 14:40:59 2006

<Func Name='InstallMOF'>

Failed to compile file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof.

An error occured while processing item 1 defined on lines 16 - 18

Error occured in phase 3, Error number: 0x80041001

Compiler returned error 0x80041001

<EndFunc Name='InstallMOF' Return='-2147217407' GetLastError='183'>

Error Code: 0x80077349 (29513)

Windows Error Text:Source File Name: sqlca\sqlmofca.cpp

Compiler Timestamp: Tue Aug9 01:14:18 2005

Function Name: Do_sqlMofcomp

Source Line Number: 608

- Context --

Setting status of unmanaged components and removing unmanaged resources

Error Code: 29513

I'm at a complete loss, but I am sure the error is something about the configuration with this computer. I have fond a couple of posts on other web sites where people have similar errors, but no feedback on the error or even ideas on what to look at.

ANY recommendations would be helpful!!

Thank you,

Jay A. Moritz

I had the same error. Turns out my WMI repository is corrupted.

Run the following in a batch file to rebuild the repository and fix the problem:

net stop winmgmt
c:
cd %systemroot%\system32\wbem
rd /S /Q repository

regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
echo DONE reboot
pause

|||

Hello, I'm having hte same issue...

How do I run in a batch?....Does this mean something is wrong with my XP....If I installed a new version of XP, would this fix the problem?

|||

This is most likely caused by a corruption in WMI in your Windows Server. Try reinstalling WMI. There's information on how to do this at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/reinstalling_wmi.asp

Thanks,
Samuel Lester (MSFT)

|||

Strange, that page looks to be down now. Here is a WMI diagnosis tool you can also try:

http://www.microsoft.com/downloads/details.aspx?familyid=d7ba3cd6-18d1-4d05-b11e-4c64192ae97d&displaylang=en

Thanks,
Sam Lester (MSFT)

|||

I received the same error.

Thanks !!! this was useful for me !

Emil

|||

Would like to thank you. This solution worked for me.

Thanks

|||

The WMI Diagnostic utility provided only unhelpful information. The batch file provided above fixed the WMI problem and allowed the SQL Server 2005 installation to complete under Vista.

To run the text as a batch file, just copy and paste it into notepad, save it somewhere with a .bat extension, and then run it from a command (DOS) window

Failed install of SQL Server 2005 Developer Edition on Win XP Pro

I've tried installing SQL Server 2005 Developer Edition 3 times now, from 2 different CDs. I keep failing with the same error message: "SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation."

This is the bottom of the SQLSetup0001_<machine name>_SQL.log

Doing Action: Do_sqlMofcomp

PerfTime Start: Do_sqlMofcomp : Fri Jan 27 14:33:07 2006

<Func Name='InstallMOF'>

Failed to compile file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof.

An error occured while processing item 1 defined on lines 16 - 18

Error occured in phase 3, Error number: 0x80041001

Compiler returned error 0x80041001

<EndFunc Name='InstallMOF' Return='-2147217407' GetLastError='183'>

Error Code: 0x80077349 (29513)

Windows Error Text:Source File Name: sqlca\sqlmofca.cpp

Compiler Timestamp: Tue Aug9 01:14:18 2005

Function Name: Do_sqlMofcomp

Source Line Number: 608

- Context --

Setting status of unmanaged components and removing unmanaged resources

Error Code: 29513

MSI (s) (40!00) [14:40:59:034]: Product: Microsoft SQL Server 2005 -- Error 29513. SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.

Error 29513. SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.

<Func Name='GetCAContext'>

<EndFunc Name='GetCAContext' Return='T' GetLastError='203'>

Doing Action: Do_sqlMofcomp

PerfTime Start: Do_sqlMofcomp : Fri Jan 27 14:40:59 2006

<Func Name='InstallMOF'>

Failed to compile file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof.

An error occured while processing item 1 defined on lines 16 - 18

Error occured in phase 3, Error number: 0x80041001

Compiler returned error 0x80041001

<EndFunc Name='InstallMOF' Return='-2147217407' GetLastError='183'>

Error Code: 0x80077349 (29513)

Windows Error Text:Source File Name: sqlca\sqlmofca.cpp

Compiler Timestamp: Tue Aug9 01:14:18 2005

Function Name: Do_sqlMofcomp

Source Line Number: 608

- Context --

Setting status of unmanaged components and removing unmanaged resources

Error Code: 29513

I'm at a complete loss, but I am sure the error is something about the configuration with this computer. I have fond a couple of posts on other web sites where people have similar errors, but no feedback on the error or even ideas on what to look at.

ANY recommendations would be helpful!!

Thank you,

Jay A. Moritz

I had the same error. Turns out my WMI repository is corrupted.

Run the following in a batch file to rebuild the repository and fix the problem:

net stop winmgmt
c:
cd %systemroot%\system32\wbem
rd /S /Q repository

regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
echo DONE reboot
pause

|||

Hello, I'm having hte same issue...

How do I run in a batch?....Does this mean something is wrong with my XP....If I installed a new version of XP, would this fix the problem?

|||

This is most likely caused by a corruption in WMI in your Windows Server. Try reinstalling WMI. There's information on how to do this at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/reinstalling_wmi.asp

Thanks,
Samuel Lester (MSFT)

|||

Strange, that page looks to be down now. Here is a WMI diagnosis tool you can also try:

http://www.microsoft.com/downloads/details.aspx?familyid=d7ba3cd6-18d1-4d05-b11e-4c64192ae97d&displaylang=en

Thanks,
Sam Lester (MSFT)

|||

I received the same error.

Thanks !!! this was useful for me !

Emil

|||

Would like to thank you. This solution worked for me.

Thanks

|||

The WMI Diagnostic utility provided only unhelpful information. The batch file provided above fixed the WMI problem and allowed the SQL Server 2005 installation to complete under Vista.

To run the text as a batch file, just copy and paste it into notepad, save it somewhere with a .bat extension, and then run it from a command (DOS) window

Failed install of SQL Server 2005 Developer Edition on Win XP Pro

I've tried installing SQL Server 2005 Developer Edition 3 times now, from 2 different CDs. I keep failing with the same error message: "SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation."

This is the bottom of the SQLSetup0001_<machine name>_SQL.log

Doing Action: Do_sqlMofcomp

PerfTime Start: Do_sqlMofcomp : Fri Jan 27 14:33:07 2006

<Func Name='InstallMOF'>

Failed to compile file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof.

An error occured while processing item 1 defined on lines 16 - 18

Error occured in phase 3, Error number: 0x80041001

Compiler returned error 0x80041001

<EndFunc Name='InstallMOF' Return='-2147217407' GetLastError='183'>

Error Code: 0x80077349 (29513)

Windows Error Text:Source File Name: sqlca\sqlmofca.cpp

Compiler Timestamp: Tue Aug9 01:14:18 2005

Function Name: Do_sqlMofcomp

Source Line Number: 608

- Context --

Setting status of unmanaged components and removing unmanaged resources

Error Code: 29513

MSI (s) (40!00) [14:40:59:034]: Product: Microsoft SQL Server 2005 -- Error 29513. SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.

Error 29513. SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.

<Func Name='GetCAContext'>

<EndFunc Name='GetCAContext' Return='T' GetLastError='203'>

Doing Action: Do_sqlMofcomp

PerfTime Start: Do_sqlMofcomp : Fri Jan 27 14:40:59 2006

<Func Name='InstallMOF'>

Failed to compile file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof.

An error occured while processing item 1 defined on lines 16 - 18

Error occured in phase 3, Error number: 0x80041001

Compiler returned error 0x80041001

<EndFunc Name='InstallMOF' Return='-2147217407' GetLastError='183'>

Error Code: 0x80077349 (29513)

Windows Error Text:Source File Name: sqlca\sqlmofca.cpp

Compiler Timestamp: Tue Aug9 01:14:18 2005

Function Name: Do_sqlMofcomp

Source Line Number: 608

- Context --

Setting status of unmanaged components and removing unmanaged resources

Error Code: 29513

I'm at a complete loss, but I am sure the error is something about the configuration with this computer. I have fond a couple of posts on other web sites where people have similar errors, but no feedback on the error or even ideas on what to look at.

ANY recommendations would be helpful!!

Thank you,

Jay A. Moritz

I had the same error. Turns out my WMI repository is corrupted.

Run the following in a batch file to rebuild the repository and fix the problem:

net stop winmgmt
c:
cd %systemroot%\system32\wbem
rd /S /Q repository

regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
echo DONE reboot
pause

|||

Hello, I'm having hte same issue...

How do I run in a batch?....Does this mean something is wrong with my XP....If I installed a new version of XP, would this fix the problem?

|||

This is most likely caused by a corruption in WMI in your Windows Server. Try reinstalling WMI. There's information on how to do this at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/reinstalling_wmi.asp

Thanks,
Samuel Lester (MSFT)

|||

Strange, that page looks to be down now. Here is a WMI diagnosis tool you can also try:

http://www.microsoft.com/downloads/details.aspx?familyid=d7ba3cd6-18d1-4d05-b11e-4c64192ae97d&displaylang=en

Thanks,
Sam Lester (MSFT)

|||

I received the same error.

Thanks !!! this was useful for me !

Emil

|||

Would like to thank you. This solution worked for me.

Thanks

|||

The WMI Diagnostic utility provided only unhelpful information. The batch file provided above fixed the WMI problem and allowed the SQL Server 2005 installation to complete under Vista.

To run the text as a batch file, just copy and paste it into notepad, save it somewhere with a .bat extension, and then run it from a command (DOS) window

Failed install of SQL Server 2005 Developer Edition on Win XP Pro

I've tried installing SQL Server 2005 Developer Edition 3 times now, from 2 different CDs. I keep failing with the same error message: "SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation."

This is the bottom of the SQLSetup0001_<machine name>_SQL.log

Doing Action: Do_sqlMofcomp

PerfTime Start: Do_sqlMofcomp : Fri Jan 27 14:33:07 2006

<Func Name='InstallMOF'>

Failed to compile file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof.

An error occured while processing item 1 defined on lines 16 - 18

Error occured in phase 3, Error number: 0x80041001

Compiler returned error 0x80041001

<EndFunc Name='InstallMOF' Return='-2147217407' GetLastError='183'>

Error Code: 0x80077349 (29513)

Windows Error Text:Source File Name: sqlca\sqlmofca.cpp

Compiler Timestamp: Tue Aug9 01:14:18 2005

Function Name: Do_sqlMofcomp

Source Line Number: 608

- Context --

Setting status of unmanaged components and removing unmanaged resources

Error Code: 29513

MSI (s) (40!00) [14:40:59:034]: Product: Microsoft SQL Server 2005 -- Error 29513. SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.

Error 29513. SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.

<Func Name='GetCAContext'>

<EndFunc Name='GetCAContext' Return='T' GetLastError='203'>

Doing Action: Do_sqlMofcomp

PerfTime Start: Do_sqlMofcomp : Fri Jan 27 14:40:59 2006

<Func Name='InstallMOF'>

Failed to compile file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof.

An error occured while processing item 1 defined on lines 16 - 18

Error occured in phase 3, Error number: 0x80041001

Compiler returned error 0x80041001

<EndFunc Name='InstallMOF' Return='-2147217407' GetLastError='183'>

Error Code: 0x80077349 (29513)

Windows Error Text:Source File Name: sqlca\sqlmofca.cpp

Compiler Timestamp: Tue Aug9 01:14:18 2005

Function Name: Do_sqlMofcomp

Source Line Number: 608

- Context --

Setting status of unmanaged components and removing unmanaged resources

Error Code: 29513

I'm at a complete loss, but I am sure the error is something about the configuration with this computer. I have fond a couple of posts on other web sites where people have similar errors, but no feedback on the error or even ideas on what to look at.

ANY recommendations would be helpful!!

Thank you,

Jay A. Moritz

I had the same error. Turns out my WMI repository is corrupted.

Run the following in a batch file to rebuild the repository and fix the problem:

net stop winmgmt
c:
cd %systemroot%\system32\wbem
rd /S /Q repository

regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
echo DONE reboot
pause

|||

Hello, I'm having hte same issue...

How do I run in a batch?....Does this mean something is wrong with my XP....If I installed a new version of XP, would this fix the problem?

|||

This is most likely caused by a corruption in WMI in your Windows Server. Try reinstalling WMI. There's information on how to do this at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/reinstalling_wmi.asp

Thanks,
Samuel Lester (MSFT)

|||

Strange, that page looks to be down now. Here is a WMI diagnosis tool you can also try:

http://www.microsoft.com/downloads/details.aspx?familyid=d7ba3cd6-18d1-4d05-b11e-4c64192ae97d&displaylang=en

Thanks,
Sam Lester (MSFT)

|||

I received the same error.

Thanks !!! this was useful for me !

Emil

|||

Would like to thank you. This solution worked for me.

Thanks

|||

The WMI Diagnostic utility provided only unhelpful information. The batch file provided above fixed the WMI problem and allowed the SQL Server 2005 installation to complete under Vista.

To run the text as a batch file, just copy and paste it into notepad, save it somewhere with a .bat extension, and then run it from a command (DOS) window

Failed install of SQL Server 2005 Developer Edition on Win XP Pro

I've tried installing SQL Server 2005 Developer Edition 3 times now, from 2 different CDs. I keep failing with the same error message: "SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation."

This is the bottom of the SQLSetup0001_<machine name>_SQL.log

Doing Action: Do_sqlMofcomp

PerfTime Start: Do_sqlMofcomp : Fri Jan 27 14:33:07 2006

<Func Name='InstallMOF'>

Failed to compile file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof.

An error occured while processing item 1 defined on lines 16 - 18

Error occured in phase 3, Error number: 0x80041001

Compiler returned error 0x80041001

<EndFunc Name='InstallMOF' Return='-2147217407' GetLastError='183'>

Error Code: 0x80077349 (29513)

Windows Error Text:Source File Name: sqlca\sqlmofca.cpp

Compiler Timestamp: Tue Aug9 01:14:18 2005

Function Name: Do_sqlMofcomp

Source Line Number: 608

- Context --

Setting status of unmanaged components and removing unmanaged resources

Error Code: 29513

MSI (s) (40!00) [14:40:59:034]: Product: Microsoft SQL Server 2005 -- Error 29513. SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.

Error 29513. SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation.

<Func Name='GetCAContext'>

<EndFunc Name='GetCAContext' Return='T' GetLastError='203'>

Doing Action: Do_sqlMofcomp

PerfTime Start: Do_sqlMofcomp : Fri Jan 27 14:40:59 2006

<Func Name='InstallMOF'>

Failed to compile file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof.

An error occured while processing item 1 defined on lines 16 - 18

Error occured in phase 3, Error number: 0x80041001

Compiler returned error 0x80041001

<EndFunc Name='InstallMOF' Return='-2147217407' GetLastError='183'>

Error Code: 0x80077349 (29513)

Windows Error Text:Source File Name: sqlca\sqlmofca.cpp

Compiler Timestamp: Tue Aug9 01:14:18 2005

Function Name: Do_sqlMofcomp

Source Line Number: 608

- Context --

Setting status of unmanaged components and removing unmanaged resources

Error Code: 29513

I'm at a complete loss, but I am sure the error is something about the configuration with this computer. I have fond a couple of posts on other web sites where people have similar errors, but no feedback on the error or even ideas on what to look at.

ANY recommendations would be helpful!!

Thank you,

Jay A. Moritz

I had the same error. Turns out my WMI repository is corrupted.

Run the following in a batch file to rebuild the repository and fix the problem:

net stop winmgmt
c:
cd %systemroot%\system32\wbem
rd /S /Q repository

regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
echo DONE reboot
pause

|||

Hello, I'm having hte same issue...

How do I run in a batch?....Does this mean something is wrong with my XP....If I installed a new version of XP, would this fix the problem?

|||

This is most likely caused by a corruption in WMI in your Windows Server. Try reinstalling WMI. There's information on how to do this at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/reinstalling_wmi.asp

Thanks,
Samuel Lester (MSFT)

|||

Strange, that page looks to be down now. Here is a WMI diagnosis tool you can also try:

http://www.microsoft.com/downloads/details.aspx?familyid=d7ba3cd6-18d1-4d05-b11e-4c64192ae97d&displaylang=en

Thanks,
Sam Lester (MSFT)

|||

I received the same error.

Thanks !!! this was useful for me !

Emil

|||

Would like to thank you. This solution worked for me.

Thanks

|||

The WMI Diagnostic utility provided only unhelpful information. The batch file provided above fixed the WMI problem and allowed the SQL Server 2005 installation to complete under Vista.

To run the text as a batch file, just copy and paste it into notepad, save it somewhere with a .bat extension, and then run it from a command (DOS) window

failed install

hi all
im instaling msde 2000 in XP PRO SP2, but when is end install, rolled back
and not install
without any message error...
anybody now anything about this...
tanks
Edson
hi Edson,
Edson wrote:
> hi all
> im instaling msde 2000 in XP PRO SP2, but when is end install, rolled
> back and not install
> without any message error...
> anybody now anything about this...
please add the
/L*v "c:\MsdeLog.txt"
parameter to your call to setup.exe boostrap installer... this will enable
verbose logging of the installation process, resulting in an (about) 2mb
text file (for a succesfull installation) syou can inspect for
RETURN VALUE 3
entries indcating problems... about 10/15 lines before each entry some
(sometime) cryptic description of the problem will be reported...
anyway, before re-installing, please verify File and Printer sharing is
enabled, as long as the Server service up and running..
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.15.0 - DbaMgr ver 0.60.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply