473,378 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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.FileNotFoundException: ?
File name: "jgkvbdhy.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings)
at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[]
mappings)
at
System.Web.Services.Protocols.XmlReturn.GetInitial izers(LogicalMethodInfo[]
methodInfos)
at
System.Web.Services.Protocols.XmlReturnWriter.GetI nitializers(LogicalMethodInfo[]
methodInfos)
at System.Web.Services.Protocols.MimeFormatter.GetIni tializers(Type type,
LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.HttpServerType..ctor (Type type)
at System.Web.Services.Protocols.HttpServerProtocol.I nitialize()
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type 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.What i'm i missing?Many thanksJB

Nov 23 '05 #1
3 17567

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.phx.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.IO.FileNotFoundException: ?
File name: "jgkvbdhy.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence
assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.CodeDom.Compiler.CompilerResults.get_Compil edAssembly()
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings)
at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[]
mappings)
at
System.Web.Services.Protocols.XmlReturn.GetInitial izers(LogicalMethodInfo[]
methodInfos)
at
System.Web.Services.Protocols.XmlReturnWriter.GetI nitializers(LogicalMethodInfo[]
methodInfos)
at System.Web.Services.Protocols.MimeFormatter.GetIni tializers(Type
type, LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.HttpServerType..ctor (Type type)
at System.Web.Services.Protocols.HttpServerProtocol.I nitialize()
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type 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.What 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
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/...
3
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...
0
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...
2
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...
2
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...
3
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...
0
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...
3
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...
0
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...
4
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.