Showing posts with label deploy. Show all posts
Showing posts with label deploy. Show all posts

Thursday, March 22, 2012

Error in the Metadata Manager

I'm attempting to deploy a new solution on AS 2005 developer edition. Apparently, a previous, unrelated solution deployment has a problem, and this prevents me from deploying mine. I've cleaned up the data directory, tried all sorts of options, but still I get the same thing. Here's the error:

Error 1 XML parsing failed at line 2, column 0: A document must contain exactly one root element. . Errors in the metadata manager. An error occurred when instantiating a metadata object from the file, '\\?\E:\SQL 2005\MSSQL.2\OLAP\Data\Analysis Services Project1.0.db\cluster Population By Zip ~MC.0.cub\~CaseDetail ~MG.0.det.xml'. Errors in the metadata manager. The dimension with ID of 'Population By Zip', Name of 'Population By Zip' referenced by the 'cluster Population By Zip ~MC' cube, does not exist. Errors in the metadata manager. An error occurred when loading the cluster Population By Zip ~MC cube, from the file, '\\?\E:\SQL 2005\MSSQL.2\OLAP\Data\Analysis Services Project1.0.db\cluster Population By Zip ~MC.0.cub.xml'.

any ideas?

thanks, Chris

Chris,

Did you ever get to the bottom of this? I'm having a similar problem.

-Jamie

|||

OK, fixed it thanks to this post: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=125660&SiteID=1

Error in the Metadata Manager

I'm attempting to deploy a new solution on AS 2005 developer edition. Apparently, a previous, unrelated solution deployment has a problem, and this prevents me from deploying mine. I've cleaned up the data directory, tried all sorts of options, but still I get the same thing. Here's the error:

Error 1 XML parsing failed at line 2, column 0: A document must contain exactly one root element. . Errors in the metadata manager. An error occurred when instantiating a metadata object from the file, '\\?\E:\SQL 2005\MSSQL.2\OLAP\Data\Analysis Services Project1.0.db\cluster Population By Zip ~MC.0.cub\~CaseDetail ~MG.0.det.xml'. Errors in the metadata manager. The dimension with ID of 'Population By Zip', Name of 'Population By Zip' referenced by the 'cluster Population By Zip ~MC' cube, does not exist. Errors in the metadata manager. An error occurred when loading the cluster Population By Zip ~MC cube, from the file, '\\?\E:\SQL 2005\MSSQL.2\OLAP\Data\Analysis Services Project1.0.db\cluster Population By Zip ~MC.0.cub.xml'.

any ideas?

thanks, Chris

Chris,

Did you ever get to the bottom of this? I'm having a similar problem.

-Jamie

|||

OK, fixed it thanks to this post: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=125660&SiteID=1

Monday, March 19, 2012

Error in report services

Hi all,

I am getting the following error when iam trying to deploy my reports on a remote report server (remote machine).can anyone help me in this regard?its very urgent.

The permissions granted to user 'domainname\userid' are insufficient for performing this operation.

Thanks in advance.

Hi,

the user has to be at miminum in the publisher role. Otherwise he won′t be able to make a call to the webservice.

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de

Sunday, March 11, 2012

Error in Processing Cubes SSAS2005

I am trying to deploy and process cubes to production server, i got this error with processing failure

Errors in the back-end database access module. OLE DB reported the '' status, which is unknown, for column 1.

So deployment works fine. I have deployed and processed and the same cube to Development and Test server, it goes through pretty well without any errors.

Any one has an idea what this error means?

Thanks

This error means Analysis Server for some reason couldn’t instantiate OLEDB provider to connect to relational database.
Several reasons:

1. For some reason your production sever cannot access relational database. Check Analysis Server service account. Does it have privileges to access relational database?

2. Installation or configuration gone wrong. See if you can fix the problem by re-installaing Analysis Server.

3. Another suggestion for you to use Synchronization functionality to move database from test to production.

Hope that helps

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

Error in MSDE Toolkit

Hello,
I am using the MSDE deployment Toolkit (RC) to deploy my application. I have my application, the setup project and the installer project in my solution. The installer project has embedded sql files for database creation and dropping only (which I create
d using the enterprise manager). Now when I run the setup, MSDE installs fine but during my applications setup I get the following error message:
"An exception occured in the OnAfterInstall event handler of PostInstall.CustomInstallActions. --> Value cannot be null."
I looked on web but couldnt really find anything about this error message.
Please suggest something. I wanted to post the SQL here but the message reached it's max count.
Thanks
dev
Hello dev,
Did you write the code that is running in the OnAfterInstall event? Or are
you using the sample code that comes with the Toolkit?
Can you post the code you're using? I don't need to seee the SQL at this
point.
Cheers,
Brian A. Randell
MCW Technologies
"Dev" <anonymous@.discussions.microsoft.com> wrote in message
news:E029D919-F1F8-42B8-B985-1691B9DC6658@.microsoft.com...
> Hello,
> I am using the MSDE deployment Toolkit (RC) to deploy my application. I
have my application, the setup project and the installer project in my
solution. The installer project has embedded sql files for database
creation and dropping only (which I created using the enterprise manager).
Now when I run the setup, MSDE installs fine but during my applications
setup I get the following error message:
> "An exception occured in the OnAfterInstall event handler of
PostInstall.CustomInstallActions. --> Value cannot be null."
> I looked on web but couldnt really find anything about this error message.
> Please suggest something. I wanted to post the SQL here but the message
reached it's max count.
> Thanks
> dev

Sunday, February 26, 2012

Error in deployment of Reports

Hello,
I have built a report on SSRS 2005 and wanted to deploy that report as a
URL. However, it gives me an error which reads - "The permissions granted to
user '<Machine Name>\IUSR_<Machine Name>' are insufficient for performing
this operation. (rsAccessDenied)". Any idea whats causing this error. I get
the same message when I try to log on to http://localhost/reportserver.
The IIS on the machine has anonymous access enabled as well as Integrated
Windows Authentication.
Thanks.Bingo (anonymous access). You are not given the rights to deploy because you
are anonymous.
Turn off anonymous access on Reports and ReportServer webs.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Vince Keller" <siliinvestor@.hotmail.com> wrote in message
news:Ox1%23AujPGHA.532@.TK2MSFTNGP15.phx.gbl...
> Hello,
> I have built a report on SSRS 2005 and wanted to deploy that report as a
> URL. However, it gives me an error which reads - "The permissions granted
> to user '<Machine Name>\IUSR_<Machine Name>' are insufficient for
> performing this operation. (rsAccessDenied)". Any idea whats causing this
> error. I get the same message when I try to log on to
> http://localhost/reportserver.
> The IIS on the machine has anonymous access enabled as well as Integrated
> Windows Authentication.
> Thanks.
>|||That worked!
Thank you very much.
"Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
news:ubRl21jPGHA.4952@.TK2MSFTNGP09.phx.gbl...
> Bingo (anonymous access). You are not given the rights to deploy because
> you are anonymous.
> Turn off anonymous access on Reports and ReportServer webs.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "Vince Keller" <siliinvestor@.hotmail.com> wrote in message
> news:Ox1%23AujPGHA.532@.TK2MSFTNGP15.phx.gbl...
>> Hello,
>> I have built a report on SSRS 2005 and wanted to deploy that report as a
>> URL. However, it gives me an error which reads - "The permissions granted
>> to user '<Machine Name>\IUSR_<Machine Name>' are insufficient for
>> performing this operation. (rsAccessDenied)". Any idea whats causing this
>> error. I get the same message when I try to log on to
>> http://localhost/reportserver.
>> The IIS on the machine has anonymous access enabled as well as Integrated
>> Windows Authentication.
>> Thanks.
>

Error in Deploying an Analysis Services Project

Hi,

I am trying to deploy an Analysis Project and I get the error:

Error 1 The Description element at line 292, column 29 (namespace http://schemas.microsoft.com/analysisservices/2003/engine) cannot appear under Envelope/Body/Execute/Command/Batch/Alter/ObjectDefinition/Database/Cubes/Cube/Dimensions/Dimension. 0 0

Any idea?

Thanks in advance,

--Dimitris Doukas

Hi,

This is a defect that will be addressed in the service pack(s); meanwhile, to work around it, please do the followings:

- open each cube editor and, in the first tab (Cube Structure), check each cube dimension if it has a Description set

- remove all those Descriptions (by just specifying an empty string there) and then re-deploy

Adrian.

|||

Hi Adrian,

Thanks for the hint. Actually I had to edit the XML file to erase the description clause. If you just empty the string from the BI Studio if doesn't work.

Regards,

--DImitris Doukas

Friday, February 24, 2012

Error in Creating Stored Procedure from VS 2005

When I create a stored procedure in VS 2005 using C# and deploy it to the server I can't execute it there and here is the error message:

Msg 6522, Level 16, State 1, Procedure GetAll, Line 0

A .NET Framework error occurred during execution of user defined routine or aggregate 'GetAll':

System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

System.Security.SecurityException:

at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)

at System.Security.PermissionSet.Demand()

at System.Data.Common.DbConnectionOptions.DemandPermission()

at System.Data.SqlClient.SqlConnection.PermissionDemand()

at System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection)

at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)

at System.Data.SqlClient.SqlConnection.Open()

at StoredProcedures.GetAll()

and the code for creating the stored procedure is:

SqlConnection connDB = new SqlConnection(@."Initial Catalog=MDB;Data Source=Server1;");

SqlCommand cmd = new SqlCommand();

cmd.Connection = connDB;

cmd.CommandText = "SELECT * FROM Modifier";

connDB.Open();

SqlDataReader rdr = cmd.ExecuteReader();

SqlContext.Pipe.Send(rdr);

rdr.Close();

connDB.Close();

your help is appreciated...

What is the permission_set that you assigned for the assembly? This is the one in the CREATE ASSEMBLY. You need to set it to EXTERNAL_ACCESS due to use of SqlConnection that is accessing remote resource. Additionally, you will have to enable TRUST_WORTHY bit (use with care) or do the recommended key based login creation & assign external access assembly permission to it and use that user as owner of the assembly. If you download the new version of SQL Server 2005 Books Online it should contain updated topics that show how to do this. If you need some examples, please post back and I will try to locate a sample for you.|||

I am getting the same error when trying to debug my stored procedure. How do I get around int?

Here's my code:

Try

Dim conn As SqlConnection = New SqlConnection

conn.ConnectionString = "Data Source=XXX-XXXX\SQLSERVER2005;Initial Catalog=MotorFleetConversion;User ID=xxxx;password=xxxx"

conn.Open()

command = New SqlCommand(sqlAction)

'command.Parameters.AddWithValue("@.rating", rating)

command.Connection = conn

' Execute the command and send the results directly to the client

'SqlContext.Pipe.ExecuteAndSend(command)

Dim drUnitCode As SqlDataReader = command.ExecuteReader()

While drUnitCode.Read

If drUnitCode.Item("CompanyCode").ToString <> prevCompanyCode Then

agencySysNo = 0

If drUnitCode.Item("CompanyCode").ToString <> "" Then

agencySysNo = InsertAgency(drUnitCode.Item("CompanyCode").ToString, drUnitCode.Item("UC_DEPARTMENT_DESC").ToString, _

Convert.ToBoolean(drUnitCode.Item("NCAS")), drUnitCode.Item("UC_BILLING_CODE").ToString)

End If

End If

If agencySysNo > 0 Then

InsertDivision(agencySysNo, drUnitCode.Item("UC_DIVISION_DESC").ToString, drUnitCode.Item("UC_SHORT_DEPT_DIV").ToString, _

drUnitCode.Item("UC_CODE_NUMBER").ToString)

End If

prevCompanyCode = drUnitCode.Item("CompanyCode").ToString

End While

Catch ex As Exception

End Try

Thanks!

Error in Creating Stored Procedure from VS 2005

When I create a stored procedure in VS 2005 using C# and deploy it to the server I can't execute it there and here is the error message:

Msg 6522, Level 16, State 1, Procedure GetAll, Line 0

A .NET Framework error occurred during execution of user defined routine or aggregate 'GetAll':

System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

System.Security.SecurityException:

at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)

at System.Security.PermissionSet.Demand()

at System.Data.Common.DbConnectionOptions.DemandPermission()

at System.Data.SqlClient.SqlConnection.PermissionDemand()

at System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection)

at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)

at System.Data.SqlClient.SqlConnection.Open()

at StoredProcedures.GetAll()

and the code for creating the stored procedure is:

SqlConnection connDB = new SqlConnection(@."Initial Catalog=MDB;Data Source=Server1;");

SqlCommand cmd = new SqlCommand();

cmd.Connection = connDB;

cmd.CommandText = "SELECT * FROM Modifier";

connDB.Open();

SqlDataReader rdr = cmd.ExecuteReader();

SqlContext.Pipe.Send(rdr);

rdr.Close();

connDB.Close();

your help is appreciated...

What is the permission_set that you assigned for the assembly? This is the one in the CREATE ASSEMBLY. You need to set it to EXTERNAL_ACCESS due to use of SqlConnection that is accessing remote resource. Additionally, you will have to enable TRUST_WORTHY bit (use with care) or do the recommended key based login creation & assign external access assembly permission to it and use that user as owner of the assembly. If you download the new version of SQL Server 2005 Books Online it should contain updated topics that show how to do this. If you need some examples, please post back and I will try to locate a sample for you.|||

I am getting the same error when trying to debug my stored procedure. How do I get around int?

Here's my code:

Try

Dim conn As SqlConnection = New SqlConnection

conn.ConnectionString = "Data Source=XXX-XXXX\SQLSERVER2005;Initial Catalog=MotorFleetConversion;User ID=xxxx;password=xxxx"

conn.Open()

command = New SqlCommand(sqlAction)

'command.Parameters.AddWithValue("@.rating", rating)

command.Connection = conn

' Execute the command and send the results directly to the client

'SqlContext.Pipe.ExecuteAndSend(command)

Dim drUnitCode As SqlDataReader = command.ExecuteReader()

While drUnitCode.Read

If drUnitCode.Item("CompanyCode").ToString <> prevCompanyCode Then

agencySysNo = 0

If drUnitCode.Item("CompanyCode").ToString <> ""Then

agencySysNo = InsertAgency(drUnitCode.Item("CompanyCode").ToString, drUnitCode.Item("UC_DEPARTMENT_DESC").ToString, _

Convert.ToBoolean(drUnitCode.Item("NCAS")), drUnitCode.Item("UC_BILLING_CODE").ToString)

EndIf

EndIf

If agencySysNo > 0 Then

InsertDivision(agencySysNo, drUnitCode.Item("UC_DIVISION_DESC").ToString, drUnitCode.Item("UC_SHORT_DEPT_DIV").ToString, _

drUnitCode.Item("UC_CODE_NUMBER").ToString)

EndIf

prevCompanyCode = drUnitCode.Item("CompanyCode").ToString

EndWhile

Catch ex As Exception

EndTry

Thanks!