0

I am trying to load the Open XML SDK library in my webpage on Godaddy.

I am not able to load the dll properly.

I asked the technical support, but all they said is create a folder in their IIS setting and something about "ASP.NET application DLLs" which I don't get.

I think this library should be ok since it just manipulates XML files.

The error I'm getting is:

CS0246: The type or namespace name 'DocumentFormat' could not be found (are you missing a using directive or an assembly reference?)
mpromonet
  • 11,326
  • 43
  • 62
  • 91
Ahmad Hajou
  • 1,289
  • 5
  • 22
  • 39

3 Answers3

1

When you download the Open XML SDK 2.0 from here, it will give you a dll that you will need to include in order to use the DocumentFormat namespace. The specific dll is called DocumentFormat.OpenXml.dll and you should copy that dll into the folders the support person told you to create. You will also need to reference that dll in your project in order to use it. Once you do that the specific error message you are seeing will go away.

amurra
  • 15,221
  • 4
  • 70
  • 87
  • 1 - I created a folder using the steps he provided, but i do not know where that folder is. 2 - How do i reference the dll? I placed the dll in the bin directory and it works fine locally – Ahmad Hajou Nov 15 '11 at 15:14
  • @AhmadHajou - The technical people at godaddy should be the ones to answer that question. – amurra Nov 15 '11 at 16:31
  • It turn out there was an option in the folder that I created I needed to check the called "Create Application Root". – Ahmad Hajou Nov 16 '11 at 06:06
0

The only time I have seen that error is when you are trying to install .MSI files on shared hosting. To have access to that ability, you will need a virtual dedicated (http://x.co/b7Si) or dedicated server (http://x.co/b7Sk).

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
James R
  • 379
  • 3
  • 7
0

I was able to solve the error by using the tick box "Create Application Root".

Note that the application created using the IIS manager on GoDaddy should be the same name as the application created on GoDaddy using the FTP.

This was answered using GoDaddy support.

Ahmad Hajou
  • 1,289
  • 5
  • 22
  • 39