473,769 Members | 5,878 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to deploy a web service on IIS 6.

I have created a virtual directory for my webservice on iis 6 and i can
browse the asmx file. But when i triy to invoke it, i get the following
error:System.IO .FileNotFoundEx ception: ?
File name: "jgkvbdhy.d ll"
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean
throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef,
Boolean stringized, Evidence assemblySecurit y, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Loa d(AssemblyName assemblyRef, Evidence
assemblySecurit y)
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.Xml.Seri alization.Compi ler.Compile()
at System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[] xmlMappings)
at System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[]
mappings)
at
System.Web.Serv ices.Protocols. XmlReturn.GetIn itializers(Logi calMethodInfo[]
methodInfos)
at
System.Web.Serv ices.Protocols. XmlReturnWriter .GetInitializer s(LogicalMethod Info[]
methodInfos)
at System.Web.Serv ices.Protocols. MimeFormatter.G etInitializers( Type type,
LogicalMethodIn fo[] methodInfos)
at System.Web.Serv ices.Protocols. HttpServerType. .ctor(Type type)
at System.Web.Serv ices.Protocols. HttpServerProto col.Initialize( )
at System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing )

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\WINDOWS\TEMP \jgkvbdhy.dll
LOG: Appbase = file:///D:/Mywebservice
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/WINDOWS/TEMP/jgkvbdhy.dll.Wh at i'm i missing?Many thanksJB

Nov 23 '05 #1
3 17583

Your ASP.NET account (or the account used for your virtual directory) must
have Write access on the TEMP directory due to .NET XmlSerializer.
"The XmlSerializer creates C# files (.cs files) and compiles them into .dll
files in the directory named by the TEMP environment variable; serialization
occurs with those DLLs ." See on
http://msdn.microsoft.com/library/de...ialization.asp

Lionel.

"jensen bredal" <je***********@ yahoo.dk> a écrit dans le message de news:
e7************* @TK2MSFTNGP15.p hx.gbl...
I have created a virtual directory for my webservice on iis 6 and i can
browse the asmx file. But when i triy to invoke it, i get the following
error:System.I O.FileNotFoundE xception: ?
File name: "jgkvbdhy.d ll"
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean
throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef,
Boolean stringized, Evidence assemblySecurit y, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Loa d(AssemblyName assemblyRef, Evidence
assemblySecurit y)
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.CodeDom. Compiler.Compil erResults.get_C ompiledAssembly ()
at System.Xml.Seri alization.Compi ler.Compile()
at System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[] xmlMappings)
at System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[]
mappings)
at
System.Web.Serv ices.Protocols. XmlReturn.GetIn itializers(Logi calMethodInfo[]
methodInfos)
at
System.Web.Serv ices.Protocols. XmlReturnWriter .GetInitializer s(LogicalMethod Info[]
methodInfos)
at System.Web.Serv ices.Protocols. MimeFormatter.G etInitializers( Type
type, LogicalMethodIn fo[] methodInfos)
at System.Web.Serv ices.Protocols. HttpServerType. .ctor(Type type)
at System.Web.Serv ices.Protocols. HttpServerProto col.Initialize( )
at System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing )

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\WINDOWS\TEMP \jgkvbdhy.dll
LOG: Appbase = file:///D:/Mywebservice
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/WINDOWS/TEMP/jgkvbdhy.dll.Wh at i'm i missing?Many thanksJB

Nov 23 '05 #2
Well, that does not seem to help me much.
maybe i have a different problem.
Nov 23 '05 #3


"Lionel LASKE" wrote:

I had this problem.. and this IS the solution for me!!

MAJOR MAJOR THANKS!!!
I should've thought of this after looking at my error log.. but it was
totally escaping me!!

Brian

Your ASP.NET account (or the account used for your virtual directory) must
have Write access on the TEMP directory due to .NET XmlSerializer.
"The XmlSerializer creates C# files (.cs files) and compiles them into .dll
files in the directory named by the TEMP environment variable; serialization
occurs with those DLLs ." See on
http://msdn.microsoft.com/library/de...ialization.asp

Lionel.

Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2364
by: John Spiegel | last post by:
Hi all, I'm attempting to deploy a pretty simple web service to a shared web server that was built w/ Visual Studio. According to MSDN, I should be able to just copy the asmx and bin folder (w/ contents) and it's ready to go. Of course, in practice this fails. When attempting to add access it with a client, I get the error that follows. I found that by manipulating web.config entries as indicated in the errors it seemed to get...
3
1633
by: Anthony | last post by:
All, I have a web app that uses a Web Service from an external provider. The app works while hosted on my local dev machine. I used the "Copy Project" option from within the IDE to deploy to an interal web server. However, the aspx page that calls the web service does nothing. No errors are raised either. I also tried creating a web deployment project, but the same thing happens. The web service call seems to do nothing and no...
0
2058
by: Siegfried Heintze | last post by:
I'm so fustrated! While my prefered approach is still to call a C DLL from C# Web Service, I thought I would tran another approach while waiting for a response. I created a C++ service using Visual Studio 2003. I then hit CTRL-F5 and verified the HelloWorld worked. I then looked all over Visual Studio 2003 and could not figure out how to deploy the beast. The C# Studio has the copy project menu entry: not so for C++! Why not? So I...
2
2023
by: PocketDeveloper | last post by:
I am an experienced developer...but a novice at creating web services, so please have mercy on me! Here is my question: I developed a fairly simple Webservice that returns a table from SQL Server. It runs great on my development machine. Now, I must deploy it to my website. My website is on a shared server holding lots of websites. The websoervice will not run there. It cannot read my SQL Server
2
2209
by: Tedmond | last post by:
Dear all, When I develop my windows application, I access to my web service using internal IP. Now I need to deploy the application to remote site. The remote site connect to my web server through the real IP. How can I update the settings on remote site so that the application will look for the web service through the real IP? Thanks
3
4192
by: Cylix | last post by:
I have create and finished a windows service project. I test and debug the project in my computer by just rebuild the file, and so the service is installed in my computer before. Now, I need to deploy it to the admin computer, but I don't know the way. I have tried to copy file in \bin and using command: installutil <the service file path> Exception return: System.IO.FileNotFoundException: File or assembly name XXXXXXXXXXX.exe, or one...
0
2352
by: Saish | last post by:
Hi I developed webservice for dabase operations. i creatred virtual directory and i am able to run in our local ntewor but not able to run in remote server.. I want to deploy this service to the clients remote server. Can any one tell me the procedure to follow to deploy the webservice in remote server. I need help in this regard. Environment : Web Service/IIS5.0/ASP.NET 2.0 / VB.NET
3
6601
MTEXX
by: MTEXX | last post by:
I have used the Windows Service template to create, well, a Windows Service. It starts, stops, pauses etc. Works great. I added an Setup project. It builds an .msi (and .exe) file. I thought I was almost finished. I uninstalled my service (InstallUtil.exe via a External Tools macro I made- ask about that). I ran the newly created installation program. It indeed installed my service exe using the familiar installer wizard. However...
0
2730
by: jonathonmc | last post by:
I have a winform app written in C# which accesses a web service using a dynamic URL (configured in the app.config). When I deploy this app via ClickOnce it builds the app.config into the manifest and each client gets it perfectly. The probelm is that I have a 4-tier environment, one for each phase of the development lifecycle. I need the DEV version of the app to hit the DEV version of the web service, TEST to TEST, QA to QA, and PROD to...
4
4462
by: Amirallia | last post by:
Hi, How can I deploy my Web service on IIS 6.0 ? I create a web service with VS 2005 on the local IIS, now I must deploy it on an intranet with IIS 6.0. But I can access this intranet, and I don't know wich files must I send to my intranet's client the deploy my web service ? Thanks for you help!
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3964
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.