Solved

XML Spreadsheet (Compiler Error Message: BC30203: Identifier expected)

Posted on 2009-07-16
4
596 Views
Last Modified: 2013-11-08
Hi Experts,
I am trying with XML Spreadsheet,
I use namespaces as shown in "Code Section".
Please find error message in attached text file.
I have this code in "xx.aspx.vb" file.

I get error for <xmlns> namespace, this code works perfectly in my local PC through VS 2008 IDE. But when deployed in server I have "Compiler Error Message: BC30203: Identifier expected".
I have set IIS Server --> Website Property --> ASP.NET --> ASP.NET Version =2.0.50727
Restarted IIS server, verified if above setting still exist.
.Net Framework 3.5 is also installed in the server.
Even after above settings I get error

Please suggest how to fix, its urgent.
Imports <xmlns="urn:schemas-microsoft-com:office:spreadsheet">
Imports <xmlns:o="urn:schemas-microsoft-com:office:office">
Imports <xmlns:x="urn:schemas-microsoft-com:office:excel">
Imports <xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">
Imports System.Linq

Open in new window

xmlns-Error.txt
0
Comment
Question by:arunkumarmanas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 21

Assisted Solution

by:Craig Wagner
Craig Wagner earned 20 total points
ID: 24899574
In VB.NET the Imports statement is used to make .NET namespaces available to the application code so you don't have to fully-qualify every reference to framework object. For example:

Dim writer As System.IO.StreamWriter

vs.

Imports System.IO

Dim writer As StreamWriter

I've never seen Imports used to reference XML namespaces in that way.

http://msdn.microsoft.com/en-us/library/7f38zh8x.aspx

I'd say remove the first four Imports statements and you should be fine.
0
 

Accepted Solution

by:
arunkumarmanas earned 0 total points
ID: 25125364
I moved "Imports" lines and other lines of code which was giving error to New Class library Project (in the same solution). build this to get dll, referenced this dll in web project then it worked fine.
I guess these Imports (XMLNS) are not supported in website (project).
0
 

Author Comment

by:arunkumarmanas
ID: 25125374
The solution I tried out worked
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question